| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163252 | 钱炜懿 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 494 | 2026-10-24 16:28:17 |
#include<bits/stdc++.h> using namespace std; int main(){ int t=0,q=1,x=1,j=1,count=1; bool flag=true; while(q+x+j<30){ flag=false; t++; if(q<10){ q++; flag=true; } if(x<10&&t%2==0){ x++; flag=true; } if(j<10&&t%4==0){ j++; flag=true; } if(flag) count++; } cout<<count; return 0; }