Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163201 钱炜懿 15相同数的次数 C++ Accepted 1 MS 264 KB 273 2026-10-24 15:42:54

Tests(1/1):


Code:

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