cool hamsters never sleep

백준 10869. 사칙연산 본문

Python Algorithm

백준 10869. 사칙연산

슈슈 susu 2022. 7. 15. 00:11
a, b = map(int, input().split())
print(a + b)
print(a - b)
print(a * b)
print(a // b)
print(a % b)

 

1. 나눴을 때 몫만 딱 나오게 하기

    // 사용

'Python Algorithm' 카테고리의 다른 글

백준 18108. 1998년생인 내가 태국에서는 2541년생?!  (0) 2022.07.15
백준 10926. ??!  (0) 2022.07.15
백준 1008. A/B  (0) 2022.07.14
백준 10998. AxB  (0) 2022.07.14
백준 1001. A-B  (0) 2022.07.14
Comments