Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111511 | 任紫谦 | 15相同数的次数 | C++ | Wrong Answer | 0 MS | 260 KB | 298 | 2025-03-02 14:55:47 |
#include <iostream> using namespace std; int main(){ int n=0,xt=0,xl=0,c; while(c<1000){ xt++; if(xt==21){ xt=1; } xl++; if(xl==31){ xl=1; } if(xt==xl) c++; } cout<<c<<endl; }
------Input------
0
------Answer-----
340
------Your output-----
1000