Run ID:140935

提交时间:2025-12-20 14:39:13

#include<bits/stdc++.h> using namespace std; int main(){ int xqw=0,xxm=0,xyz=0; int time=0,cnt=0; while(xqw+xxm+xyz<30){ bool a=0; if(time%1==0&&xqw<10){ xqw++; a=1; } if(time%2==0&&xxm<10){ xxm++; a=1; } if(time%4==0&&xyz<10){ xyz++; a=1; } if(a==1) cnt++; time++; } cout<<cnt; return 0; }