submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s440808671 | p00007 | Accepted | import math
n = int(input())
debt = 100000
for _ in range(n):
debt = debt * 1.05
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>
|
s171536873 | p00007 | Accepted | import math
res = 100
N = int(input())
for i in range(N):
res = math.ceil(res * 1.05)
print("%d000" % res)
| 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>
|
s739648151 | p00007 | Accepted | n = int(input())
S = 100000
for i in range(n) :
S *= 1.05
if S % 1000!= 0 :
S = (int(S/1000)+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>
|
s546183006 | p00007 | Accepted | import math
n=int(input())
a=100
for i in range(n):
a=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>
|
s211825677 | p00007 | Accepted | import math
n=int(input())
a=100000
for i in range(n):
a=a+a*0.05
if a%1000==0:
a=a
else:
a=(math.floor(a/1000))
a=a*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>
|
s467619660 | p00007 | Accepted | import math
debt = 100000
n = int(input())
for i in range(n):
debt *= 1.05
debt = math.ceil(debt * 0.001)*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>
|
s446510740 | p00007 | Accepted | # coding: utf-8
# Your code here!
n=int(input())
x=100000
for i in range(n):
x=x*1.05
if x%1000!=0:
x=int(x//1000*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>
|
s645172145 | p00007 | Accepted | import math
debt = 100000
n = int(input())
for i in range(n):
debt *= 1.05
debt = math.ceil(debt * 0.001) * 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>
|
s441832687 | p00007 | Accepted | import math
n = int(input())
money = 100000
for i in range(n):
money = math.ceil((money * 1.05) / 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>
|
s684544170 | p00007 | Accepted | n=int(input())
a=100000
for i in range(n):
a*=1.05
if a%1000 !=0:
a=(a//1000)*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>
|
s443293802 | p00007 | Accepted | import math
num = 100
n = int(input())
for i in range(n):
num = math.ceil(num*1.05)
print(num*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>
|
s752393835 | p00007 | Accepted | # -*- coding: utf-8 -*-
import math
a=100
b=int(input())
for i in range(b):
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>
|
s585476536 | p00007 | Accepted | n=int(input())
sum=100000
for i in range(n):
sum=sum*1.05
i+=1
if sum%1000>0:
sum=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>
|
s176682170 | p00007 | Accepted | m = 100000
n = int(input())
while n > 0:
n -= 1
m = m + (m * 5 // 100)
m = ((m-1) // 1000 + 1) * 1000
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>
|
s716111825 | p00007 | Accepted | a = int(input())
s = 100000
for i in range (a):
s = 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>
|
s959554256 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s*=1.05
if s%1000!=0:
s = (int(s / 1000) + 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>
|
s101091412 | 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>
|
s140082725 | p00007 | Accepted | n=int(input())
A=100000
for i in range(n):
A=A*1.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>
|
s716750543 | p00007 | Accepted | n=int(input())
s=100000
for i in range (n):
s*=1.05
s=int(s)
if s%1000==0:
s=s
else:
s=(int(s/1000)+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>
|
s966722816 | p00007 | Accepted | N=int(input())
a=100000
for i in range(N):
x=a+(a*0.05)
if x%1000==0:
a=x
else:
a=(x-(x%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>
|
s258612759 | p00007 | Accepted | import math
N = int(input())
A = 100
for i in range(N):
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>
|
s800168065 | p00007 | Accepted | import math
S=100000
n=int(input())
for i in range(n):
S*=1.05
s=S/1000
ceilnum = math.ceil(s)
S=ceilnum*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>
|
s959796985 | p00007 | Accepted | import math
n = int(input())
a = 100000
for i in range(n):
a = a*1.05
if a%1000 == 0:
a = a
else:
a = (a//1000*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>
|
s867208414 | 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>
|
s338677413 | p00007 | Accepted | import math
n=int(input())
a=100000
for i in range(n):
a=math.ceil(a*1.05/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>
|
s830761674 | p00007 | Accepted | # coding: utf-8
# Your code here!
m = 100000;
n = int(input())
while n>0:
n -= 1
m = m + (m*5)//100
m = ((m-1) // 1000+1) * 1000
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>
|
s034954647 | p00007 | Accepted | n=int(input())
ans=100000
for i in range(n):
ans+=ans*0.05
if ans%1000!=0:
ans-=ans%1000
ans+=1000
ans=int(ans)
print(ans)
| 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>
|
s263913937 | p00007 | Accepted | s = 100000
n = int(input())
for i in range(n):
s *= 1.05
if s % 1000 != 0:
s = s // 1000 * 1000 + 1000
else:
pass
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>
|
s588596930 | p00007 | Accepted | import math
kane=100000
n=int(input())
for i in range (1,n+1):
syaku=kane*1.05/1000
kane=math.ceil(syaku)*1000
print(kane)
| 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>
|
s009004147 | p00007 | Accepted | money=100000
n=int(input())
for day in range(n):
money+=money*0.05
money=-(-money//1000)*1000
print(int(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>
|
s051732477 | p00007 | Accepted | S=100000
n=int(input())
for i in range(n):
S*=1.05
S=int(S)
if S%1000==0:
S=S
else:
S=S+1000
S=S//1000
S=S*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>
|
s725984971 | p00007 | Accepted | import math
n=input()
n=int(n)
a=100000
for i in range(n):
a=a*1.05
a=math.ceil(a/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>
|
s720039835 | p00007 | Accepted | n= int(input())
s= 100000
for i in range(n):
s = 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>
|
s177707723 | p00007 | Accepted | num = 100000
n = int(input())
for i in range(n):
num*=1.05
if num % 1000 >= 1 :
a = num % 1000
num = int(num+1000-a)
else:
num = int(num)
print(num)
| 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>
|
s132908760 | p00007 | Accepted | n=int(input())
syakkin=100000
for i in range(n):
syakkin*=1.05
if syakkin%1000!=0:
syakkin=syakkin-syakkin%1000+1000
print(int(syakkin))
| 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>
|
s128687060 | p00007 | Accepted | n=int(input())
x=100000
for i in range(n):
x=x*1.05
if x%1000:
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>
|
s811128238 | p00007 | Accepted | n = int(input())
S = 100000
for i in range(n) :
S *= 1.05
if S % 1000 != 0 :
S = (int(S / 1000) + 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>
|
s493044190 | p00007 | Accepted | n=int(input())
x=100000
for i in range(n):
x=x*1.05
if x%1000==0:
x=x
else:
x=((x//1000)+1)*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>
|
s551599752 | p00007 | Accepted | n=int(input())
money=100000
for i in range(n):
money*=1.05
if money%1000==0:
pass
else:
money=int(money//1000*1000+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>
|
s839195505 | p00007 | Accepted | n=int(input())
i=1
s=100000//1000
import math
while i <= n:
i+=1
s = s*1.05
s = math.ceil(s)
print(s*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>
|
s809532472 | p00007 | Accepted | t = int(input())
a = 100000
for i in range(t):
a = a * 1.05
if a % 1000:
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>
|
s977546723 | p00007 | Accepted | import math
N=int(input())
a=100000
for i in range(N):
b=a/1000
a=math.ceil(b*1.05)
a=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>
|
s735066711 | p00007 | Accepted | import math
r=100
n=int(input())
for i in range(n):
r=math.ceil(r*1.05)
print(r*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>
|
s029482534 | p00007 | Accepted | num = int(input())
val = 100000
for i in range(num):
val = val * 1.05
rem = val%1000
if rem != 0:
val = val - rem + 1000
print(int(val))
| 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>
|
s775542534 | p00007 | Accepted | from math import ceil
s = 100000
n = int(input())
for i in range(n):
s = s + s*0.05
s = ceil(s/1000)*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>
|
s942183751 | p00007 | Accepted | a=100000
n=int(input())
for i in range(n):
a=a*1.05
b=a%1000
c=a//1000
if b==0 :
a=int(a)
else:
a=int(c*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>
|
s909017448 | p00007 | Accepted | #Volume0-0007
a = int(input())
n = int(100000)
for w in range(a):
if (n*1.05)%1000 == 0:
n = n*1.05
else:
n = n*1.05//1000*1000+1000
print(int(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>
|
s280711743 | p00007 | Accepted | n=int(input())
x=100000
for i in range(n):
x*=1.05
if x%1000>0:
x=x-(x%1000)+1000
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>
|
s752742823 | p00007 | Accepted | n=int(input())
money=100000
for i in range(n):
money*=1.05
if money%1000==0:
pass
else:
money=int(money//1000*1000+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>
|
s498328272 | p00007 | Accepted | import math
n = int(input())
a = 100
for i in range(n):
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>
|
s154020289 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s*=1.05
m = s % 1000
if m!=0:
s=s-m+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>
|
s740836253 | p00007 | Accepted | import math
n = int(input())
a = 100
for i in range(n):
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>
|
s664821642 | p00007 | Accepted | import math
N=int(input())
a=100000
for i in range(N):
a=a*1.05
a=math.ceil(a/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>
|
s989850560 | p00007 | Accepted | import math
res = 100
N = int(input())
for i in range(N):
res = math.ceil(res * 1.05)
print("%d000" % res)
| 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>
|
s352848076 | p00007 | Accepted | a = 100000;
n = int(input())
while n > 0:
n -= 1
a = 105*a//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>
|
s335175968 | p00007 | Accepted | n=int(input())
syakkin=100000
for i in range(n):
syakkin+=syakkin*0.05
if syakkin%1000!=0:
syakkin=(syakkin//1000)*1000+1000
print(int (syakkin))
| 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>
|
s381255202 | p00007 | Accepted | import math
n=int(input())
m=100000
k=100000
for i in range(n):
m=1.05*k
m=m/1000
k=math.ceil(m)*1000
print(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>
|
s576541362 | p00007 | Accepted | #借金を作る
i = 100000
#ループ回数を標準入力する
for _ in range(int(input())):
#利息を加える
i *= 1.05
#切り上げがないとき以外1000より下を切り捨て1000を加える
if i % 1000 != 0:
i = i - (i % 1000) + 1000
#借金を出力する
print(int(i))
| 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>
|
s898044787 | p00007 | Accepted | import math
s=int(input())
t=100
for i in range(0,s):
t=math.ceil(t*1.05)
print(1000*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>
|
s023941767 | p00007 | Accepted | a=100000
n=int(input())
for i in range(n):
a=a*1.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>
|
s805718238 | p00007 | Accepted | import math
n=int( input())
a=100000
for i 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>
|
s819515107 | 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>
|
s505249565 | p00007 | Accepted | n=int(input())
hennsai=100000
for i in range(n):
hennsai=int(hennsai*1.05)
if hennsai % 1000>0:
hennsai=(hennsai - hennsai % 1000) + 1000
print(hennsai)
| 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>
|
s708680878 | p00007 | Accepted | n=int(input())
S=100000
for i in range(n):
S = S*1.05
R = S%1000
if R:
S = S-R+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>
|
s784294914 | p00007 | Accepted | import math
a = 100
for i 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>
|
s480771386 | 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>
|
s550327684 | p00007 | Accepted | import math
money=100.000
for i in range(int(input())):
money*=1.05
money=math.ceil(money)
print(money*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>
|
s887680256 | p00007 | Accepted | money = 100000
n=int(input())
for day in range(n):
money += money*0.05
money =-(-money//1000)*1000
print(int(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>
|
s611933449 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s+=s*0.05
if s%1000==0 :
pass
else:
s=(s//1000+1)*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>
|
s887970117 | p00007 | Accepted | n=int(input())
sum=100000
for i in range(n):
sum=sum*1.05
i+=1
if sum%1000>0:
sum=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>
|
s464058390 | p00007 | Accepted | n=int(input())
x=100000
for i in range(n):
x =x*1.05
if x%1000:
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>
|
s819135253 | 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>
|
s033899087 | p00007 | Accepted | from math import ceil
debt=100000
bigets=1000
interest_rate=1.05
def calc_debt(n):
d=debt//bigets
while n>0:
d=ceil(d*interest_rate)
n -= 1
return d*bigets
n=int(input())
print(calc_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>
|
s347685856 | p00007 | Accepted | n=int(input())
a=100000
for i in range(n):
a*=1.05
if a%1000>0:
a=a//1000*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>
|
s671150958 | p00007 | Accepted | import math
f=100000
for i in range ( int ( input ( ) ) ):
f=f*1.05
f=int(math.ceil(f/1000)*1000)
print( 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>
|
s185254838 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s=int(s*1.05)
if s % 1000>0:
s=s//1000*1000+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>
|
s858950555 | p00007 | Accepted | n=int(input())
s=100000
a=1
a=a+1
for i in range(n):
if (s*1.05)%1000==0:
s=s*1.05
else:
s=s*1.05-(s*1.05)%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>
|
s147453255 | p00007 | Accepted | y=100000
n = int(input())
for i in range(n):
y=y*1.05
if y%1000==0:
pass
else:
y=y//1000
y=y+1
y=y*1000
print(f"{y:.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>
|
s807845673 | p00007 | Accepted | import math
debt = 100
for i in range(int(input())):
debt = math.ceil(debt*1.05)
print(debt*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>
|
s281910459 | p00007 | Accepted | import math
a = 100
for i 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>
|
s096527473 | p00007 | Accepted | n = int(input())
s = 100000
for i in range(n) :
s *= 1.05
m = s % 1000
if m != 0 :
s = s - m + 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>
|
s056653028 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s*=1.05
p=s%1000
if p!=0:
s+=1000-p
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>
|
s123502652 | 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>
|
s503877260 | p00007 | Accepted | n=int(input())
a=100000
while n!=0:
a=a*1.05
if a%1000!=0:
a=a-(a%1000)+1000
n=n-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>
|
s092127323 | p00007 | Accepted | import math
n = int(input())
if n==0:
a=100000
else:
c = int(100)
for i in range(n):
num = c*1.05
c = math.ceil(num)
a = c*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>
|
s241831918 | p00007 | Accepted | n = int(input())
s = 100000
for i in range(n):
s = s * 1.05
if s % 1000:
s = int((s // 1000) * 1000 + 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>
|
s333473538 | p00007 | Accepted | n = int(input())
x = 100000
for i in range(n):
x = x*1.05
if x % 1000 == 0:
pass
else:
x = x//1000
x = x+1
x = x*1000
print('{:.0f}'.format(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>
|
s440893605 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s=s*(1+5/100)
s=-(-s//1000)
s=s*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>
|
s378129303 | p00007 | Accepted | import math
n=int(input())
if n==0:
a=1000000
else:
c=int(100)
for i in range(n):
num=c*1.05
c=math.ceil(num)
a=c*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>
|
s526677588 | p00007 | Accepted | # coding: utf-8
# Your code here!
import math
n = int(input())
if n==0:
a=n
else:
c=int(100)
for i in range(n):
num = c*1.05
c = math.ceil(num)
n = c *1000
print(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>
|
s852140833 | p00007 | Accepted | import math
n = int(input())
if n == 0:
a=100000
else:
c = int(100)
for i in range(n):
num = c*1.05
c = math.ceil(num)
a = c*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>
|
s912998047 | p00007 | Accepted | import math
n=int(input())
i=0
E=100
while(i<n):
E=E*1.05
E=math.ceil(E)
i=i+1
print(E*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>
|
s038628409 | p00007 | Accepted | n=int(input())
m=100000
for i in range(n):
m=m*1.05
if m%1000==0:
pass
else:
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>
|
s416392298 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s=s*1.05
if s%1000==0:
s=s
else:
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>
|
s295089247 | p00007 | Accepted | import math
n=int(input())
z=100000
for i in range(1,n+1):
z+=z*5/100
z=(math.ceil(z/1000))*1000
print(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>
|
s400261896 | p00007 | Accepted | n=int(input())
s=100000
for i in range(n):
s=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>
|
s340644129 | p00007 | Accepted | import math
n=int(input())
S=100
for i in range(n):
S=S+0.05*S
S=math.ceil(S)
print(S*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>
|
s332052652 | p00007 | Accepted | n=int(input())
x=100000
for i in range(n):
x=x+x*0.05
x=((x-1)//1000+1)*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>
|
s027835534 | p00007 | Accepted | n=int(input())
i=0
x=100000
for i in range(n):
x=int(x*1.05)
if x%1000==0:
x=x
else:
x=x+1000-x%1000
i+=1
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>
|
s007139351 | p00007 | Accepted | 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))
| 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.