Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94055 | 罗迎甲 | 15相同数的次数 | C++ | Accepted | 0 MS | 260 KB | 237 | 2024-10-19 17:38:10 |
#include<bits/stdc++.h> using namespace std; int main() { int t1=0,l1=0,c4=0,a=0; while(a<=1000){ t1++; if(t1==21) t1=1; l1++; if(l1==31) l1=1; if(l1==t1) c4++; a++; } cout<<c4; return 0; }