윤년

1. 윤년 개념

https://smallpants.tistory.com/66

 

2. C++ style Code

if( (year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0)) )