Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159444 张宇泽 15相同数的次数 C++ Accepted 1 MS 268 KB 235 2026-08-31 11:07:46

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int cnt=0; for(int t=1;t<=1000;t++) { int a=(t-1)%20+1; int b=(t-1)%30+1; if(a==b) cnt++; } cout<<cnt; return 0; }