Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
72419 吕毅心 14小鱼游泳 C++ Accepted 1 MS 272 KB 364 2024-05-05 18:43:38

Tests(10/10):


Code:

# include<iostream> # include<cstdio> using namespace std; int main(){ int x,n,sum=0; cin>>x>>n; while(n>0){ if(x>7){ x=1; } if(x<6){ sum+=250; } n--; x++; } cout<<sum; return 0; }