Silver Library (Archived)
baekjoon algorithm - 10869 본문
반응형
Incorrect 1.
a,b = input().split()
a = float(a)
b = float(b)
print(a+b)
print(a-b)
print(a*b)
print(a/b)
print(a%b)
Incorrect 2.
a,b = input().split()
a = float(a)
b = float(b)
print(a+b, a-b, a*b, a/b, a%b)
Incorrect 3.
a,b = input().split()
a = int(a)
b = int(b)
print(a+b, a-b, a*b, a/b, a%b)
Correct 1.
a,b = input().split()
a = int(a)
b = int(b)
print(a+b, a-b, a*b, int(a/b), a%b)
Note:
Let computer know how to print anything I desired. Don't rely too much to its library and language.
Link.
[BaekJoon/Python3] 백준 10869번 사칙연산
이번 포스팅은 백준 알고리즘 사이트의 10869번 사칙연산 문제를 Python 언어로 코딩해보도록 하겠습니다. 아래 url로 접속하시면 문제를 볼 수 있습니다. https://www.acmicpc.net/problem/10869 지난 백준 알
gabii.tistory.com
'F2. Problem & Solving > Solving' 카테고리의 다른 글
Plan of learning the algorithm (0) | 2021.05.01 |
---|---|
Baekjoon algorithm - 10430 , python (map) (0) | 2021.02.15 |
Baekjoon algorithm - 1008, python (0) | 2021.02.15 |
Baekjoon - problem 1001, Python (0) | 2021.02.15 |
[Notion] RDB, RDBMS? (0) | 2020.11.25 |