Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104758 | 翁思宸 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 264 KB | 650 | 2025-01-10 19:00:27 |
#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,s1=1,s2=1,s3=1,s=1,f=0; while(s1+s2+s3<30){ t++; if(s1<10){ s1++; f=1; } if(s2<10 && t%2==0){ s2++; f=1; } if(s3<10 && t%4==0){ s3++; f=1; } if(f==1){ s+=1; } f=0; } cout<<s; return 0; }