Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
122669 | 王金檐 | 15听到多少次掌声 | C++ | Accepted | 1 MS | 264 KB | 362 | 2025-06-21 11:57:14 |
#include<bits/stdc++.h> using namespace std; int main(){ long long a=0,b =0,c=0,time=0,s=0; while(a<10 || b<10 || c<10){ bool fal=false; if(a<10){ fal=true; a++; } if(b<10 && time%2==0){ fal=true; b++; } if(c<10 && time%4==0){ fal=true; c++; } if(fal){ s++; } time++; } cout<<s; return 0; }