s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time int64 0 100 | memory stringlengths 4 6 | code_size int64 15 14.7k | code stringlengths 15 14.7k | problem_id stringlengths 6 6 | problem_description stringlengths 358 9.83k | input stringlengths 2 4.87k | output stringclasses 807
values | __index_level_0__ int64 1.1k 1.22M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s489372348 | p00007 | u440180827 | 1496890974 | Python | Python3 | py | Accepted | 20 | 7568 | 116 | import math
loan = 100000
for i in range(int(input())):
loan += math.ceil(loan * 0.05 / 1000) * 1000
print(loan) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,602 |
s290756729 | p00007 | u399647870 | 1498541374 | Python | Python3 | py | Accepted | 20 | 7560 | 264 | import math
shuu = input()
num = int(shuu)
ganpon = 100000
i = 1
while i <= num:
ganpon *= 1.05
ganpon /= 1000
ganpon = math.ceil(ganpon)
ganpon *= 1000
i += 1
pass
#ganpon /= 1000
#ganpon = math.ceil(ganpon)
#ganpon *= 100000
print(ganpon) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,603 |
s166475353 | p00007 | u340500592 | 1499406869 | Python | Python3 | py | Accepted | 30 | 7636 | 131 | from math import ceil
debt = 100000
n = int(input())
for i in range(n):
debt *= 1.05
debt = ceil(debt / 1000) * 1000
print(debt) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,604 |
s109745927 | p00007 | u600821328 | 1499945527 | Python | Python3 | py | Accepted | 30 | 7700 | 304 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def update(x):
y = x * 105 // 100
r = y % 1000
y = y // 1000 * 1000
if r: y += 1000
return y
def main():
n = int(input())
x = 100000
for _ in range(n):
x = update(x)
print(x)
if __name__ == "__main__": main() | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,605 |
s466758961 | p00007 | u184989919 | 1500121389 | Python | Python3 | py | Accepted | 20 | 7592 | 207 | import math
def DebtHell():
n = int(input())
debt = 100000
while n>0:
n-=1
debt*=1.05
debt = int(int(math.ceil(debt/1000)*1000))
print(debt)
DebtHell() | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,606 |
s193318802 | p00007 | u806182843 | 1500212455 | Python | Python3 | py | Accepted | 30 | 7672 | 185 | def main():
from math import ceil
debt = 100000
n = int(input())
for _ in range(n):
debt *= 1.05
debt = ceil(debt/1000)*1000
print(debt)
if __name__ == '__main__':
main() | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,607 |
s138523455 | p00007 | u546285759 | 1500712122 | Python | Python3 | py | Accepted | 20 | 7708 | 148 | import math
debt = 100000
n = int(input())
for i in range(n):
interest = 0.05 * debt
debt += (math.ceil(interest / 1000) * 1000)
print(debt) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,608 |
s775829602 | p00007 | u503263570 | 1501263312 | Python | Python3 | py | Accepted | 20 | 7540 | 94 | import math
n=int(input())
r=100000
for i in range(n):
r=math.ceil(r*1.05/1000)*1000
print(r) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,609 |
s025674646 | p00007 | u350064373 | 1501483162 | Python | Python3 | py | Accepted | 30 | 7636 | 219 | n = int(input())
result = 100000
for i in range(0,n):
result = result * 1.05
if result % 1000 == 0:
pass
else:
result = result-(result % 1000)+ 1000
result = int(result)
print(result) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,610 |
s508338270 | p00007 | u354053070 | 1501902924 | Python | Python3 | py | Accepted | 20 | 7648 | 118 | from math import ceil
n = int(input())
debt = 100
for i in range(n):
debt = ceil(debt * 1.05)
print(debt * 1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,611 |
s872630989 | p00007 | u267909338 | 1502867236 | Python | Python3 | py | Accepted | 20 | 7600 | 249 | def ceil(src, range):
k = src / 1000
if k == int(k):
return int(src)
else:
return ((int)(src / range) + 1 ) * range
debt = 100000
for x in range (0, int(input())):
debt = ceil(debt * 1.05, 1000)
print(int(debt)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,612 |
s540617011 | p00007 | u584777171 | 1502934671 | Python | Python3 | py | Accepted | 30 | 7652 | 193 | money = 100000
unit = 1000
user = input()
n = int(user)
for i in range(n):
money *= 1.05
if money % unit != 0:
money -= money % unit
money += unit
print(str(int(money))) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,613 |
s605144874 | p00007 | u027634846 | 1503112020 | Python | Python3 | py | Accepted | 20 | 7704 | 187 | import math
weeks = int(input())
money = 100000
for i in range(weeks):
money = money * 1.05
money = money / 1000
money = math.ceil(money)
money = money * 1000
print(money) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,614 |
s324231030 | p00007 | u193453446 | 1503472572 | Python | Python3 | py | Accepted | 30 | 7652 | 236 | def main():
debt = 100000
n = int(input())
for i in range(n):
debt = debt * 1.05
if debt % 1000 > 0:
debt = (debt // 1000 * 1000) + 1000
print(int(debt))
if __name__ == '__main__':
main() | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,615 |
s900864515 | p00007 | u821624310 | 1503525339 | Python | Python3 | py | Accepted | 20 | 7640 | 158 | import math
n = int(input())
money = 10**5
for i in range(n):
money *= 1.05
money_c = math.ceil(money * 0.001)
money = money_c * 1000
print(money) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,616 |
s224070500 | p00007 | u508732591 | 1503817926 | Python | Python3 | py | Accepted | 30 | 7692 | 95 | import math
x,y = int(input()),100
for i in range(x):
y = math.ceil(y*1.05)
print(y*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,617 |
s886292911 | p00007 | u508732591 | 1503817930 | Python | Python3 | py | Accepted | 30 | 7684 | 95 | import math
x,y = int(input()),100
for i in range(x):
y = math.ceil(y*1.05)
print(y*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,618 |
s240308200 | p00007 | u508732591 | 1503817936 | Python | Python3 | py | Accepted | 20 | 7580 | 95 | import math
x,y = int(input()),100
for i in range(x):
y = math.ceil(y*1.05)
print(y*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,619 |
s780921241 | p00007 | u508732591 | 1503818395 | Python | Python3 | py | Accepted | 20 | 7700 | 122 | import math
import itertools
x = 100
for _ in itertools.repeat(None,int(input())):
x = math.ceil(x*1.05)
print(x*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,620 |
s675890363 | p00007 | u428982301 | 1503887045 | Python | Python3 | py | Accepted | 20 | 7708 | 128 | import math
v = int(input())
cal = 100000
for w in range(v):
cal = math.ceil(cal * 1.05 * 0.001) * 1000
print("%d" % cal) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,621 |
s580556053 | p00007 | u146816547 | 1504452467 | Python | Python | py | Accepted | 10 | 6344 | 129 | import math
ans = 100000
n = int(raw_input())
for i in range(n):
ans = math.ceil(ans * 1.05 / 1000) * 1000
print int(ans) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,622 |
s698247144 | p00007 | u234052535 | 1504505196 | Python | Python3 | py | Accepted | 20 | 7780 | 273 | def Round(ip, dg): # ip???dg?????§?????¨?????\????????¢??°
ip = ip / 10**dg
if(ip-int(ip) != 0):
return (int(ip) + 1)*10**dg
else:
return int(ip)*10**dg
n=int(input())
sum=100000
for i in range(0, n):
sum=Round(sum*1.05, 3)
print(sum) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,623 |
s872645163 | p00007 | u299798926 | 1504509826 | Python | Python3 | py | Accepted | 20 | 7612 | 162 | a=int(input())
b=100000
for i in range(a):
ans=b*1.05
if ans%1000!=0 :
ans=ans+(1000-ans%1000)
b=ans
else:
b=ans
print(int(b)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,624 |
s018339719 | p00007 | u957021183 | 1504684226 | Python | Python3 | py | Accepted | 20 | 7644 | 385 | # Aizu Problem 0007: Debt Hell
#
import sys, math, os
# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
sys.stdin = open("sample-input.txt", "rt")
N = int(input())
debt = 100000
for week in range(N):
interest = debt * .05
iinterest = int(interest / 1000) * 1000
if interest > iinterest:
... | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,625 |
s160706964 | p00007 | u933096856 | 1505800330 | Python | Python3 | py | Accepted | 20 | 7760 | 104 | import math
n=int(input())
a=100000
for i in range(n):
a*=1.05
a=math.ceil(a/1000)*1000
print(a) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,626 |
s436022063 | p00007 | u933096856 | 1505800392 | Python | Python3 | py | Accepted | 50 | 7624 | 97 | import math
n=int(input())
a=100000
for i in range(n):
a=math.ceil(1.05*a/1000)*1000
print(a) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,627 |
s660038299 | p00007 | u933096856 | 1505800470 | Python | Python3 | py | Accepted | 30 | 7744 | 97 | import math
n=int(input())
a=100000
for i in range(n):
a=math.ceil(1.05*a/1000)*1000
print(a) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,628 |
s704319445 | p00007 | u933096856 | 1505800480 | Python | Python3 | py | Accepted | 20 | 7748 | 97 | import math
n=int(input())
a=100000
for i in range(n):
a=math.ceil(1.05*a/1000)*1000
print(a) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,629 |
s082259117 | p00007 | u197615397 | 1506156792 | Python | Python3 | py | Accepted | 30 | 7560 | 110 | v = 100000
for _ in [0]*int(input()):
v *= 1.05
v += 1000 * (v%1000 > 0)
v -= v%1000
print(int(v)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,630 |
s280001900 | p00007 | u506705885 | 1506438555 | Python | Python3 | py | Accepted | 20 | 7564 | 149 | week=int(input())
money=100000
for i in range(week):
money=money*1.05
if money%1000!=0:
money=1000*(money//1000+1)
print(int(money)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,631 |
s682815588 | p00007 | u336055029 | 1507045942 | Python | Python | py | Accepted | 10 | 6400 | 128 | import math
n = input()
a = 100000
for i in range(n):
a = 1.05 * a
a /= 1000
a = int(math.ceil(a) * 1000)
print (a) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,632 |
s878616667 | p00007 | u742505495 | 1508137696 | Python | Python3 | py | Accepted | 30 | 7752 | 130 | import sys
import math
n = int(input())
debt = 100000
for i in range(1,n+1):
debt = math.ceil((debt*1.05)/1000)*1000
print(debt) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,633 |
s520394483 | p00007 | u197670577 | 1508422462 | Python | Python | py | Accepted | 10 | 6356 | 221 | #!/usr/bin/python
num = int(raw_input())
money = 100000
for i in range(num):
money = int(money * 1.05)
if money % 1000 == 0:
continue
else:
money = int(money) / 1000 * 1000 + 1000
print money | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,634 |
s713289782 | p00007 | u422087503 | 1508812338 | Python | Python3 | py | Accepted | 30 | 7748 | 110 | import math
n = int(input())
d = 100000
for i in range(n):
d *= 1.05
d = math.ceil((d/1000))*1000
print(d) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,635 |
s245422919 | p00007 | u926657458 | 1508959717 | Python | Python3 | py | Accepted | 30 | 7680 | 128 | n = int(input())
x = 100000
for i in range(n):
x *= 1.05
if x % 1000 != 0:
x = x - x % 1000 + 1000
print(int(x)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,636 |
s292319759 | p00007 | u424041287 | 1509113312 | Python | Python3 | py | Accepted | 20 | 7580 | 100 | import math
a = 100000
for n in range(int(input())):
a = math.ceil(a*105/100000)*1000
print(int(a)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,637 |
s928198020 | p00007 | u914007790 | 1509673687 | Python | Python3 | py | Accepted | 20 | 7612 | 136 | debt = 100000
for i in range(int(input())):
debt *= 1.05
if debt % 1000 > 0:
debt = int(debt/1000)*1000+1000
print(debt) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,638 |
s332015787 | p00007 | u776758454 | 1510676959 | Python | Python3 | py | Accepted | 20 | 7672 | 132 | import math
debt = 100000
n = int(input())
for w in range(n):
debt *= 1.05
debt = math.ceil(debt / 1000) * 1000
print(debt) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,639 |
s606524481 | p00007 | u917432951 | 1510732594 | Python | Python3 | py | Accepted | 20 | 7676 | 183 | import math
if __name__ == '__main__':
n = (int)(input())
a = 100000
for x in range(0,n):
b = a*1.05
c = math.ceil(b/1000)
a = c*1000
print(a) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,640 |
s044986799 | p00007 | u488038316 | 1510920495 | Python | Python | py | Accepted | 10 | 6372 | 324 | # -*-coding:utf-8
#???????¨????
import math
def main():
debtTime = int(input())
ans = int(culcDebt(debtTime))
print(ans)
def culcDebt(t):
debt = 100000
for i in range(t):
debt = debt * 1.05
debt = 1000 * math.ceil(debt/1000)
return debt
if __name__ == '__main__':
mai... | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,641 |
s728090383 | p00007 | u742178809 | 1511334215 | Python | Python3 | py | Accepted | 30 | 7680 | 96 | x = 100000
for i in range(int(input())):
x*=1.05
x+=999
x=x//1000*1000
print(int(x)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,642 |
s360932893 | p00007 | u548155360 | 1512382032 | Python | Python3 | py | Accepted | 20 | 5616 | 165 | # coding=utf-8
n = int(input())
debt = 100000
for i in range(n):
debt *= 1.05
if debt % 1000 != 0:
debt = ((debt // 1000)+1)*1000
print(int(debt)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,643 |
s089465747 | p00007 | u024715419 | 1513246077 | Python | Python3 | py | Accepted | 20 | 5660 | 108 | import math
n = int(input())
debt = 100
for i in range(n):
debt = math.ceil(debt*1.05)
print(debt*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,644 |
s055980233 | p00007 | u846136461 | 1513436463 | Python | Python | py | Accepted | 0 | 4720 | 159 | # coding: utf-8
import math
n = int(raw_input())
ans = 100000
for i in range(n):
ans = ans * 1.05
q = math.ceil(ans / 1000)
ans = q * 1000
print int(ans) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,645 |
s196821251 | p00007 | u471400255 | 1513699593 | Python | Python3 | py | Accepted | 20 | 5664 | 238 | from math import floor
n = int(input())
def debt(week):
debt = 100000
for i in range(1,n+1):
debt *= 1.05
amari = debt % 1000
if amari:
debt += 1000 - amari
return int(debt)
print(debt(n)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,646 |
s470192140 | p00007 | u480287988 | 1514104670 | Python | Python3 | py | Accepted | 20 | 5672 | 102 | import math
n,dbt = int(input()),100
for i in range(n):
dbt = math.ceil(dbt*1.05)
print(dbt*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,647 |
s104807113 | p00007 | u600263347 | 1514294239 | Python | Python3 | py | Accepted | 20 | 5668 | 195 | import math
def main():
n = int(input())
_debt = 100000
for i in range(n):
_debt += math.ceil(_debt*0.05*0.001)*1000
print(_debt)
if __name__ == '__main__':
main() | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,648 |
s750775378 | p00007 | u764789069 | 1514304128 | Python | Python | py | Accepted | 10 | 4684 | 329 | rishi=0.05
debt= 100000
week = int(raw_input())
kiriage = 1000
def ceil(src, range):
return((int)(src / range) + 1) * range
for i in range(0,week):
if debt * 1.05 % kiriage !=0:
debt = ceil(debt * (1+rishi), kiriage)
#print debt
else:
debt = debt * (1+rishi)
#print debt
p... | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,649 |
s695213862 | p00007 | u764789069 | 1514305458 | Python | Python | py | Accepted | 0 | 4676 | 294 | rishi=0.05
debt= 100000
week = int(raw_input())
kiriage = 1000
def ceil(src, range):
if int(src * (1 + rishi) % range) == 0:
return src * (1+rishi)
else:
return((int)(src*(1+rishi) / range) + 1) * range
for i in range(0,week):
debt = ceil(debt, kiriage)
print debt | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,650 |
s727584915 | p00007 | u764789069 | 1514305478 | Python | Python | py | Accepted | 10 | 4676 | 294 | rishi=0.05
debt= 100000
week = int(raw_input())
kiriage = 1000
def ceil(src, range):
if int(src * (1 + rishi) % range) == 0:
return src * (1+rishi)
else:
return((int)(src*(1+rishi) / range) + 1) * range
for i in range(0,week):
debt = ceil(debt, kiriage)
print debt | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,651 |
s419038590 | p00007 | u183079216 | 1514345397 | Python | Python3 | py | Accepted | 20 | 5660 | 97 | import math
res = 100
for i in range(int(input())):
res = math.ceil(res*1.05)
print(res*1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,652 |
s910513924 | p00007 | u028347703 | 1514557074 | Python | Python3 | py | Accepted | 20 | 5660 | 117 | import math
n = int(input())
b = 100
for i in range(n):
b += b * 0.05
b = math.ceil(b)
b *= 1000
print("%d" % b) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,653 |
s110029143 | p00007 | u273843182 | 1514728842 | Python | Python3 | py | Accepted | 20 | 5608 | 107 | n = int(input())
s = 100000
for i in range(n):
s*=1.05
if s%1000 != 0:
s += 1000-(s%1000)
print(int(s)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,654 |
s390716336 | p00007 | u546285759 | 1516009572 | Python | Python3 | py | Accepted | 20 | 5664 | 140 | import math
n = int(input())
debt = 100000
for _ in range(n):
debt = debt * 1.05
debt = math.ceil(debt / 1000) * 1000
print(debt)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,655 |
s720014290 | p00007 | u264972437 | 1516014444 | Python | Python3 | py | Accepted | 20 | 5600 | 123 | n = int(input())
d = 100000
for i in range(n):
d *= 1.05
if d % 1000:
d = d - d%1000 + 1000
print(int(d))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,656 |
s131488716 | p00007 | u043254318 | 1516295920 | Python | Python3 | py | Accepted | 20 | 5664 | 117 | import math
n = int(input())
m = 100000.0
for i in range(n):
m = math.ceil((m * 1.05)/1000)*1000
print(int(m))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,657 |
s255625511 | p00007 | u502329480 | 1516505179 | Python | Python3 | py | Accepted | 20 | 5664 | 296 | import math
def int_ceil(src, range):
return int(math.ceil(src/float(range)) * range)
def main():
week = int(input())
debt = 100000
for _ in range(week):
risi = debt * 0.05
debt = int_ceil(debt + risi, 1000)
print(debt)
if __name__ == "__main__":
main()
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,658 |
s400431661 | p00007 | u502329480 | 1516505324 | Python | Python | py | Accepted | 10 | 4728 | 296 | import math
def int_ceil(src, range):
return int(math.ceil(src/float(range)) * range)
def main():
week = int(input())
debt = 100000
for _ in range(week):
risi = debt * 0.05
debt = int_ceil(debt + risi, 1000)
print(debt)
if __name__ == "__main__":
main()
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,659 |
s611510743 | p00007 | u502329480 | 1516505470 | Python | Python | py | Accepted | 10 | 4732 | 296 | import math
def int_ceil(src, range):
return int(math.ceil(src/float(range)) * range)
def main():
week = int(input())
debt = 100000
for _ in range(week):
risi = debt * 0.05
debt = int_ceil(debt + risi, 1000)
print(debt)
if __name__ == "__main__":
main()
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,660 |
s057317413 | p00007 | u737311644 | 1516511392 | Python | Python3 | py | Accepted | 20 | 5664 | 98 | import math
a=100
n=int(input())
for i in range(n):
a=a*1.05
a=math.ceil(a)
print(a*1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,661 |
s381591429 | p00007 | u150984829 | 1516553632 | Python | Python3 | py | Accepted | 20 | 5664 | 83 | import math
d=100
for _ in[0]*int(input()):
d=math.ceil(d*1.05)
print(int(d*1e3))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,662 |
s259392320 | p00007 | u150984829 | 1516553850 | Python | Python3 | py | Accepted | 20 | 5660 | 81 | import math
d=100
for _ in[0]*int(input()):d=math.ceil(d*1.05)
print(int(d*1e3))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,663 |
s064279216 | p00007 | u150984829 | 1516553900 | Python | Python3 | py | Accepted | 20 | 5668 | 77 | import math
a=100
for _ in[0]*int(input()):a=math.ceil(a*1.05)
print(a*1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,664 |
s061153065 | p00007 | u803045841 | 1516567270 | Python | Python3 | py | Accepted | 20 | 5660 | 91 | import math
a = 100
for _ in [0]*int(input()):
a = math.ceil(a * 1.05)
print (a*1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,665 |
s045020235 | p00007 | u706217959 | 1516609392 | Python | Python3 | py | Accepted | 20 | 5668 | 294 | import math
def int_ceil(src,range):
return int(math.ceil(src/float(range)) * range)
def main():
week = int(input())
debt = 100000
for i in range(week):
risi = debt * 0.05
debt = int_ceil(debt+ risi,1000)
print(debt)
if __name__ == "__main__":
main()
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,666 |
s979046535 | p00007 | u401720175 | 1518616715 | Python | Python3 | py | Accepted | 30 | 5664 | 144 | # coding:utf-8
import math
debt = 100000
for _ in range(int(input())):
debt *= 1.05
debt = math.ceil(debt / 1000) * 1000
print(debt)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,667 |
s580484311 | p00007 | u328199937 | 1519041153 | Python | Python3 | py | Accepted | 20 | 5668 | 131 | import math
money = int(100)
for i in range(int(input())):
money *= 1.05
money = math.ceil(money)
print(int(money) * 1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,668 |
s434809801 | p00007 | u780025254 | 1519189524 | Python | Python3 | py | Accepted | 20 | 5664 | 127 | import math
week = int(input())
debt = 100000
for i in range(week):
debt = math.ceil(debt*1.05/1000)*1000
print(int(debt))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,669 |
s004374514 | p00007 | u553148578 | 1519820914 | Python | Python3 | py | Accepted | 20 | 5660 | 93 | import math
num=100
for i in range(int(input())):
num = math.ceil(num*1.05)
print(num*1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,670 |
s172919266 | p00007 | u613534067 | 1520074544 | Python | Python3 | py | Accepted | 20 | 5608 | 159 | debt = 100000.0
a = int(input())
for i in range(a):
debt = debt * 1.05
if(debt % 1000):
debt = (debt // 1000) * 1000 + 1000
print(int(debt))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,671 |
s807433821 | p00007 | u646461156 | 1521007154 | Python | Python3 | py | Accepted | 20 | 5664 | 115 | import math
n=int(input())
ans=100000
for i in range(n):
ans*=1.05
ans=int(math.ceil(ans/1000)*1000)
print(ans)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,672 |
s479833219 | p00007 | u298999032 | 1521527968 | Python | Python3 | py | Accepted | 20 | 5608 | 115 | x=int(100000)
n=int(input())
for i in range(n):
x*=1.05
if x%1000!=0:
x+=1000-x%1000
print(int(x))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,673 |
s970391000 | p00007 | u298999032 | 1521528042 | Python | Python3 | py | Accepted | 20 | 5604 | 106 | x=100000
for i in range(int(input())):
x*=1.05
if x%1000!=0:
x+=1000-x%1000
print(int(x))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,674 |
s995046775 | p00007 | u352394527 | 1523859311 | Python | Python3 | py | Accepted | 20 | 5608 | 139 | n = int(input())
a = 100000
for i in range(n):
a = a * 1.05
b = 0
if a % 1000:
b = 1000
a = int(a // 1000 * 1000 + b)
print(a)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,675 |
s825599625 | p00007 | u027874809 | 1523933457 | Python | Python3 | py | Accepted | 20 | 5656 | 86 | import math
a = 100
for _ in range(int(input())):a=math.ceil(a*1.05)
print(a * 1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,676 |
s931830586 | p00007 | u499522466 | 1524407547 | Python | Python3 | py | Accepted | 20 | 5664 | 118 | import math
n = int(input())
debt = 100000
for i in range(n):
debt = math.ceil(debt*1.05/1000)*1000
print(debt)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,677 |
s653128984 | p00007 | u533681846 | 1525026573 | Python | Python3 | py | Accepted | 20 | 5664 | 134 | import math
debt = 100000
rate = 1.05
week = int(input())
for i in range(week):
debt = math.ceil(debt*1.05/1000)*1000
print(debt)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,678 |
s369688318 | p00007 | u480716860 | 1525224021 | Python | Python3 | py | Accepted | 30 | 5608 | 173 |
m = 100000
rate = 0.05
n = int(input())
for i in range(n):
m += m*rate
x = m%1000
m -= x
while(x % 1000 != 0):
x += 1
m += x
print(str(int(m)))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,679 |
s279318823 | p00007 | u150984829 | 1525318892 | Python | Python3 | py | Accepted | 20 | 5600 | 68 | a=100
for _ in[0]*int(input()):a=int(a*1.05)+(a%20>0)
print(a*1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,680 |
s384965623 | p00007 | u223900719 | 1525534144 | Python | Python | py | Accepted | 10 | 4720 | 101 | import math
n=input()
S=100000
for i in range(n):
S*=1.05
S=int( math.ceil(S/1000)*1000 )
print S
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,681 |
s830469256 | p00007 | u724548524 | 1525732066 | Python | Python3 | py | Accepted | 20 | 5660 | 94 | import math
j = 100
for _ in range(int(input())):
j = math.ceil(j * 1.05)
print(j * 1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,682 |
s708219801 | p00007 | u945249026 | 1525774324 | Python | Python3 | py | Accepted | 20 | 5664 | 128 | import math
N = int(input())
A = 100000
for _ in range(N):
A = A * 1.05
A = (int(math.ceil(A / 1000))) * 1000
print(A)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,683 |
s273146672 | p00007 | u306037418 | 1525944709 | Python | Python3 | py | Accepted | 20 | 5604 | 171 | n = int(input())
ans = 100000
# ans += (n*(100000*0.05))
for i in range(n):
ans *= 1.05
if ans % 1000 > 0:
ans = ans // 1000 * 1000 + 1000
print(int(ans))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,684 |
s180479768 | p00007 | u217408867 | 1526665790 | Python | Python3 | py | Accepted | 20 | 5664 | 102 | import math
r = 100
n = int(input())
for i in range(n):
r = math.ceil(r * 1.05)
print(r * 1000)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,685 |
s789582379 | p00007 | u802537549 | 1527307748 | Python | Python3 | py | Accepted | 20 | 5664 | 287 | from math import ceil
DEBT = 100000
DIGITS = 1000
INTEREST_RATE = 1.05
def calc_debt(n):
d = DEBT // DIGITS
while n > 0:
d = ceil(d * INTEREST_RATE) # 借金の小数点以下を切り捨て
n -= 1
return d * DIGITS
n = int(input())
print(calc_debt(n))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,686 |
s216211092 | p00007 | u136916346 | 1527351241 | Python | Python3 | py | Accepted | 20 | 5632 | 197 | def ceil(n):
if n%1000:
return (1+n//1000)*1000
else:
return n
def debt(n):
if n==0: return 100000
return int(ceil(debt(n-1)*1.05))
print(debt(int(input())))
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,687 |
s687097191 | p00007 | u458530128 | 1528365254 | Python | Python3 | py | Accepted | 10 | 5664 | 118 | import math
n = int(input())
a = 100000
for _ in range(n):
a *= 1.05
a = 1000 * math.ceil(a / 1000)
print(a)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,688 |
s803977055 | p00007 | u847467233 | 1528514052 | Python | Python3 | py | Accepted | 20 | 5592 | 194 | # AOJ 0007 Debt Hell
# Python3 2018.6.7 bal4u
a = 100000;
n = int(input())
while n > 0:
n -= 1
a = a + (a * 5) // 100
a = ((a - 1) // 1000 + 1) * 1000 # 1000未満の切り上げ
print(a)
| p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,689 |
s947213718 | p00007 | u995990363 | 1530685360 | Python | Python3 | py | Accepted | 30 | 5672 | 421 | import math
class Debt(object):
def __init__(self):
self.debt = 100000
def spend_a_week(self):
self.debt = self._ceil_1000(self.debt * 1.05)
def _ceil_1000(self, debt):
return int(math.ceil(debt / 1000) * 1000)
def run():
n = int(input())
debt = Debt()
for _ i... | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,690 |
s278622945 | p00007 | u517745281 | 1344574230 | Python | Python | py | Accepted | 10 | 4248 | 132 | print(lambda f,n:f(f,n))(lambda f,n:n==0 and 100000 or(lambda x:x%1000>0 and x-x%1000+1000 or x)(f(f,n-1)*105/100),int(raw_input())) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,691 |
s166348129 | p00007 | u517745281 | 1344576430 | Python | Python | py | Accepted | 20 | 4252 | 120 | N=1000;print(lambda f,n:f(f,n))(lambda f,n:n==0 and 100*N or(lambda x:x%N>0 and x-x%N+N or x)(f(f,n-1)*105/100),input()) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,692 |
s634422908 | p00007 | u108432367 | 1344650460 | Python | Python | py | Accepted | 10 | 4204 | 149 | price = 100000
n = input()
for i in range(n):
price = price * 105 / 100
if price % 1000 != 0:
price -= (price % 1000)
price += 1000
print price | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,693 |
s405478876 | p00007 | u575065019 | 1345553361 | Python | Python | py | Accepted | 10 | 4372 | 126 | import math
n = input()
p = 0
money = 100
while p != n:
money = math.ceil(money * 1.05)
p += 1
print int(money * 1000) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,694 |
s178457837 | p00007 | u724947062 | 1346482512 | Python | Python | py | Accepted | 10 | 4368 | 239 | import sys, math
for line in sys.stdin.readlines():
line = line.strip()
n = int(line)
value = 100000.0
for week in xrange(n):
value = value * 1.05
value = math.ceil(value / 1000) * 1000
print int(value) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,695 |
s357360465 | p00007 | u891318575 | 1346510198 | Python | Python | py | Accepted | 10 | 5692 | 192 | # -*- coding: utf-8 -*-
week = int(raw_input())
debt = 100000
for i in range(week):
debt = debt*1.05
if debt%1000 != 0:
debt -= debt%1000
debt += 1000
print(int(debt)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,696 |
s013456212 | p00007 | u647766105 | 1350912198 | Python | Python | py | Accepted | 10 | 5948 | 101 | import math
n=input()
m=10**2
for i in range(n):
m=m*1.05
m=math.ceil(m)
print int(m*(10**3)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,697 |
s130520538 | p00007 | u719737030 | 1350914221 | Python | Python | py | Accepted | 10 | 5948 | 96 | m = 100000
for i in range(int(raw_input())):
m*=1.05
m=(int((m+999)/1000))*1000
print m | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,698 |
s207496617 | p00007 | u779627195 | 1352375949 | Python | Python | py | Accepted | 10 | 4368 | 111 | import math
n = input()
m = 100000
for i in range(n):
m *= 1.05
m = math.ceil(m/1000)*1000
print int(m) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,699 |
s394836877 | p00007 | u647766105 | 1354806237 | Python | Python | py | Accepted | 10 | 4372 | 96 | import math
m=10**2
for i in range(input()):
m*=1.05
m=math.ceil(m)
print int(m*(10**3)) | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,700 |
s549004029 | p00007 | u419407022 | 1355297871 | Python | Python | py | Accepted | 10 | 4996 | 125 | import math
debt = 100000
for i in range(int(raw_input())):
debt = int(math.ceil((debt * 1.05) / 1000)) * 1000
print debt | p00007 |
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> wee... | 5
| 130000
| 4,701 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.