| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84698 | 叶城俊 | 15相同数的次数 | C++ | Accepted | 0 MS | 260 KB | 296 | 2024-07-16 11:29:22 |
# include<iostream> using namespace std; int main (){ int xt,xl,count,i; xt = 1; xl = 1; count = 1; for (int i = 0;i <1000;i++){ xt++; xl++; if(xt>20) xt=1; if(xl>30) xl=1; if(xt==xl) count++; } cout<<count; return 0; }