submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s693720304 | p00007 | Accepted | a=100000
n=int(input())
for i in range(n):
a*=1.05
if a%1000:
a=int(a//1000*1000+1000)
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s204871313 | p00007 | Accepted | import math
a=int(input())
b=100000
for i in range(a):
b=b*1.05
b=b/1000
b=math.ceil(b)
b=b*1000
print(b)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s119746979 | p00007 | Accepted | n = int(input())
f = 100000
if n == 0:
print(int(f))
else:
for i in range(n):
f *= 1.05
#print(f)
#F = f - f%1000 + 1000
if f%1000 != 0:
f = (f//1000)*1000 + 1000
#print(i,f)
print(int(f))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s860474778 | p00007 | Accepted | n = int(input())
a = 100000
for i in range(n):
a = a+a*0.05
if a%1000 !=0:
a = int(((a//1000)+1)*1000)
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s249438795 | p00007 | Accepted | n=int(input())
z=100000
for i in range(n):
z*=1.05
if z%1000!=0:
z-=z%1000
z+=1000
print(int(z))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s099902632 | p00007 | Accepted | a = int(input())
Y = 100000
i = 1
while a >= i:
Y = Y * 1.05
if Y % 1000 != 0:
Y = (Y//1000+1) * 1000
i = i + 1
print(int(Y))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s500040836 | p00007 | Accepted | #0007
from math import floor, ceil
n = int(input())
sum = 100000
for i in range(n):
sum += sum*0.05
if sum%1000 == 0:
sum = sum
else:
sum = ((sum//1000)+1) * 1000
print(int(sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s727477028 | p00007 | Accepted | n=int(input())
i=1
sum=100000
while i<=n:
M=(sum)*0.05
sum+=M
if (sum)%1000==0:
sum=sum
else:
sum=((sum//1000)+1)*1000
i+=1
print(int(sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s543624779 | p00007 | Accepted | n = int(input())
now = 100000
week = 0
for week in range(n):
calc = (int)(now * 0.05)
now += (calc//1000)*1000
if calc % 1000:
now += 1000
print(now)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s042764669 | p00007 | Accepted | s=100000
n=int(input())
for i in range (n):
s*=1.05
if s%1000!=0:
s=s-(s%1000)+1000
print(int(s))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s608326393 | p00007 | Accepted | n=int(input())
z=100000
for i in range(n):
z*=1.05
if z%1000!=0:
z-=z%1000
z+=1000
print(int(z))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s114817100 | p00007 | Accepted | n=int(input())
x=100000
for i in range(n):
x*=1.05
if x%1000!=0:
x=x-(x%1000)+1000
x=int(x)
print(x)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s671325103 | p00007 | Accepted | import math
a=int(input())
x=100
for _ in range(a):
x*=1.05
x=math.ceil(x)
print(x*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s631303313 | p00007 | Accepted | s=100000
n=int(input())
for i in range (n):
s=s*1.05
if s%1000!=0:
s=(s//1000)*1000+1000
print(int(s))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s301711472 | p00007 | Accepted | import math
n = int(input())
sum=100000
i=0
for i in range(n):
sum = math.ceil(sum*1.05/1000)*1000
print(sum)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s035798808 | p00007 | Accepted | n = int(input())
import math
yen = 100000
for i in range(n):
yen = math.ceil((yen*1.05)/1000)*1000
print(yen)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s616394315 | p00007 | Accepted | n = int(input())
i = 1
x = 100000
while i<=n:
r = x * 0.05
x += r
if x % 1000 >0:
x = (x //1000 + 1)*1000
i += 1
print(f'{x:.0f}')
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s672046856 | p00007 | Accepted | import math
n=int(input())
x=100000
for i in range(n):
x*=1.05
x=math.ceil(x)
if x%1000:
x=x-(x%1000)+1000
print(x)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s083606852 | p00007 | Accepted | import math
n=int(input())
i=1
sum=100
while i<=n:
sum=math.ceil(sum*1.05)
i=i+1
print(sum*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s009498487 | p00007 | Accepted | n = int(input())
S = 100000
for i in range(n):
S = int(S*1.05)
slist = list(str(S))
if slist[-3:] == ['0','0','0'] :
S = S
else:
S = S - int(slist[-3])*100 - int(slist[-2])*10 - int(slist[-1])*1 + 1000
print(S)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s593317808 | p00007 | Accepted | import math
a=100
n=int(input())
for i in range(n):
a*=1.05
a=math.ceil(a)
print(a*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s886852295 | p00007 | Accepted | import math
N = int(input())
o = 100.000
for i in range(N):
o += math.ceil(o*0.05)
i += 1
print(int(o*1000))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s145935502 | p00007 | Accepted | n=int(input())
g=100
for i in range(n):
k=-(-(g*1.05)//1)
g=k
print(int(1000*k))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s841389822 | p00007 | Accepted | import math
n=int(input())
x=100000
for i in range(n):
x=x+0.05*x
x=(math.ceil(x/1000))*1000
print(x)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s586093623 | p00007 | Accepted | x = 100000
n = int(input())
for _ in range(n):
x = x*1.05
if x%1000>0:
x = x-x%1000+1000
print(int(x))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s590181610 | p00007 | Accepted | n=int(input())
a=100000
i=0
while i<n:
a=(a/100)*105
if a%1000!=0:
a+=(1000-a%1000)
i+=1
print(int(a))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s288925356 | p00007 | Accepted | n = int(input())
a = 100000
for i in range(n):
a = a + (a*0.05)
if a%1000 != 0:
a = a - (a%1000) + 1000
print(int(a))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s549400984 | p00007 | Accepted | import math
x = 100
n = int(input())
for i in range(n):
x = x*1.05
x = math.ceil(x)
print(x*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s956966613 | p00007 | Accepted | import math
n=int(input())
a=100000
for _ in range(n):
a+=a*0.05
a=math.ceil(a/1000)*1000
print(math.floor(a))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s667809318 | p00007 | Accepted | n=int(input())
if 0<=n<=100:
sum=100000
for i in range(n):
sum=sum*1.05
if sum%1000==0:
pass
else:
sum=sum-(sum%1000)+1000
print(int(sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s374766832 | p00007 | Accepted | x=int(input())
i=0
a=100000
while x>i :
a=a+a*0.05
if a%1000!=0 : a=a+1000
a=int(a/1000)
a=a*1000
i=i+1
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s611499247 | p00007 | Accepted | # coding: utf-8
# Your code here!
n = int(input())
sum = 100000
for i in range(n):
sum += sum * 0.05
if sum % 1000 > 0:
sum -= sum % 1000
sum += 1000
print(int(sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s453746893 | p00007 | Accepted | import math
n=int(input())
a=100
i=1
while i<=n:
a+=a*0.05
a=math.ceil(a)
i+=1
print(a*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s318646570 | p00007 | Accepted | n=int(input())
i=0
money=100000
while i<n:
money+=money*5//100
if(money%1000!=0):
money=money+1000-money%1000
i+=1
print(money)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s188246955 | p00007 | Accepted | T=100000
n=int(input())
for x in range(n):
T*=1.05
if T%1000==0:
pass
else:
T=T-(T%1000)+1000
print(int(T))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s391472277 | p00007 | Accepted | n=int(input())
a=100000
for i in range(n):
a=a*1.05
if a%1000 != 0:
a=int(a//1000*1000+1000)
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s146332904 | p00007 | Accepted | n=int(input())
if 0<=n<=100:
sum=100000
for i in range (n):
sum=sum*1.05
if sum%1000==0:
pass
else:
sum=sum-(sum%1000)+1000
print(int(sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s815074470 | p00007 | Accepted | money =100000
import math
count = int(input())
for i in range(count):
newmoney =math.ceil(money*1.05/1000)*1000
money=newmoney
print(money)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s965445373 | p00007 | Accepted | import math
n = int(input())
x = 100000
for i in range(n):
x *= 1.05
x = math.ceil(x)
if x % 1000:
x = x - (x % 1000) + 1000
print(x)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s960976447 | p00007 | Accepted | s = 100000
for i in range(int(input())):
s *= 1.05
if s % 1000:
s = s - (s % 1000) + 1000
print(int(s))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s447704283 | p00007 | Accepted | import sys
import math
def rishi(n,a):
if(n>0):
a=a*1.05
a1=a%1000
if(a1 != 0):
a=a-a1+1000
n=n-1
return (rishi(n,a))
else:
return a
a=100000
n=int(input())
n_sum=rishi(n,a)
print(round(n_sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s132306630 | p00007 | Accepted | import math
def debt(d, n):
if n == 0:
return d
d *= 1.05
d = math.ceil(d / 1000) * 1000
return debt(d, n - 1)
n = int(input())
d = 100000
print(debt(d, n))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s576468148 | p00007 | Accepted | import math
PAR = 0.05
sum = 100000
for i in range(int(input())):
sum += math.ceil(sum * PAR / 1000) * 1000
print(sum)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s660438221 | p00007 | Accepted | import math
debt = 100000
rate = 0.05
n = int(input())
def CalcDect():
global debt
global n
if n <= 0:
return
debt += (debt * rate)
debt = int(math.ceil(debt / 1000)) * 1000
n -= 1
CalcDect()
CalcDect()
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s428866808 | p00007 | Accepted | from decimal import Decimal,ROUND_UP
n = int(input())
a = 100000
for i in range(n):
a = a * 1.05
y = Decimal(str(a))
a = y.quantize(Decimal('1E3'), rounding=ROUND_UP)
a = int(a)
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s713434363 | p00007 | Accepted | while True:
try:
n = int(input())
dept = 100000
for i in range(0,n):
dept += dept * 0.05
round = dept % 1000
if round > 0:
dept += 1000 - round
print(int(dept))
except:
break
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s199630999 | p00007 | Accepted | N = int(input())
x = 100000
for i in range(N):
if x % 20 == 0:
x = x + (x // 20)
if x % 1000 > 0:
x = x - (x % 1000) + 1000
else:
x = 1.05 * x
x = int(x) + 1
if x % 1000 > 0:
x = x - (x % 1000) + 1000
print(x)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s900753773 | p00007 | Accepted | import math;print([(x.append(y), x) for x in [[100000]] for _ in range(int(input())) for y in [math.ceil(x[-1] * 1.05 / 1000)*1000]][-1][-1][-1])
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s224657068 | p00007 | Accepted | n = int(input())
d = 100000
for i in range(n):
d = d *105 //100
d = -(-d//1000)*1000
print(d)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s319735409 | p00007 | Accepted | n = int(input())
w = 100000
for i in range(n):
w *= 1.05
if (w % 1000):
w = w // 1000 + 1
else:
w = w // 1000
w *= 1000
print(int(w))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s353151244 | p00007 | Accepted | import sys
w=int(input())
base=100000
for i in range(w):
base=base*1.05
if base%1000!=0:
base=base-base%1000+1000
print(int(base))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s015253207 | p00007 | Accepted | import math
n = int(input())
d = 100000
for i in range(n):
d = d * 1.05
d = math.ceil(d / 1000) * 1000
print(d)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s074241066 | p00007 | Accepted | import math
a = 100
b = int(input())
for _ in range(b):
a = math.ceil(a * 1.05)
a *= 1000
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s918454266 | p00007 | Accepted | n = int(input())
def shakkin(n):
x = 100000
for i in range(n):
x = x * 1.05
if x % 1000:
x = x - (x % 1000) + 1000
return int(x)
print(shakkin(n))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s959971313 | p00007 | Accepted | n = int(input())
money = 100000
for i in range(n):
money *= 1.05
if money % 1000 != 0:
money = int(money // 1000 * 1000 + 1000)
print(money)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s884339011 | p00007 | Accepted | a=100000;
n=int(input())
while n>0:
n-=1
a=a+(a*5)//100
a=((a-1)//1000+1)*1000
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s740497992 | p00007 | Accepted | import math
n = int(input())
money = 100000
for i in range(n):
money = money*1.05
money = math.ceil(money/1000)*1000
print(money)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s901959367 | p00007 | Accepted | a = 100000;
n = int(input())
while n > 0:
n -= 1
a = a + (a * 5) // 100
a = ((a - 1) // 1000 + 1) * 1000 # 1000未満の切り上げ
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s676869385 | p00007 | Accepted | a = 100000
n = int(input())
while n > 0:
n -= 1
a = a+(a*5)//100
a = ((a - 1) // 1000 + 1) * 1000
print(a)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s312923397 | p00007 | Accepted | import math
a=100
for _ in range(int(input())):a=math.ceil(a*1.05)
print(a*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s424726130 | p00007 | Accepted | a=100
for _ in[0]*int(input()):a=int(a*1.05)+(a%20>0)
print(a*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s309119280 | p00007 | Accepted | import math
a=100
for _ in range(int(input())):a=math.ceil(a*1.05)
print(a*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s942244771 | p00007 | Accepted | # coding: utf-8
m = 100000
n = int(input())
for i in range(n):
m = m*1.05
h = 0;
if m % 1000:
h = 1000
m = int(m // 1000 * 1000 + h)
print(m)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s790974275 | p00007 | Accepted | import math
n= int(input())
def money(x):
A =100
for i in range(x):
A=math.ceil(A*1.05)
# print(A)
return A*1000
print(money(n))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s879448867 | p00007 | Accepted | import math
debt = 100000
for n in range(int(input())):
debt = math.ceil(debt*1.05/1000)*1000
print(str(debt))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s891398957 | p00007 | Accepted | if __name__ == '__main__':
n = int(input())
s = 100000
for i in range(n):
s += int(s*(0.05))
tmp0 = str(s)
tmp1 = len(tmp0)
tmp2 = tmp0[0:tmp1-3]
num = tmp2 + "000"
if int(s) - int(num) != 0:
s = int(num) + 1000
print(s)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s245592635 | p00007 | Accepted | n = int(input())
x = 100000
for i in range(n):
x = x * 1.05
if x % 1000 != 0:
y = x % 1000
x += (1000 - y)
else:
pass
print(int(x))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s536811949 | p00007 | Accepted | import math
n = int(input())
debt = 100000
for i in range(n):
debt = 1000 * math.ceil(debt * 1.05 / 1000.0)
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s481040830 | p00007 | Accepted | import math
sum = 100000
n=int(input())
for i in range(n):
sum=sum*1.05
if sum % 1000 != 0:
a=sum//1000
a=a+1
sum=a*1000
print(int(sum))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s395204214 | p00007 | Accepted | ###
### atcorder test program
###
import sys
### math class
class math:
### pi
pi = 3.14159265358979323846264338
### GCD
def gcd(self, a, b):
if b == 0:
return a
return self.gcd(b, a%b)
### LCM
def lcm(self, a, b):
return (a*b)//self.gcd(a,b)
math = math()
### output class
class output:
### list
def list(self, l):
l = list(l)
print(" ", end="")
for i, num in enumerate(l):
print(num, end="")
if i != len(l)-1:
print(" ", end="")
print()
output = output()
### input sample
#i = input()
#A, B, C = [x for x in input().split()]
#inlist = [int(w) for w in input().split()]
#R = float(input())
#A = [int(x) for x in input().split()]
#for line in sys.stdin.readlines():
# x, y = [int(temp) for temp in line.split()]
### output sample
#print("{0} {1} {2:.5f}".format(A//B, A%B, A/B))
#print("{0:.6f} {1:.6f}".format(R*R*math.pi,R*2*math.pi))
#print(" {}".format(i), end="")
m = 100000
for i in range(int(input())):
m *= 1.05
if m%1000 != 0:
m = (m//1000+1) * 1000
else:
m = (m//1000) * 1000
print(int(m))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s014646393 | p00007 | Accepted | weeks = int(input())
debt = 100000
for i in range(weeks):
debt = debt * 1.05
if debt % 1000 != 0:
debt = debt - (debt % 1000) + 1000
print(int(debt))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s893408590 | p00007 | Accepted | n = int(raw_input())
debt = 100000
for i in range(0, n):
debt = 105*debt/100
if debt % 1000 != 0:
debt = (debt / 1000 + 1) * 1000
print debt
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s057576511 | p00007 | Accepted | N=int(input())
def syakkin(N):
pri=100000
for i in range(N):
pri=pri*1.05
if pri%1000:
pri=pri-(pri%1000)+1000
return int(pri)
print(syakkin(N))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s717603877 | p00007 | Accepted | import math
r = 100000
for i in range(int(input())): r = math.ceil(r*1.05/1000)*1000
print(r)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s131747569 | p00007 | Accepted | #!/usr/bin/env python3
from math import ceil
n = int(input())
debt = 100000
for i in range(0, n):
debt = debt * 1.05
debt = int(ceil(debt / 1000.0) * 1000.0)
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s963422246 | p00007 | Accepted | debt = 100000
n = int(input())
for i in range(n):
debt *= 1.05
if debt % 1000 != 0:
debt = int(((debt // 1000) + 1) * 1000)
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s855153147 | p00007 | Accepted | import math
n=int(input())
debt=100000
for i in range(n):
debt=math.ceil(debt*1.05/1000)*1000
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s717222977 | p00007 | Accepted | debt = 100000
weeks = int(input())
for i in range(weeks):
debt = int(debt * 1.05)
frac = debt % 1000
if frac != 0:
debt = debt - frac + 1000
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s977824119 | p00007 | Accepted | n=int(input())
dept=100000
for i in range(n):
A=dept*0.05/1000
if(A!=int(A)):
dept=dept+int(A)*1000+1000
else:
dept=dept+int(A)*1000
print(dept)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s442585947 | p00007 | Accepted | import math
n = int(input())
x = 100000
for i in range(n):
x = math.ceil(x * 1.05 / 1000) * 1000
print(x)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s986565149 | p00007 | Accepted | n = int(input())
debt = 100000
for i in range(n):
x = debt*1.05
if x%1000==0:
debt = x
else:
debt = (x//1000)*1000+1000
print(int(debt))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s924968472 | p00007 | Accepted | #import math
def up(a):
m = a//1000*1000
if a%1000 > 0:
return int(m + 1000)
else:
return int(a)
n = int(input())
m = 100000
for i in range(n):
m = m * 1.05
m = up(m)
print(m)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s162083803 | p00007 | Accepted | import math
n=int(input())
a=100
for i in range (n):
a=math.ceil(a*1.05)
#四捨五入
#d_new=int(round(d+1,-4))
#from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
#d_new=Decimal(int(d)).quantize(Decimal('1E4'), rounding=ROUND_HALF_UP)
#切り捨て
#math.floor(11/3)
d=a*1000
print(int(d))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s489836011 | p00007 | Accepted | from math import ceil as c
a=int(input())
b = 100
for i in range(a):
b = c(b*1.05)
print(b*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s099960955 | p00007 | Accepted | while True:
try:
n = int(input())
except EOFError:
break
ret=100000.0
for i in range(n):
ret=round(ret*1.05+499, -3)
print(int(ret))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s369787356 | p00007 | Accepted | import math
n = int(input())
result = 100
for i in range(n):
result = math.ceil(result*1.05)
print(result*1000)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s080506699 | p00007 | Accepted | week = int(input() )
debt = 100000
for i in range(week):
debt = debt * 1.05
if debt % 1000 != 0:
debt -= debt % 1000
debt += 1000
print(int(debt) )
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s895291063 | p00007 | Accepted | import math
n = int(input())
def debt(i):
if i == 0:
return 100000
else:
return math.ceil(debt(i-1)*1.05/1000)*1000
print(debt(n))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s961760828 | p00007 | Accepted | n = int(input())
amount = 100000
for i in range(n):
amount = int(-(-amount * 1.05 // 1000) * 1000)
print(amount)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s233711974 | p00007 | Accepted | n=int(input())
zandaka=100000
for i in range(n):
zandaka=zandaka*1.05
if zandaka%1000!=0:
zandaka=zandaka+1000-zandaka%1000
print(int(zandaka))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s504707784 | p00007 | Accepted | n = int(input())
money = 100000
for i in range(n):
money *= 1.05
if money % 1000 != 0:
money = int(money // 1000 * 1000 + 1000)
print(money)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s658027671 | p00007 | Accepted | N = int(input())
debt = 100000
for i in range(N):
debt *= 1.05
if debt % 1000 > 0:
debt = debt + 1000 - debt % 1000
print(round(debt))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s129105992 | p00007 | Accepted | N = int(input())
a = 100000
for _ in range(N):
a *= 1.05
if a%1000:
a -= a%1000
a += 1000
print(int(a))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s588569239 | p00007 | Accepted | N = int(input())
def doround(n) :
if n % 1000 > 0 :
return (n // 1000) * 1000 + 1000
else :
return n
base = 100000
for i in range(N) :
base *= 1.05
base = doround(base)
print(int(base))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s381220112 | p00007 | Accepted | import math
def run():
m = 100
r = 1.05
n = int(input())
for _ in range(n):
m = math.ceil(m * r)
print(m * 1000)
if __name__ == '__main__':
run()
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s911477409 | p00007 | Accepted | import math
n = int(input())
base = 100000
for i in range(n):
base *= 1.05
base /= 1000
base = math.ceil(base)
base *= 1000
print(base)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s629694913 | p00007 | Accepted | n = int(input())
m = 100000
for i in range(n):
m = m * 1.05
if m % 1000 > 0:
m = m - (m%1000) + 1000
print(int(m))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s398956915 | p00007 | Accepted | import math
n = int(input())
debt = 100000
for i in range(n):
debt += debt/20
debt = math.ceil(debt/1000)*1000
print(debt)
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s551425459 | p00007 | Accepted | debt = 100000
n = int(input())
for _ in range(n):
debt *= 1.05
if debt % 1000 > 0:
debt += 1000 - debt % 1000
print(int(debt))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
s413856050 | p00007 | Accepted | num = int(input())
debt = 100000
for x in range(num):
debt = debt * 105 / 100
if debt % 1000 != 0:
debt = ((debt // 1000) + 1) * 1000
else:
pass
print(int(debt))
| 5
| 130000
|
<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> weeks.
</p>
<H2>Input</H2>
<p>
An integer <var>n</var> (0 ≤ <var>n</var> ≤ 100) is given in a line.
</p>
<H2>Output</H2>
<p>
Print the amout of the debt in a line.
</p>
<H2>Sample Input</H2>
<pre>
5
</pre>
<H2>Output for the Sample Input</H2>
<pre>
130000
</pre>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.