| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 163200 | 江佳航 | 15相同数的次数 | C++ | Accepted | 0 MS | 264 KB | 467 | 2026-10-24 15:40:19 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n=0,xt=0,xl=0,count=0; while(n<1000){ xt++; if(xt==21)xt=1; xl++; if(xl==31)xl=1; if(xt==xl)count++; n++; } cout<<count; return 0; }