본문 바로가기

Programming Language/Python3.6

[python 파이썬] 백준 <1. 입출력과 사칙연산> 1~5번 2557번, 1000번, 1001번, 10998번, 1008번 코드

 

[2557번] Hello World

print("Hello World!")

 

 

[1000번] A+B

A, B = input().split()

print(int(A) + int(B))

a, b = map(int, input().split())
print(a + b)

 

[1001번] A-B

A, B = input().split()
print(int(A) - int(B))

 

 

 

[10998번] A*B

a, b = map(int, input().split())
print(a * b)

 

[1008번] A/B

a, b = map(int, input().split())
print(a / b)

 

 

 

 

워낙 간단한 문제들이라 부연 설명 없이 깃허브 링크 첨부!

https://github.com/yenyen31/BaekjoonAlgorithm

 

GitHub - yenyen31/BaekjoonAlgorithm: 백준 알고리즘/코딩테스트 스터디

백준 알고리즘/코딩테스트 스터디. Contribute to yenyen31/BaekjoonAlgorithm development by creating an account on GitHub.

github.com

 

반응형