Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2215 孙浚轩 14小鱼游泳 C++ Accepted 0 MS 264 KB 270 2023-12-16 18:40:48

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int n,x,s=0; cin>>x>>n; if(x>=1&&x<=7) { for(;n>=1;n--) { if(x<=5) s+=250; x=x%7+1; } } cout<<s; return 0; }