Run ID:116993

提交时间:2025-04-13 10:15:59

#include<bits/stdc++.h> using namespace std; int main(){ int q=1,w=1,n=1,sum=0; while(n<=1000){ if(q==21){ q=1; } if(w==31){ w=1; } if(q==w){ sum++; } q++; w++; n++; } cout<<sum; return 0; }