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

21880번 - The Game 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB183928150.000%

문제

Intellectual TV-game "What? Where? When?" is very popular. Throughout the game, a team of experts attempts to answer questions sent in by viewers. If experts answer the question correctly, one point is awarded to the team of experts, otherwise a point is awarded to the team of viewers. The game ends when one of the teams scores $k$ points.

You are given a final score of $x:y$. So the game consisted of $x + y$ questions asked, and one of the teams scored exactly $k$ points. You are not given $k,ドル since you can calculate it easily. You are asked to find any valid game scenario that finished with score $x:y,ドル as the list of scores after each question asked.

The score you are given is correct, and at least one question was asked.

입력

The first line consists of two integers $x$ and $y,ドル the final score (0ドル \le x, y \le 1000$; $x \ne y$).

출력

Print $x + y$ lines, $i$-th of them containing a score after $i$-th round. The numbers of points scored have to be separated by colon character (':'). You can print any game scenario that finishes with score $x:y$.

제한

예제 입력 1

3 4

예제 출력 1

1:0
2:0
2:1
2:2
3:2
3:3
3:4

예제 입력 2

5 1

예제 출력 2

1:0
2:0
3:0
4:0
4:1
5:1

힌트

출처

Contest > Innopolis Open in Informatics > Innopolis Open, Second elimination round, 2018-2019 A번

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

출처

대학교 대회

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

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