BOJ/백준-24568-python

cosmos·2022년 5월 30일
0
post-thumbnail

문제

코드

# https://www.acmicpc.net/problem/24568
# boj, 24568: cupcake party , python3
import sys

input = sys.stdin.readline

def solve(r:int, s:int) -> int:
    return (r * 8 + s * 3) - 28 if (r * 8 + s * 3) > 28 else 0

if __name__ == '__main__':
    r = int(input())
    s = int(input())

    print(solve(r, s))

결과

출처 & 깃허브

boj 24568
github

0개의 댓글