Run ID:140365
提交时间:2025-12-14 11:23:03
#include<bits/stdc++.h> using namespace std; int main(){ int t=0,x=0; int i=1,n=0; while(i<=1000){ t++; if(t>20)t=1; x++; if(x>30)x=1; if(t==x)n+=1; i++; } cout<<n; return 0; }