Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
104757 | 江梵睿 | 15听到多少次掌声 | C++ | Accepted | 0 MS | 260 KB | 643 | 2025-01-10 18:58:14 |
#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=1,c=1,d=1,s=1,t=0; while(b+c+d<30){ a++; if(b<10){ b+=1; t=1; } if(c<10 && a%2==0){ c+=1; t=1; } if(d<10 && a%4==0){ d+=1; t=1; } if(t==1){ s+=1; } t=0; } cout<<s; return 0; }