Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
140353 岑思烁 15相同数的次数 C++ Accepted 0 MS 260 KB 212 2025-12-14 11:22:39

Tests(1/1):


Code:

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