Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
8279 沈文佳 小鱼的航程(改进版) C++ Wrong Answer 25 0 MS 244 KB 235 2020-10-31 19:07:54

Tests(1/4):


#include<bits/stdc++.h> using namespace std; int main(){ int n,x,z=0; cin>>x>>n; if(x<=5) z=5-x+1,n-=z; else n=n-(7-x); int p=n/7,q=n%7; n=n-2*p-q; z+=n; if(q<=5) z+=q; else z+=5; z*=250; cout<<z; return 0; }


Judgement Protocol: