| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122635 | 刘益梵 | 15听到多少次掌声 | C++ | Wrong Answer | 1 MS | 260 KB | 406 | 2025-06-21 11:34:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int a=1,b=2,c=4,s=0,x=1,f=0; while(true){ if(x==a ){ f+=1; } if(x==b){ f+=1; } if(x==c){ f+=1; } if(f==1){ s+=1; } if(f==2){ s+=1; } if(f==3){ s+=1; } if(x==10){ cout<<s; return 0; } a++; x++; f=0; if(x==8) c+=4; if(x%2==0) b+=2; } return 0; }
------Input------
0
------Answer-----
20
------Your output-----
10