| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146533 | 孔声豪 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 264 KB | 410 | 2026-01-29 11:59:55 |
#include<iostream> using namespace std; int main(){ int a,b,d,t,cnt; bool n=false; t=0; a=b=d=cnt=1; while(a+b+d<30){ t++; n=false; if(a<10){ n=true; a++; } if(b<10&&t%2==0){ n=true; b++; } if(d<10&&t%4==0){ n=true; d++; } if(n) cnt++; } cout<<cnt<<endl; return 0; }