Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122553 刘益梵 15相同数的次数 C++ Accepted 1 MS 264 KB 248 2025-06-21 11:15:48

Tests(1/1):


Code:

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