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

17851번 - This Problem’s a Slam Dunk 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 512 MB22120118090.909%

문제

It’s getting close to March Madness time and the big game this week is the classic rivalry between State U and U State. The coach of State U has been working night and day on the best strategy to beat his arch rival. On defense he has decided to have his tallest player guard the opponent’s tallest player, his second tallest player guard the opponent’s second tallest player, and so on. He’s a bit worried about the size differences between the two teams though, and needs to know for this defensive strategy how many of his players are taller than the person they’re guarding. He’s asked you to take time from writing term papers for his players to write a program to calculate this value for him.

입력

Input consists of two lines. The first line contains five positive integers specifying the heights of the five players on State U’s team (in no particular order). The second line contains the similar information for the five players on U State’s team (again in no particular order).

출력

Output the number of State U players taller than the person they are guarding assuming that the tallest State U player guards the tallest U State player, the second tallest State U player guards the second tallest U State player, and so on.

제한

예제 입력 1

67 64 61 70 58
62 68 65 71 59

예제 출력 1

0

예제 입력 2

58 64 61 67 70
57 71 62 68 65

예제 출력 2

1

힌트

출처

ICPC > Regionals > North America > East Central North America Regional > 2019 East Central Regional Contest 연습 세션 PF번

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

출처

대학교 대회

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

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