Run ID:134588

提交时间:2025-10-28 19:47:31

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int s=0,a=1,b=1,l; for(l=1;l<=1000;l++){ if(a>20) a=1; a++; if(b>30) b=1; b++; if(a==b) s++; } cout<<s; return 0; }