| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78363 | 杨珞烯 | 各个位数之和 | C++ | Wrong Answer | 1 MS | 268 KB | 252 | 2024-06-18 19:46:57 |
#include <iostream> using namespace std; int main(){ int ci =0,sum=0,xt=0,xl=0; while(ci<1000){ ci++; xt++; xl++; if(xt==21){ xt=1; } if(xl==31){ xl=1; } if(xl==xt){ sum++; } } cout<<sum; return 0; }
------Input------
22222
------Answer-----
10
------Your output-----
340