Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68487 刘轻松 14小鱼游泳 C++ Accepted 1 MS 268 KB 243 2024-03-23 15:12:12

Tests(10/10):


Code:

#include<bits/stdc++.h> //万能头文件 using namespace std; int main(){ long long x,n,sum=0; cin>>x>>n; for(int i=1;i<=n;i++){ if(x<6){ sum += 250; } x++; if(x>7){ x = 1; } } cout<<sum; }