Run ID:67547

提交时间:2024-03-16 17:21:21

#include<iostream> using namespace std; int main() { int t=0,q=0,j=0,x=0,f=0,a=0; while(q+j+x<30) { f=0; if(q<10) { f=1; q++; } if(j<10 && t%2==0) { f=1; j++; } if(x<10 && t%4==0) { f=1; x++; } if(f) a++; t++; } cout<<a; return 0; }