1000. A+B [B5]
A, B = map(int,input().split())
print(A+B)
1001. A-B [B5]
A, B = map(int,input().split())
print(A-B)
1008. A/B [B4]
A, B = map(int,input().split())
print(A/B)
1152. 단어의 개수 [B2]
length = len(input().split())
print(length)
1330. 단어 공부 [B2]
length = len(input().split())
print(length)
1330. 두 수 비교하기 [B4]
A, B = map(int,input().split())
if A < B:
print('<')
elif A > B:
print('>')
else: print('==')
2438. 별 찍기 - 1 [B3]
N = int(input())
for i in range(1, N+1):
print('*'*i)
2439. 별 찍기 - 2 [B3]
N = int(input())
for i in range(1, N+1):
string = '*'*i
print(f'{string:>{N}}')
2475. 검증수 [B5]
nums = map(int,input().split())
sum = 0
for i in nums:
sum += i**2
print(sum % 10)
2753. 윤년 [B4]
year = int(input())
if (year % 4 == 0) and ((year % 100) or (year % 400 == 0)):
print(1)
else: print(0)
9498. 시험 성적 [B4]
score = int(input())
if score >= 90:
print('A')
elif score >= 80:
print('B')
elif score >= 70:
print('C')
elif score >= 60:
print('D')
else: print('F')
10171. 고양이 [B5]
print('\\ /\\')
print(" ) ( ')")
print('( / )')
print(' \(__)|')
10172. 개 [B5]
print('|\_/|')
print('|q p| /}')
print('( 0 )"""\\')
print('|"^"` |')
print('||_/=\\\__|')
10869. 사칙연산 [B5]
A, B = map(int,input().split())
print(A+B)
print(A-B)
print(A*B)
print(A//B)
print(A%B)
10998. AxB [B5]
A, B = map(int,input().split())
print(A*B)
11654. 아스키 코드 [B5]
print(ord(input()))
10950. A+B - 3 [B3]
for _ in range(int(input())):
print(sum(map(int, input().split())))
10952. A+B - 5 [B3]
while True:
a, b = map(int, input().split())
if a == 0:
break
print(a + b)
2562. 최댓값 [B2]
arr = [0] + [int(input()) for _ in range(9)]
max_cnt = 0
for i in range(1, 10):
if arr[i] > arr[max_cnt]:
max_cnt = i
print(arr[max_cnt], max_cnt)
2675. 문자열 반복 [B2]
import sys
input = sys.stdin.readline
t = int(input().rstrip())
for _ in range(t):
n, string = input().split()
n = int(n)
result = ''
for c in string:
result += c * n
print(result)
2739. 구구단 [B3]
n = int(input())
for i in range(1, 10):
print(f'{n} * {i} = {n * i}')
2920. 음계 [B2]
arr = list(map(int, input().split()))
asc = [i + 1 for i in range(8)]
desc = asc[::-1]
if arr == asc:
print('ascending')
elif arr == desc:
print('descending')
else:
print('mixed')
8958. OX 퀴즈 [B2]
t = int(input())
for _ in range(t):
arr = list(input())
cnt = 0
result = 0
for ox in arr:
if ox == 'O':
cnt += 1
result += cnt
else:
cnt = 0
print(result)
10818. 최소 최대 [B3]
n = int(input())
arr = list(map(int, input().split()))
small = arr[0]
big = arr[0]
for num in arr:
if num > big:
big = num
elif num < small:
small = num
print(small, big)
11720. 숫자의 합 [B2]
n = int(input())
arr = list(map(int, input()))
print(sum(arr))
2741. N 찍기 [B3]
n = int(input())
for i in range(n):
print(i + 1)
2742. 기찍 N [B3]
n = int(input())
for i in range(1, n + 1)[::-1]:
print(i)