Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148033 罗迎甲 14小鱼游泳 C++ Accepted 0 MS 272 KB 353 2026-02-09 14:26:47

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a=0,x=0,sum=0; cin>>a>>x; for(int b=0;b<x;b++){ if(a>=1&&a<=5){ a++; sum+=250; } else if(a==7){ a=1; } else a++; } cout<<sum; return 0; }