比赛 |
CSP2023-J模拟赛 |
评测结果 |
AAAAA |
题目名称 |
挂分跑步 |
最终得分 |
100 |
用户昵称 |
jason |
运行时间 |
0.000 s |
代码语言 |
C++ |
内存使用 |
0.00 MiB |
提交时间 |
2023-10-18 17:44:13 |
显示代码纯文本
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- int q[10000];
- int w[10000];
- signed main(){
- freopen("running.in","r",stdin);
- freopen("running.out","w",stdout);
- int a;
- cin>>a;
- int s;
- cin>>s;
- for(int i=0;i<a;i++){
- cin>>q[i];
- }
- for(int i=0;i<a;i++){
- cin>>w[i];
- }
- int temp = 0;
- for(int i=0;i<a;i++){
- int te = q[i] - w[i];
- temp = te*s+temp;
- }
- if(temp>10000){
- cout<<"2 hard 4 me";
-
- }else{
- cout<<temp;
- }
-
-
-
-
-
- }