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

9524번 - Beautiful Yekaterinburg 다국어

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

문제

Yekaterinburg is a beautiful city founded in the eighteenth century. Your task in this problem is to give us information about the precise year of its foundation.

To make the task less overwhelming, you are only asked to calculate one of the four digits of the year. To indicate the position of the digit you must calculate, digits are numbered between 1 and 4, from the most significant to the least significant. As an example, for the year 2013 digit 1 is “2”, digit 2 is “0”, digit 3 is “1” and digit 4 is “3”.

In case you failed to bring an encyclopedia with you, information about Yekaterinburg may be obtained via a clarification.

입력

A single line that contains an integer D (1 ≤ D ≤ 4) indicating the position of the digit you must calculate.

출력

Output a line with an integer representing the digit at position D of the year Yekaterinburg was founded.

제한

예제 입력 1

1

예제 출력 1

1

예제 입력 2

2

예제 출력 2

7

힌트

출처

ICPC > Regionals > Latin America > Latin America Regional Contests > Latin America Regional Contests 2013 연습 세션 PB번

  • 문제를 만든 사람: Pablo Ariel Heiber
(追記) (追記ここまで)

출처

대학교 대회

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

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