Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122588 王安安 15相同数的次数 C++ Accepted 0 MS 260 KB 219 2025-06-21 11:25:51

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a=1,b=1,c=0,d=0; while(c<1000){ if(a==b) d++; if(a>=20) a=0; if(b>=30) b=0; a++; b++; c++; } cout<<d; return 0; }