Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122633 王金檐 15相同数的次数 C++ Accepted 0 MS 260 KB 243 2025-06-21 11:33:36

Tests(1/1):


Code:

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