•
5:56 p.m. 25 Tháng 6, 2025
Code Câu hỏi số 99
n = int(input().strip())
k = n // 9
r = n % 9
if r > 0:
kq = str(r) + '9' * k
else:
kq = '9' * k
print(kq)
...Xem thêm
•
5:55 p.m. 25 Tháng 6, 2025
Code Mua Xăng
n = int(input().strip())
a,b = map(int,input().split())
c = min(2*a,b)
kq = (n//2) * c + (n%2) * a
print(kq)
...Xem thêm