hiho week 235 register

Ended

Participants:86

Verdict:Accepted
Score:100 / 100
Submitted:2019-01-01 10:29:22

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
#include<algorithm>
using namespace std;
typedef long long LL;
char s[105];
int add[10010][2];
int i,j;
bool jud(int x)
{
    if (((x%4==0)&&(x%100!=0))||(x%400==0)) return 1;
    return 0;
}
int num(int m)
{
    if (m==1||m==3||m==5||m==7||m==8||m==10||m==12) return 31; else return 30;
}
int calc(int y,int m,int d, int h,int mi,int se)
{
    int ans=0;
    for (int i=1970;i<y;i++)
    {
        if (!jud(i)) ans+=365*24*60*60; else ans+=366*24*60*60;
        ans+=add[i][0]+add[i][1];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX