| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146528 | 王晏林 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 384 | 2026-01-29 11:54:57 |
#include<iostream> using namespace std; int main(){ int t=0,c=1,qw=1,xm=1,xy=1; bool flag=false; while(qw+xm+xy<30){ t++; flag=false; if(qw<10){ flag=true; qw++; } if(xm<10&&t%2==0){ flag=true; xm++; } if(xy<10&&t%4==0){ flag=true; xy++; } if(flag){ c++; } } cout<<c; return 0; }