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

21591번 - Laptop Sticker 다국어

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

문제

Your school has provided you with a laptop computer! However, they insist on putting a laptop sticker with their logo on your new computer. That sticker might be very large, and it can’t be rotated! Will it fit, with one centimeter to spare on all sides?

입력

The single line of input contains four integers $w_c,ドル $h_c,ドル $w_s$ and $h_s$ (1ドル \le w_c, h_c, w_s, h_s \le 1,000$), where $w_c$ is the width of your new laptop computer, $h_c$ is the height of your new laptop computer, $w_s$ is the width of the laptop sticker, and $h_s$ is the height of the laptop sticker. All measurements are in centimeters.

출력

Output a single integer, which is 1 if the laptop sticker will fit on your new laptop computer, without rotating, but with one centimeter space on all sides, and 0 if the laptop sticker won’t fit.

제한

예제 입력 1

30 30 27 27

예제 출력 1

1

예제 입력 2

35 30 25 29

예제 출력 2

0

예제 입력 3

30 35 30 35

예제 출력 3

0

힌트

출처

ICPC > Regionals > North America > North America Division Championships > 2021 ICPC North America Division Championships G번

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

출처

대학교 대회

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

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