관리 메뉴

Silver Library (Archived)

baekjoon algorithm - 10869 본문

F2. Problem & Solving/Solving

baekjoon algorithm - 10869

Chesed Kim 2021. 2. 15. 22:31
반응형

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.

gabii.tistory.com/entry/BaekJoonPython3-%EB%B0%B1%EC%A4%80-10869%EB%B2%88-%EC%82%AC%EC%B9%99%EC%97%B0%EC%82%B0

 

[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