Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
104756 江梵睿 15听到多少次掌声 C++ Wrong Answer 0 MS 264 KB 643 2025-01-10 18:55:10

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=0,b=1,c=1,d=1,s=3,t=0; while(b+c+d<30){ a++; if(b<10){ b+=1; t=1; } if(c<10 && a%2==0){ c+=1; t=1; } if(d<10 && a%4==0){ d+=1; t=1; } if(t==1){ s+=1; } t=0; } cout<<s; return 0; }


Run Info:

------Input------
0
------Answer-----
20
------Your output-----
22