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

34366번 - Mines Football 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB108918386.458%

문제

The Mines football team had an incredible 2022ドル$ season! The team made it all the way to the NCAA Division II Championship game for the first time in school history.

Unfortunately, they lost to the defending champions Ferris State, but the Orediggers still had an amazing season going thirteen straight games without a loss, including four straight playoff games.

Orediggers Head Coach Brandon Moore has tasked you with finding some statistics about Mines Football's history so that he knows where to focus his efforts in the offseason. Given the scores from the previous $M$ months, Coach Moore wants to know the highest and lowest scores across all games as well as the most and least total points scored in a month across all games.

입력

The first line of input will contain an integer 1ドル \leq M \leq 1000$ representing the number of months of scores to follow.

The next $M$ lines will contain an integer 1ドル \leq S \leq 8$ representing the number of scores to follow, followed by $S$ space-separated integers in the range $[14, 1\ 000]$ representing Mines's score in each game that month. Note that the opposing team's score is not given. Each score is guaranteed to be at least 14ドル$ points because Mines always scores lots of touchdowns.

출력

The output should be four lines, each with a single integer.

The first line of output should be the highest number of points that Mines scored in any game.

The second line of output should the lowest number of points that Mines scored in any game.

The third line of output should be the sum of the points scored in the month where Mines scored the highest total number of points.

The fourth line of output should be the sum of the points scored in the month where Mines scored the lowest total number of points.

제한

예제 입력 1

4
4 22 27 84 45
5 45 48 48 38 30
4 54 80 45 48
2 42 44

예제 출력 1

84
22
227
86

힌트

출처

School > CS@Mines > CS@Mines HSPC 2023 > Beginner E번

School > CS@Mines > CS@Mines HSPC 2023 > Advanced A번

  • 문제를 만든 사람: Ethan Richards
(追記) (追記ここまで)

출처

대학교 대회

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

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