Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
122652 | 令狐文丽 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 380 | 2025-06-21 11:49:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int qw=0,xm=0,xj=0,tim=0,cnt=0; while(qw<10 || xm<10 || xj<10) { bool fal= false; if(qw<10){ fal=true; qw++; } if(xm<10 && tim % 2 ==0){ fal=true; xm++; } if(xj<10 && tim % 4 ==0){ fal=true; xj++; } if(fal){ cnt++; } tim++; } cout<<cnt; return 0; }