Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
38448 王旭阳 还差几天到2020年? C++ Accepted 1 MS 272 KB 215 2022-09-10 16:38:24

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int m,d,s=0; cin>>m>>d; for(int i = 11;i>=m;i--){ s+=a[i]; } cout<<s+a[m-1]-d+1; return 0; }