90求教导

P1424 小鱼的航程(改进版)

#include<bits/stdc++.h> using namespace std; int main() { unsigned long long n,ans=0; int x; cin >> x >> n; for(int i=0;i<n;i++) { if((x!=6)&&(x!=7)) ans += 250; if(x==7) x=1; else x++; } cout << ans; return 0; }
by 必胜 @ 2018-10-15 13:22:31


谢谢大佬
by 疯狂小源 @ 2018-10-15 13:28:58


|