| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 114790 | 唐诗阳 | 15相同数的次数 | C++ | Wrong Answer | 1 MS | 260 KB | 368 | 2025-03-23 14:39:50 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int j=1,y=1,sum=0; for(int i=1;i<=1000;i++){ j++; y++; if(j==21) j=1; if(y==31) y=1; if(j==y) sum+=1; } cout<<sum; return 0; }
------Input------
0
------Answer-----
340
------Your output-----
339