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

6888번 - Terms of Office 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB25081750167070.198%

문제

In CS City, a mathematical place to live, the mayor is elected every 4 years, the treasurer is appointed every 2 years, the chief programmer is elected every 3 years and the dog-catcher is replaced every 5 years.

This year, Year $X,ドル the newly elected mayor announced the appointment of the new treasurer, a new dog-catcher and congratulated the chief programmer for winning the recent election. That is, all positions were changed over. This is highly unusual. You will quantify how unusual this really is.

Write a program that inputs the year $X$ and the future year $Y$ and lists all years between $X$ and $Y$ inclusive when all positions change.

입력

출력

제한

예제 입력 1

2004
2100

예제 출력 1

All positions change in year 2004
All positions change in year 2064

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2004 > CCC 2004 Junior Division 2번

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

출처

대학교 대회

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

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