|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||512 MB||4||4||4||100.000%|
Whenever a new book arrives to the library of the Aglargond School of Magic, it gets a unique number, defined as follows:
Write a program that determines for 3 given number if they are correct cataloguing numbers.
The input contains 3 lines. Each line contains one 9 digit number.
The output has exactly 3 lines. In each line write only a single number 0 or 1, where 1 means that corresponding number from the input is correct, and 0 means that it is not correct.
310456316 290260060 310053435
0 1 0
A year is a leap year if it is divisible by 4, unless it is divisible by 100 but not by 400 (for example leap years are 2000 and 2004, but not 2002 nor 1900).