Run ID:104757
提交时间: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; }