Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
129575 黄俊然 15听到多少次掌声 C++ Wrong Answer 0 MS 260 KB 606 2025-08-28 20:37:52

Tests(0/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a=1,b=1,c=1,s=1,f=0,t=0; while(a+b+c<30){ t++; if(a<10){ a++; f=1; } if(b<10&&t%2==0){ b++; f=1; } if(c<10&&t%4==0){ c++; f=1; } if(f) s++; } cout<<s; return 0; }


Run Info:

------Input------
0
------Answer-----
20
------Your output-----
37