Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5222 D班-西瓜 小鱼的航程 C++ 通过 100 1 MS 272 KB 237 2025-01-24 09:19:12

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int main() { int x,n,cnt=0; cin >> x >> n; for(int i = 1; i<=n; i++) { if(x!=6 && x!=7) { cnt++; } x++; if(x>7) { x=1; } } cout << 250*cnt; return 0; }


测评信息: