| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84765 | 叶城俊 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 256 KB | 414 | 2024-07-16 12:30:28 |
# include<iostream> using namespace std; int main (){ int qw=0,xm=0,xj=0,time=0,count=0; bool flag=false; while(qw+xm+xj <30){ flag=false; if(time%2==0 && qw<10){ qw=qw+1; flag=true; } if(time%4==0 && xm<10){ xm=xm+1; flag=true; } if(xj<10){ xj=xj+1; flag=true; } if(flag){ count++; } time++; } cout<<count; return 0; }