본문 바로가기

IT/self-study

[백준] 입출력과 사칙연산 (1월 1주차_7문제)

1. 2557번

print("Hello World!")

 

2. 1000번

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

 

3. 1001번

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

 

4. 10998번

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

 

5. 1008번

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

 

6. 10869번

A,B = input().split() // int(input().split()) 는 런타임 에러 뜸
A = int(A)
B = int(B)
print(A+B, A-B, A*B, int(A/B), A%B) // A/B는 int(A/B)로 정수형으로 바꿔줘야함

 

7. 10926번

id = input()
print(id+"??!")