Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
8326 | 沈文佳 | 小鱼的航程(改进版) | C++ | Accepted | 100 | 2 MS | 252 KB | 272 | 2020-10-31 19:28:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,x,z=0; cin>>x>>n; for(int i=1;i<=n;i++){ if(x!=6&&x!=7) z+=250; x++; if(x==8) x=1; } // int p=n/7,q=n%7; // n=n-2*p-q; // z+=n; // if(q<=5) z+=q; // else z+=5; cout<<z; return 0; }