관리 메뉴

Silver Library (Archived)

Baekjoon - problem 1001, Python 본문

F2. Problem & Solving/Solving

Baekjoon - problem 1001, Python

Chesed Kim 2021. 2. 15. 21:37
반응형

Title: A-B

Problem 1001.

 

Requirement.

3 2

then result should be 1.

 

Solution

a,b = input().split()
a = int(a)
b = int(b)
print(a-b)

 

Other guy solved this as follows:

Solution

a, b = input().split()

print(int(a) - int(b))

blog.xeros.dev/88

 

백준알고리즘 1001번 파이썬 풀이

Problem Introduction 해당 문제에서 요구하는 바는 각각 정수 a와 b를 입력받고 입력받은 정수 a, b를 뺀 값을 출력하는것이다. Solve a, b = input().split() print(int(a) - int(b)) 완성된 코드는 위와 같다...

blog.xeros.dev

Note 1.

So, as long as it makes sense. This works.

Note 2.

Well, if basic is unstable then I will be stucked to any process in future. Even this looks easy, who knows I can do this alot better in six months from now on?

 

 

'F2. Problem & Solving > Solving' 카테고리의 다른 글

Plan of learning the algorithm  (0) 2021.05.01
Baekjoon algorithm - 10430 , python (map)  (0) 2021.02.15
baekjoon algorithm - 10869  (0) 2021.02.15
Baekjoon algorithm - 1008, python  (0) 2021.02.15
[Notion] RDB, RDBMS?  (0) 2020.11.25