Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111507 | 谢佳辰 | 15相同数的次数 | C++ | Accepted | 0 MS | 268 KB | 276 | 2025-03-02 14:47:48 |
#include <bits/stdc++.h> using namespace std; int main(){ int xt=0,xl=0,n=0,c=0; while(n<=1000){ xt++; xl++; if(xt==21){ xt=1; } if(xl==31){ xl=1; } if(xt==xl){ c++; } n++; } cout<<c<<endl; }