Logo
(追記) (追記ここまで)

18403번 - KABISA 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB22514513368.205%

문제

Many years ago, people were struggling with 6 hours extra that every year has. They decided to do calculate the 6 hours and keep every year as 365 days. The direct consequence of that calculation happened to the starting point of the new year. For example, they had a new year in winter, summer, fall, or spring. To fix the new years’ time, they decided to add extra day after every 4 years and they called it a leap year and keep the other 3 years 365 days. Your job is to write a program to find what are leap years in the given years.

입력

First line contains the number of test cases (T): 1 ≤ T ≤ 10

Second line indicates the list of given years Y, separated by commas (","). 1 ≤ Y ≤ 2020

출력

The list of leap years separated by space.

제한

예제 입력 1

1
2, 1, 8, 6, 10, 12

예제 출력 1

8 12

힌트

출처

ICPC > Regionals > Asia West Continent > Afghanistan > ICPC Asia Kabul Regional Contest 2019 12번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /