Run ID:87307
提交时间:2024-08-08 15:02:16
#include<bits/stdc++.h> using namespace std; int main() { int jia=0,yi=0,n=1,s=0; while(n<=1000){ jia++; if(jia>20) jia=1; yi++; if(yi>30) yi=1; if(jia==yi) s++; n++; } cout<<s; }