Run ID:94639
提交时间:2024-10-25 19:57:18
#include<iostream> #include<iomanip> using namespace std; int main(){ int n,xt,xl,count; n=0; xt=0; xl=0; count=0; while(n<1000) { xt++; if(xt==21) { xt=1; } xl++; if(xl==31) { xl=1; } if(xt==xl) { count++; } n++; } cout<<count<<endl; return 0; }