Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94051 杜春雨 15相同数的次数 C++ Accepted 0 MS 264 KB 260 2024-10-19 17:35:47

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int xt=0,xl=0,cnt=0,n=0; while(n<1000){ xt++; if(xt==21) xt=1; xl++; if(xl==31) xl=1; if(xl==xt) cnt++; n++; } cout<<cnt<<endl; return 0; }