| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146537 | 曾钰涵 | 15相同数的次数 | C++ | Wrong Answer | 0 MS | 260 KB | 512 | 2026-01-29 12:07:46 |
#include<iostream> using namespace std; int main(){ int t=0,c=1,xe=1,ct=1,xc=1,flag; while(xe+ct+xc<30) { flag=0; t++; if(xe<10){ flag=1; xe++; } if(ct<10&&t%2==0) { flag=1; ct++; } if(xc<10&&t%4==0) { flag=1; xc++; } if(flag) c++; } cout<<c; return 0; }
------Input------
0
------Answer-----
340
------Your output-----
20