Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
122667 | 田子熙 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 366 | 2025-06-21 11:56:48 |
#include<bits/stdc++.h> using namespace std; int main(){ int a=0,b=0,c=0,sum=0,d=0; while(a<10 || b<10 || c<10){ bool fal=false; if(a<10){ fal=true; a++; } if(b<10 && sum%2==0){ fal=true; b++; } if(c<10 && sum%4==0){ fal=true; c++; } if(fal){ d++; } sum++; } cout<<d; return 0; }