Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116833 | 谢绍澜 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 272 KB | 642 | 2025-04-12 16:58:05 |
#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 sum=0,j=0,m=0,q=0,f=0,t=0; while(q+j+m<30){ if(q<10){ f=1; q++; } if(m<10&&t%2==0){ f=1; m++; } if(j<10&&t%4==0){ f=1; j++; } if(f){ f=0; sum++; } t++; } cout<<sum; return 0; }