| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123576 | 王镜铭 | 今年的第几天 | C++ | Wrong Answer | 0 MS | 272 KB | 402 | 2025-07-06 13:19:22 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c; for(int x=1;x<b;x++){ if(x<=7){ if(x==2){ d+=28; if(a%4==0&&!a%100==0){ d++; } } else{ if(x%2==1){ d+=31; } else{ d+=30; } } } else{ if(x%2==0){ d+=31; } else{ d+=30; } } } cout<<d+c; return 0; }
------Input------
1236 3 31
------Answer-----
91
------Your output-----
4195155