Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93133 吕毅心 15听到多少次掌声 C++ Wrong Answer 0 MS 264 KB 524 2024-10-11 17:24:26

Tests(0/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int a=1,b=1,c=1,h=0,p=0,sum=0; while(a+b+c<30){ p=0; h++; if(a<10){ p=1; a+=1; } if(b<10&&h%2==0){ p=1; b+=1; } if(c<10&&h%4==0){ p=1; c+=1; } if(p==1){ sum+=1; } } cout<<sum; return 0; }


Run Info:

------Input------
0
------Answer-----
20
------Your output-----
19