Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163254 江佳航 15听到多少次掌声 C++ Accepted 1 MS 268 KB 631 2026-10-24 16:32:53

Tests(1/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 t=0,c=1,qw=1,xm=1,xy=1; bool flag=true; while(qw+xm+xy<30){ flag=false; t++; if(qw<10){ qw++; flag=true; } if(xm<10&&t%2==0){ xm++; flag=true; } if(xy<10&&t%4==0){ xy++; flag=true; } if(flag)c++;} cout<<c<<endl; return 0; }