boj/백준-3003-python

cosmos·2022년 8월 18일
0
post-thumbnail

문제

코드

# https://www.acmicpc.net/problem/3003
# boj, 3003: 킹, 퀸, 룩, 비숍, 나이트, 폰, python3
import sys

input = sys.stdin.readline

def solve(chess: list) -> list:
    answer = [1, 1, 2, 2, 2, 8]

    return [answer[x] - chess[x] for x in range(6)]

if __name__ == '__main__':
    chess = list(map(int, input().split()))

    print(*solve(chess))

결과

출처 & 깃허브

boj 3003
github

0개의 댓글