#878
Bronze V
BIJELE
시간 제한
1s
메모리 제한
32MB
제출
12
정답
6
맞힌 사람
6
정답 비율
50.0%

문제

Mirko has found an old chessboard and a set of pieces in his attic. Unfortunately, the set contains only white pieces, and apparently an incorrect number of them. A set of pieces should contain:

  • One king

  • One queen

  • Two rooks

  • Two bishops

  • Two knights

  • Eight pawns

Mirko would like to know how many pieces of each type he should add or remove to make a valid set.

입력

The input consists of 6 integers on a single line, each between 0 and 10 (inclusive). The numbers are, in order, the numbers of kings, queens, rooks, bishops, knights and pawns in the set Mirko found.

출력

Output should consist of 6 integers on a single line; the number of pieces of each type Mirko should add or remove. If a number is positive, Mirko needs to add that many pieces. If a number is negative, Mirko needs to remove pieces.

예제 입력 1

0 1 2 2 2 7

예제 출력 1

1 0 0 0 0 1

예제 입력 2

2 1 2 1 2 1

예제 출력 2

-1 0 0 1 0 7
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
#순위사용자언어시간메모리코드 길이
6040🥇
조선우
Python7ms8284KB92B
6155🥈
이채환
Python7ms8324KB102B
6542🥉
천재영
Python7ms8364KB104B
84104
이혁준
Python7ms8460KB101B
83495
Undefined
Python8ms8380KB215B
85536
고수아
Python8ms8396KB127B
난이도 투표
Bronze V2명 투표· 25일 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
8553
맞았습니다
Python8ms8396KB127B2026. 05. 29. 07:39
8552
런타임 에러
Python--128B2026. 05. 29. 07:38
8410
맞았습니다
Python7ms8460KB101B2026. 05. 26. 07:04
8409
틀렸습니다
Python--400B2026. 05. 26. 07:01
8407
틀렸습니다
Python--360B2026. 05. 26. 06:53
8405
틀렸습니다
Python--336B2026. 05. 26. 06:51
8404
틀렸습니다
Python--336B2026. 05. 26. 06:51
8349
맞았습니다
Python8ms8380KB215B2026. 05. 26. 02:11
6542
맞았습니다
Python7ms8364KB104B2026. 05. 20. 17:07
6155
맞았습니다
Python7ms8324KB102B2026. 05. 12. 07:34
6154
런타임 에러
Python--85B2026. 05. 12. 07:34
6040
맞았습니다
Python7ms8284KB92B2026. 05. 07. 07:46