Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122379 鲁博睿 15相同数的次数 C++ Accepted 0 MS 260 KB 243 2025-06-15 16:55:50

Tests(1/1):


Code:

#include <bits/stdc++.h> ? using namespace std; int main() { int sum=0; int xt=0,xl=0; for(int i=1;i<=1000;i++){ xt++; if(xt>20) xt=1; xl++; if(xl>30) xl=1; if(xt==xl) sum++; } cout<<sum<<endl; return 0; }