Run ID:146528
提交时间:2026-01-29 11:54:57
#include<iostream> using namespace std; int main(){ int t=0,c=1,qw=1,xm=1,xy=1; bool flag=false; while(qw+xm+xy<30){ t++; flag=false; if(qw<10){ flag=true; qw++; } if(xm<10&&t%2==0){ flag=true; xm++; } if(xy<10&&t%4==0){ flag=true; xy++; } if(flag){ c++; } } cout<<c; return 0; }