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

25278번 - Terraforming 서브태스크다국어

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

문제

Humanity's effort to turn Mars into a liveable planet is, in the words of World Government communicator Levi Uken (2315 A.D.), an "endeavour so great that it will take the united effort of mankind to accomplish."

At the beginning of the terraforming endeavour Mars has no oceans, no oxygen, and a mean temperature of $-30$ degrees Celsius.

Water

To enable a stable hydrological cycle, air moisture, weather patterns, and to moderate temperature swings, Mars needs 9ドル$\% ocean coverage.

Temperature

At very low temperatures, oceans are actually glaciers for most of the year. Although the temperature on Mars in the 21ドル$st century already reaches 20ドル$ degree Celsius on 'hot’ summer days, its average is far below freezing. To enable liquid oceans, the temperature has to stay positive, at least at the equator, corresponding to a mean temperature of $+8$ degrees Celsius.

Oxygen

The most important parameter for terraforming is the oxygen level---without a breathable atmosphere, Mars is not liveable for humans. Earth’s oxygen content is 21ドル\%$ of the atmosphere at sea level. However, already 14ドル\%$ is perfectly livable for humans, such as Bolivian cities El Alto (4150ドル$ m) and La Paz (3640ドル$ m), each with nearly a million inhabitants in the 21ドル$st century.

입력

On the first line, the number $n\in\{1,\ldots, 315\}$ of environmental changes on Mars. Each of the following $n$ lines consists of a parameter (oxygen, ocean, or temperature), followed by an integer.

The change for oxygen and oceans is in percentage points, the change for temperature is in degrees Celsius.

출력

If the environmental changes achieve at least 9ドル$\% ocean coverage, at least 14ドル\%$ oxygen, and at least $+8$ degrees celsius, output 'liveable'. Otherwise, output 'not liveable'.

제한

서브태스크

번호배점제한
150

The change is always $+1$.

250

The change is a positive integer from $\{+1,\ldots,+5\}$.

예제 입력 1

62
temperature +1
temperature +1
temperature +1
temperature +1
temperature +1
oxygen +1
temperature +1
temperature +1
ocean +1
temperature +1
temperature +1
oxygen +1
temperature +1
temperature +1
temperature +1
ocean +1
oxygen +1
temperature +1
temperature +1
oxygen +1
temperature +1
temperature +1
temperature +1
temperature +1
temperature +1
oxygen +1
temperature +1
oxygen +1
temperature +1
temperature +1
temperature +1
temperature +1
temperature +1
ocean +1
temperature +1
oxygen +1
oxygen +1
temperature +1
ocean +1
oxygen +1
oxygen +1
temperature +1
temperature +1
oxygen +1
ocean +1
temperature +1
temperature +1
oxygen +1
ocean +1
oxygen +1
temperature +1
temperature +1
temperature +1
temperature +1
oxygen +1
oxygen +1
ocean +1
temperature +1
temperature +1
ocean +1
ocean +1
temperature +1

예제 출력 1

liveable

예제 입력 2

13
temperature +3
oxygen +5
temperature +1
temperature +1
temperature +3
temperature +3
oxygen +4
temperature +2
ocean +2
oxygen +4
ocean +5
temperature +1
temperature +3

예제 출력 2

not liveable

힌트

출처

Contest > Swedish Coding Cup > LTH Challenge 2022 B번

  • 문제를 만든 사람: Thore Husfeldt

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

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

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