Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1850 | 邓小龙 | 15相同数的次数 | C++ | Accepted | 0 MS | 256 KB | 242 | 2023-11-25 16:52:12 |
#include<iostream> using namespace std; int main(){ int n=1000,cnt=0; int xt=0,xl=0; while(n!=0){ xt++; if(xt==21) xt=1; xl++; if(xl==31) xl=1; if(xt==xl) cnt++; n--; } cout<<cnt<<endl; return 0; }