최대 1 분 소요

1. 문제Permalink

[Bronze IV] ISBN - 6810Permalink

문제 링크

성능 요약Permalink

메모리: 30840 KB, 시간: 68 ms

분류Permalink

사칙연산(arithmetic), 구현(implementation), 수학(math)

출처: 백준, https://https://www.acmicpc.net/

2. 해결방법 시간복잡도Permalink

  1. 단순 코딩 O(1)

3. 문제 해결 및 코드Permalink


a = int(input())
b = int(input())
c = int(input())
print(f"The 1-3-sum is {9 * 1 + 7 * 3 + 8 * 1 + 0 * 3 + 9 * 1 + 2 * 3 + 1 * 1 + 4 * 3 + 1 * 1 + 8 * 3 + a * 1 + b * 3 + c * 1}")
view raw 6810.py hosted with ❤ by GitHub
  • 주석을 참고하면서 이해를 돕습니다.Permalink

4. 알고리즘 및 해설Permalink

  1. 문제에서 제시한 조건에 맞게 계산한 뒤 출력해준다.