Run ID:114808
提交时间:2025-03-23 15:13:21
#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,t=0,f=0; while(a+b+c<30){ if(a<10){ a++; f=1; } if(b<10 && t%2==0){ b++; f=1; } if(c<10 && t%4==0){ c++; f=1; } if(f==1){ s++; } f=0; t++; } cout<<s; return 0; }