Blame view

P95401_en/S001-AC.cc 369 Bytes
Imanol-Mikel Barba Sabariego authored
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
33
34
35
36
37
38
#include <iostream>

using namespace std;


bool is_leap_year(int year)
{
	if(!(year - (year/100)*100))
	{
		if(!((year/100)%4))
		{
			return true;
		}
		return false;
	}
	if(!(year%4))
	{
		return true;
	}
	return false;
}

int main()
{
/*
	int a;
	cin >> a;
	if(is_leap_year(a))
	{
		cout << "TRUE" << endl;
	}
	else
	{
		cout << "FALSE" << endl;
	}
	return 0;
*/
}