| 比赛 | CSP2023-J模拟赛 | 评测结果 | AAAAA |
|---|---|---|---|
| 题目名称 | 挂分跑步 | 最终得分 | 100 |
| 用户昵称 | Mind_Mea | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2023-10-18 17:09:52 | ||
#include <bits/stdc++.h>
using namespace std;
int a,b,asum,bsum;
int main(){
freopen("running.in","r",stdin);
freopen("running.out","w",stdout);
ios::sync_with_stdio;
int n,x;
cin>>n>>x;
for(int i=1;i<=n;i++){
cin>>a;
asum+=a;
}
for(int j=1;j<=n;j++){
cin>>b;
bsum+=b;
}
long long k=(asum-bsum)*x;
if(k>10000){
cout<<"2 hard 4 me";
}else{
cout<<k;
}
return 0;
}