Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
8049 | 陶冶 | 小鱼的航程(改进版) | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 195 | 2020-10-31 14:46:03 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,n,ans,z; cin>>x>>n; z=(x+n)%7; if(z>=1&&z<8){ ans=(n+1)*250-2*250; } else ans=n*250; cout<<ans; return 0; }