Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118387 | 周宸宇 | 15听到多少次掌声 | C++ | Time Limit Exceeded | 1000 MS | 252 KB | 648 | 2025-04-28 19:24:39 |
#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=0,c=0,s=0,f=0,time=0; while(a+b+c<30){ if(a<=10){ a++; f=1; } if(b<=10 && b%2==0){ b++; f=1; } if(c<=10 && c%4==0){ c++; f=1; } if(f==1){ s++; } f=0; time++; } cout<<s; return 0; }