Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163253 李泽曦 15听到多少次掌声 C++ Accepted 0 MS 268 KB 700 2026-10-24 16:30:44

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