| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140447 | 王顺煜 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 264 KB | 344 | 2025-12-14 12:37:24 |
#include<bits/stdc++.h> using namespace std; int main(){ int w=0,xm=0,y=0,i=0,num=0; while(w+xm+y<30){ int f=0; if(w<10){ w++; f=1; } if(i%2==0){ if(xm<10){ xm++; f=1; } } if(i%4==0){ if(y<10){ y++; f=1; } } if(f==1){ num++; } i++; } cout<<num; return 0; }