- Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathLibraryFine.cpp
More file actions
Latest commit
32 lines (29 loc) · 516 Bytes
/
Copy pathLibraryFine.cpp
File metadata and controls
32 lines (29 loc) · 516 Bytes
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
32
#include<cmath>
#include<cstdio>
#include<vector>
#include<iostream>
#include<algorithm>
usingnamespacestd;
intmain(){
int d1;
int m1;
int y1;
cin >> d1 >> m1 >> y1;
int d2;
int m2;
int y2;
cin >> d2 >> m2 >> y2;
if(y1 > y2){
cout << 10000;
}
elseif(m1 > m2 && (y1 == y2)){
cout << 500*(m1-m2);
}
elseif(d1 > d2 && (m1 == m2) && (y1 == y2)){
cout << 15*(d1-d2);
}
else{
cout << 0;
}
return0;
}