Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
122378 | 刘轻松 | 15相同数的次数 | C++ | Accepted | 0 MS | 260 KB | 225 | 2025-06-15 16:55:04 |
#include<bits/stdc++.h> using namespace std; int main(){ int sum=0; int xt=0,xl=0; for(int i=1;i<=1000;i++){ xt++; if(xt>20) xt=1; xl++; if(xl>30) xl=1; if(xt==xl) sum++; } cout<<sum; }