2869: 달팽이는 올라가고 싶다
import sys
a, b, v = map(int, input().split())
counts = 1
if (v-a) / (a-b) == (v-a) // (a-b) :
counts += ((v-a) // (a-b))
print(counts)
else :
counts += ((v - a) // (a - b)) + 1
print(counts)
10250: ACM 호텔
T = int(input())
for _ in range(T):
H, W, N = map(int, input().split())
row = 1
col = 1
for _ in range(N-1):
row += 1
if row > H :
row = 1
col += 1
else :
continue
print(row*100+col)
2839: 설탕 배달
N = input()
N = int(N)
ans = 0
while N >= 0 :
if N % 5 == 0 :
ans += (N // 5)
print(ans)
break
N -= 3
ans = ans + 1
else :
print(-1)
10757: 큰 수 A+B
import sys
A, B = map(int, sys.stdin.readline().split())
print(A+B)
'매일매일 (Everyday)' 카테고리의 다른 글
[BOJ] - 기본 수학 1 - (3) - Python (0) | 2021.12.08 |
---|---|
[BOJ] - 재귀 - (1) - Python (0) | 2021.12.08 |
[BOJ] - 기본 수학 1 - (1) - Python (0) | 2021.12.03 |
[BOJ] - 문자열 - (2) - Python (0) | 2021.12.02 |
[BOJ] - 문자열 - (1) - Python (0) | 2021.12.01 |