cf6.4A

#include <stdio.h>
#include<iostream>


using namespace std;


int main()
{
    int n,t;
    int num[105] = {0};
    int sum = 0;
    scanf("%d %d",&n, &t);
    for( int i = 0; i<n; i++)
         {
             scanf("%d",&num[i]);
             sum += num[i];
         }
         if(sum + (n-1)*10 <= t)
         {
             printf("%d\n",(t-sum)/5);
         }
         else
          printf("-1\n");


    return 0;
}
Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [78 lines of output] Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple Ignoring numpy: markers 'python_version == "3.5"' don't match your environment Ignoring numpy: markers 'python_version == "3.6"' don't match your environment Ignoring numpy: markers 'python_version == "3.7"' don't match your environment Collecting setuptools Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/a9/38/7d7362e031bd6dc121e5081d8cb6aa6f6fedf2b67bf889962134c6da4705/setuptools-75.8.2-py3-none-any.whl (1.2 MB) Collecting wheel Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/0b/2c/87f3254fd8ffd29e4c02732eee68a83a1d3c346ae39bc6822dcbcb697f2b/wheel-0.45.1-py3-none-any.whl (72 kB) Collecting scikit-build Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/c3/a3/21b519f58de90d684056c52ec4e45f744cfda7483f082dcc4dd18cc74a93/scikit_build-0.18.1-py3-none-any.whl (85 kB) Collecting cmake Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/18/58/909d6d99acb4e0886d0f660cf4e0fb26f586590e370b2e4ce7a10d06b145/cmake-3.31.6-py3-none-win_amd64.whl (36.4 MB) -------------------------------------- 36.4/36.4 MB 177.3 kB/s eta 0:00:00 Collecting pip Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/c9/bc/b7db44f5f39f9d0494071bddae6880eb645970366d0a200022a1a93d57f5/pip-25.0.1-py3-none-any.whl (1.8 MB) ---------------------------------------- 1.8/1.8 MB 308.2 kB/s eta 0:00:00 Collecting numpy==1.17.3 Downloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe/numpy-1.17.3.zip (6.4 MB) --------------------------------------
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值