Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116993 | 晏莞煜 | 15相同数的次数 | C++ | Accepted | 0 MS | 256 KB | 244 | 2025-04-13 10:15:59 |
#include<bits/stdc++.h> using namespace std; int main(){ int q=1,w=1,n=1,sum=0; while(n<=1000){ if(q==21){ q=1; } if(w==31){ w=1; } if(q==w){ sum++; } q++; w++; n++; } cout<<sum; return 0; }