| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146517 | 曾钰涵 | 各个位数之和 | C++ | Wrong Answer | 0 MS | 264 KB | 336 | 2026-01-29 11:20:06 |
#include<iostream> using namespace std; int main(){ int n,xt,xl,count; n=xt=xl=count=0; while(n<1000) { xt++; if(xt==21) xt=1; xl++; if(xl==31) xl=1; if(xt==xl) count++; n++; } cout<<count<<endl; return 0; }
------Input------
22222
------Answer-----
10
------Your output-----
340