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

18309번 - Extreme Temperatures 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB43023720454.987%

문제

Kristen is a meteorologist, who is monitoring extreme temperatures in the forest of Palaiseau. She has collected temperature measurements at various times over several days. Help her find out what the lowest and highest temperatures were in her entire dataset.

입력

The input is formed of N lines, each line i with 1 ≤ i ≤ N being a space-separated list of ki tokens:

  • the first token is the date of the measurement, in the form YYYY-MM-DD;
  • for 2 ≤ j ≤ ki, the j-th entry is an integer temperature measurement tij.

출력

The output should contain a single line with two integers: the lowest and highest temperatures in the entire dataset, in this order.

제한

  • 1 ≤ N ≤ 1 000;
  • 2 ≤ ki ≤ 100 for 1 ≤ i ≤ N;
  • −50 ≤ tij ≤ 50 for 1 ≤ i ≤ N and 2 ≤ j ≤ ki.

예제 입력 1

2020年01月15日 5 4 6 8 12 13 12 9 7
2020年01月16日 6 3 4 6 10 12 11 7

예제 출력 1

3 13

힌트

출처

ICPC > Regionals > Europe > Southwestern European Regional Contest > SWERC 2019 연습 세션 PE번

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

출처

대학교 대회

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

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