#include <iostream>
using namespace std;
int main()
{
int iYear = 0;
cin >> iYear;
if ((iYear % 4 == 0 && iYear % 100 != 0 ) || iYear % 400 == 0)
{
cout << 1;
}
else
cout << 0;
return 0;
}#include <iostream>
using namespace std;
int main()
{
int iYear = 0;
cin >> iYear;
if ((iYear % 4 == 0 && iYear % 100 != 0 ) || iYear % 400 == 0)
{
cout << 1;
}
else
cout << 0;
return 0;
}
728x90
반응형
'Game Programming > BaekJoon' 카테고리의 다른 글
BaekJoon_14681 (0) | 2021.01.26 |
---|---|
BaekJoon_9498 (0) | 2021.01.25 |
BaekJoon_1330 (0) | 2021.01.25 |
BaekJoon_2588 (0) | 2021.01.22 |
댓글