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.
'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 |