| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72622 | 杨一诺 | 14小鱼游泳 | C++ | Wrong Answer | 1 MS | 276 KB | 284 | 2024-05-12 09:31:33 |
#include<bits/stdc++.h> using namespace std; int n=0,x=0,a,km; int main(){ cin>>x>>n; n+=x-1; a=n%7; if(a==0){ km=(n/7*5)*250-(x-1)*250; } else if(a<=5){ km=(n/7*5)*250-(x-1)*250+a*250; } else{ km=(n/7*5)*250-(x-1)*250+5*250; } cout<<km; return 0; }
------Input------
7 38
------Answer-----
6750
------Your output-----
6500