Run ID:84691

提交时间:2024-07-16 11:20:48

#include<iostream> using namespace std; int main(){ int xt=0,xl=0,count=0; for(int i = 0;i <1000;i ++ ){ xt++; if(xt >20) xt = 1; xl++; if(xl >30) xl = 1; if(xt == xl) count++; } cout<<count; return 0; }