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

29863번 - Arno's Sleep Schedule 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB47902904278760.825%

문제

Arno wants to arrive at school before the start of classes. He sets an alarm clock to ring in the morning. Now he's curious how many hours of sleep he will get. Write a program that would calculate the length of Arno's sleep time.

입력

There are two lines in the input, containing one number each. The first line contains an integer in the range from 20ドル$ to 23ドル$ or in the range from 0ドル$ to 3ドル$: the time at which Arno goes to sleep. The second line contains an integer in the range from 5ドル$ to 10ドル$: the time for which Arno set his alarm to ring and wake him up. All times are given as integer numbers and in the 24-hour format.

출력

Output a single integer: the number of hours from the time when Arno goes to sleep to the time when he wakes up. You may assume that Arno sleeps from the time of going to sleep to the time of the alarm without waking up and that he does not sleep for more than 24ドル$ hours in a row.

NB! The output may not contain any other words or symbols (i.e. the output should contain exactly one integer).

제한

예제 입력 1

23
7

예제 출력 1

8

힌트

출처

Olympiad > Estonian Informatics Olympiad > 2021-22 > Preliminary Round 1번

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

출처

대학교 대회

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

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