File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ # include < bits/stdc++.h>
2
+
3
+ #define fast ios_base::sync_with_stdio (0 );cin.tie(NULL );cout.tie(NULL )
4
+ #define f (i,a,b ) for (i=a;i<b;i++)
5
+ #define fr (i,a,b ) for (i=a;i>=b;i--)
6
+ #define endl ' \n '
7
+ #define ll long long int
8
+ #define ff first
9
+ #define ss second
10
+ #define pb push_back
11
+ #define mp make_pair
12
+ #define mod 1000000007
13
+
14
+ using namespace std ;
15
+
16
+ main ()
17
+ {
18
+ int year;
19
+ cin>>year;
20
+ if (year == 1918 ) cout<<" 26.09.1918" ;
21
+ else if (year == 1700 || year == 1800 || year == 1900 )
22
+ cout<<" 12.09." <<year;
23
+ else if (year % 400 == 0 )
24
+ cout<<" 12.09." <<year;
25
+ else if (year % 4 == 0 )
26
+ {
27
+ if (year % 100 == 0 ) cout<<" 13.09." <<year;
28
+ else cout<<" 12.09." <<year;
29
+ }
30
+ else cout<<" 13.09." <<year;
31
+ }
You can’t perform that action at this time.
0 commit comments