Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118390 | 冯瀚翔 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 382 | 2025-04-28 19:28:48 |
#include <iostream> #include <string> using namespace std; int main() { int b=0,s=0,a=0,c=0,f=0,time=0; while(a+b+c<30){ if(a<10){ a++; f=1; } if(b<10 && time%2==0){ b++; f=1; } if(c<10 && time%4==0){ c++; f=1; } if(f){ s++; } f=0; time++; } cout<<s; return 0; }