| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 67546 | 孙诗皓 | 15听到多少次掌声 | C++ | Accepted | 1 MS | 268 KB | 462 | 2024-03-16 17:21:21 |
#include<iostream> using namespace std; int main() { int t=0,q=0,j=0,x=0,f=0,a=0; while(q+j+x<30) { f=0; if(q<10) { f=1; q++; } if(j<10 && t%2==0) { f=1; j++; } if(x<10 && t%4==0) { f=1; x++; } if(f) a++; t++; } cout<<a; return 0; }