s_id
stringlengths 10
10
| p_id
stringlengths 6
6
| u_id
stringlengths 10
10
| date
stringlengths 10
10
| language
stringclasses 1
value | original_language
stringclasses 11
values | filename_ext
stringclasses 1
value | status
stringclasses 1
value | cpu_time
int64 0
100
| memory
stringlengths 4
6
| code_size
int64 15
14.7k
| code
stringlengths 15
14.7k
| problem_id
stringlengths 6
6
| problem_description
stringlengths 358
9.83k
| input
stringlengths 2
4.87k
| output
stringclasses 807
values | __index_level_0__
int64 1.1k
1.22M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s781322760
|
p00007
|
u665962315
|
1357423101
|
Python
|
Python
|
py
|
Accepted
| 10
|
4228
| 133
|
debt = 100000
for i in range(int(raw_input())):
debt *= 1.05
if debt % 1000: debt = int(debt) / 1000 * 1000 + 1000
print debt
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,702
|
s448870855
|
p00007
|
u782850731
|
1361882024
|
Python
|
Python
|
py
|
Accepted
| 10
|
4244
| 271
|
from __future__ import (division, absolute_import, print_function,
unicode_literals)
debt = 100000.0
for i in xrange(int(raw_input())):
debt += debt * 0.05
debt = debt - (debt % 1000.0) + (1000.0 if debt % 1000.0 else 0.0)
print(int(debt))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,703
|
s434733736
|
p00007
|
u743065194
|
1363005539
|
Python
|
Python
|
py
|
Accepted
| 10
|
4372
| 149
|
'''
Created on Mar 11, 2013
@author: wukc
'''
import math
n=int(raw_input())
p=100000
for i in range(n): p=int(math.ceil(p*1.05/1000)*1000)
print p
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,704
|
s156496054
|
p00007
|
u282635979
|
1363408426
|
Python
|
Python
|
py
|
Accepted
| 20
|
4372
| 121
|
import math
n = input()
a = 100000
for val in range(1,n+1):
a *= 1.05
A = math.ceil(a/1000) * 1000
a = A
print int(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,705
|
s361874619
|
p00007
|
u560838141
|
1364277716
|
Python
|
Python
|
py
|
Accepted
| 20
|
4232
| 134
|
n = input();
ans = 100000;
for i in range(n):
ans = int(float(ans) * 1.05);
ans += 999;
ans /= 1000;
ans *= 1000;
print ans
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,706
|
s137572298
|
p00007
|
u585414111
|
1365346030
|
Python
|
Python
|
py
|
Accepted
| 20
|
4276
| 147
|
def f(a,b):
if (b == 0): return a
a = a * 1.05
if (a%1000 != 0): a = a - a%1000 + 1000
return f(a,b-1)
print int(f(100000,input()))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,707
|
s142871204
|
p00007
|
u318424563
|
1366689097
|
Python
|
Python
|
py
|
Accepted
| 10
|
4380
| 225
|
import math
base = 100000
r = 0.05
n = int(raw_input())
if n <= 100:
for i in range(1, n+1):
base = base + (base * r)
now = int(math.ceil(base / 1000))
base = now * 1000
print "{}".format(base)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,708
|
s222055606
|
p00007
|
u350508326
|
1367946575
|
Python
|
Python
|
py
|
Accepted
| 20
|
4208
| 128
|
a=raw_input()
debt = 100000
for i in range(int(a)):
debt += debt/20
b=debt%1000
if b > 0:
debt += 1000-b
print debt
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,709
|
s589312792
|
p00007
|
u542421762
|
1368112108
|
Python
|
Python
|
py
|
Accepted
| 10
|
4416
| 251
|
import math
import sys
def debt(debt_s, week):
if week == 0:
return debt_s
debt_s = int(math.ceil((debt_s * 1.05)/1000) * 1000)
return debt(debt_s, week - 1)
n = int(sys.stdin.readline())
debt_s = 100000
print debt(debt_s, n)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,710
|
s838430505
|
p00007
|
u843960735
|
1374702937
|
Python
|
Python
|
py
|
Accepted
| 10
|
4224
| 125
|
n = int(raw_input())
m = 100000
for x in range(n) :
m = int(m*1.05)
if m % 1000 :
m = (m/1000)*1000+1000
print m
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,711
|
s761264192
|
p00007
|
u536245846
|
1374764640
|
Python
|
Python
|
py
|
Accepted
| 20
|
4372
| 102
|
from math import ceil
a = 100
for i in range(input()):
a *= 1.05
a = ceil(a)
print int(a*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,712
|
s269662624
|
p00007
|
u085789778
|
1374909080
|
Python
|
Python
|
py
|
Accepted
| 20
|
4376
| 155
|
import math
n = input()
money = 100000
for i in range(0, n):
money = money*1.05
money /= 1000
money = int(math.ceil(money)*1000)
print money
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,713
|
s036974883
|
p00007
|
u912573907
|
1375169743
|
Python
|
Python
|
py
|
Accepted
| 10
|
4232
| 167
|
n = input()
money = 100000
for i in range(n):
money = int(money * 1.05)
if money != money / 1000 * 1000:
money = money / 1000 * 1000 + 1000
print money
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,714
|
s346162814
|
p00007
|
u455025374
|
1376081321
|
Python
|
Python
|
py
|
Accepted
| 10
|
4224
| 88
|
a=10**5;b=1000
for i in range(input()):
a*=1.05
if a%b>0: a=a-a%b+b
print int(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,715
|
s880347543
|
p00007
|
u912237403
|
1376738952
|
Python
|
Python
|
py
|
Accepted
| 20
|
4372
| 122
|
import math
n=input()
money = 100000
for i in range(n):
money = math.ceil(money * 1.05/1000)*1000
print "%d" %(money)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,716
|
s673564274
|
p00007
|
u813384600
|
1379314718
|
Python
|
Python
|
py
|
Accepted
| 10
|
4364
| 123
|
import math
n = int(raw_input())
r = 100000
for i in range(n):
r *= 1.05
r = math.ceil(r/1000) * 1000
print int(r)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,717
|
s398750705
|
p00007
|
u492005863
|
1381236264
|
Python
|
Python
|
py
|
Accepted
| 10
|
4228
| 156
|
# Debt Hell
n = int(input())
value = 100000
for i in xrange(n):
value *= 1.05
if value % 1000 != 0:
value = int(value / 1000 + 1) * 1000
print value
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,718
|
s188356416
|
p00007
|
u351182591
|
1381729930
|
Python
|
Python
|
py
|
Accepted
| 20
|
4228
| 230
|
n = input()
d = 100000
for x in range(n):
d += int(d*0.05)
d = str(d)
if d[-3:] != "000":
d = d[:-3] + "000"
d = int(d) +1000
else:
d = int(d)
print d
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,719
|
s417986758
|
p00007
|
u351182591
|
1381730145
|
Python
|
Python
|
py
|
Accepted
| 20
|
4212
| 158
|
n , d = input() , 100000
for x in range(n):
d += int(d*0.05)
if d % 1000 != 0:
d -= d % 1000
d += 1000
print d
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,720
|
s727521885
|
p00007
|
u511257811
|
1381944666
|
Python
|
Python
|
py
|
Accepted
| 20
|
4228
| 268
|
import sys
for line in sys.stdin:
n = int(line)
debt = 100000
for k in range(n):
debt *= 1.05
if debt / 1000 - int(debt) / 1000 > 0:
debt = (int(debt) / 1000 + 1) * 1000
else:
debt = int(debt)
print debt
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,721
|
s070853401
|
p00007
|
u245286435
|
1384407859
|
Python
|
Python
|
py
|
Accepted
| 20
|
4356
| 211
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
import math
result = 100000
num = int(raw_input())
for i in range(num):
result *= 1.05
result /= 1000
result = math.ceil(result)
result *= 1000
print int(result)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,722
|
s288930003
|
p00007
|
u747479790
|
1386765749
|
Python
|
Python
|
py
|
Accepted
| 20
|
4344
| 116
|
import math
n = int(raw_input())
r = 100000
for i in range(n):
r *= 1.05
r = math.ceil(r/1000) * 1000
print int(r)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,723
|
s608443119
|
p00007
|
u533406606
|
1388630681
|
Python
|
Python
|
py
|
Accepted
| 10
|
4232
| 297
|
def kiriage(price):
i = int(price) / 1000
r = price % 1000
if r != 0:
return 1000 * (i + 1)
else:
return 1000 * i
if __name__ == '__main__':
n = int(raw_input())
price = 100000
for i in range(0, n):
price = kiriage(price * 1.05)
print price
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,724
|
s659798523
|
p00007
|
u912237403
|
1390120526
|
Python
|
Python
|
py
|
Accepted
| 10
|
4356
| 82
|
import math
m=100
for i in range(input()):m=math.ceil(m*1.05)
print "%d" %(m*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,725
|
s770712141
|
p00007
|
u256688954
|
1391699702
|
Python
|
Python
|
py
|
Accepted
| 10
|
4232
| 171
|
s=100000
n=int(raw_input())
for i in range(0,n):
s*=1.05
if(s%1000>0):
s=int(s/1000)*1000+1000
if(s%1000>0):
s=int(s/1000)*1000+1000
print s
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,726
|
s144091522
|
p00007
|
u230836528
|
1392097294
|
Python
|
Python
|
py
|
Accepted
| 20
|
4360
| 272
|
# -*- coding: utf-8 -*-
import sys
from math import ceil
for line in sys.stdin.readlines():
List = map(int, line.strip().split())
n = List[0]
yen = 100000
for i in xrange(n):
yen *= 1.05
yen = int(ceil(yen/1000)) * 1000
print yen
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,727
|
s163969238
|
p00007
|
u124909914
|
1392275850
|
Python
|
Python
|
py
|
Accepted
| 10
|
4220
| 148
|
debt = 100000
for i in range(0, input()):
debt *= 1.05
debt /= 1000
if (debt - int(debt) != 0.0):
debt += 1
debt = int(debt) * 1000
print debt
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,728
|
s408957669
|
p00007
|
u633068244
|
1393351603
|
Python
|
Python
|
py
|
Accepted
| 10
|
4348
| 123
|
import math
debt = 100000
n = int(raw_input())
for i in range(n):
debt = int(math.ceil(debt*1.05/1000)*1000)
print debt
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,729
|
s721618366
|
p00007
|
u858885710
|
1393834665
|
Python
|
Python
|
py
|
Accepted
| 10
|
4348
| 121
|
import math
debt = 100000
n = int(raw_input())
for i in range(n):
debt = math.ceil(debt*1.05/1000)*1000
print int(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,730
|
s054184730
|
p00007
|
u193025715
|
1395278566
|
Python
|
Python
|
py
|
Accepted
| 20
|
4344
| 136
|
import math
n = int(raw_input())
money = 100000
for i in range(n):
money *= 1.05
money = math.ceil(money/1000) * 1000
print int(money)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,731
|
s735800870
|
p00007
|
u140201022
|
1395872577
|
Python
|
Python
|
py
|
Accepted
| 10
|
4224
| 126
|
n=int(raw_input())
g,r=100000,1.05
for i in range(n):
g*=r
if int(g)%1000>0:
g=(int(g)/1000)*1000+1000
print g
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,732
|
s046943623
|
p00007
|
u491763171
|
1396339770
|
Python
|
Python
|
py
|
Accepted
| 20
|
4396
| 101
|
import math
print reduce(lambda a, b: int(math.ceil(a * 1.05 / 1000)) * 1000, range(input()), 100000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,733
|
s947630169
|
p00007
|
u246033265
|
1396605576
|
Python
|
Python
|
py
|
Accepted
| 20
|
4348
| 113
|
import math
n = int(raw_input())
a = 100000
for i in range(n):
a = int(math.ceil(a * 0.00105)) * 1000
print a
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,734
|
s927025437
|
p00007
|
u708217907
|
1397890106
|
Python
|
Python
|
py
|
Accepted
| 10
|
4352
| 118
|
import math
n = input()
rent = 100000
for i in range(0, n):
rent = math.ceil(rent*1.05/1000)*1000
print "%d"%rent
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,735
|
s525620315
|
p00007
|
u791201756
|
1398515682
|
Python
|
Python
|
py
|
Accepted
| 10
|
4344
| 138
|
from math import ceil
n = int(raw_input())
debt = 100000
for i in range(n):
debt = ceil(debt * 1.05 / 1000) * 1000
print int(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,736
|
s047696536
|
p00007
|
u446235837
|
1398822238
|
Python
|
Python
|
py
|
Accepted
| 20
|
4216
| 156
|
n = input()
ans = 100000
for i in range(n):
ans *= 1.05
if (ans % 1000) != 0:
ans = int(ans)
ans /= 1000
ans *= 1000
ans += 1000
print int(ans)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,737
|
s431559778
|
p00007
|
u146816547
|
1399791623
|
Python
|
Python
|
py
|
Accepted
| 10
|
4212
| 109
|
ans = 100000
n = int(raw_input())
for i in xrange(n):
ans *= 1.05
ans = int((ans+999)/1000)*1000;
print ans
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,738
|
s531013677
|
p00007
|
u436634575
|
1401128689
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6824
| 101
|
from math import ceil
n = int(input())
x = 100
for i in range(n): x = ceil(x * 1.05)
print(x * 1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,739
|
s313539518
|
p00007
|
u557208833
|
1402200672
|
Python
|
Python
|
py
|
Accepted
| 10
|
4216
| 153
|
n = int(raw_input())
res = 100000
for i in range(0,n):
res = res * 1.05
if res % 1000:
res += 1000
res = int(res/1000)*1000
print res
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,740
|
s384566338
|
p00007
|
u342624490
|
1597754895
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 145
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,741
|
s417346787
|
p00007
|
u365131854
|
1597752447
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 83
|
import math
j=100
for _ in range(int(input())):
j=math.ceil(j*1.05)
print(j*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,742
|
s004464571
|
p00007
|
u885258138
|
1597736755
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 127
|
a=100000
for i in range(int(input())):
a *=1.05
if a%1000 !=0:
a=a-(a%1000)+1000
print(int(a))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,743
|
s236865779
|
p00007
|
u326077502
|
1597630963
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 145
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,744
|
s589096020
|
p00007
|
u320921262
|
1597558592
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 151
|
n = int(input())
a = 100000
for i in range(n):
a = a * 1.05
b = 0
if a % 1000:
b = 1000
a = int(a // 1000 * 1000 +b)
print(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,745
|
s389440702
|
p00007
|
u852547520
|
1597555609
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5620
| 196
|
n=int(input())
x=int(100000)
for i in range(1,n+1) :
x = x*1.05
if x%1000 == 0 :
continue
else :
x = x//1000*1000+1000
print("{:.0f}".format(x))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,746
|
s504296044
|
p00007
|
u829520323
|
1597512840
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 119
|
a = 100000;
n = int(input())
while n > 0:
n -= 1
a = a + (a * 5) // 100
a = ((a - 1) // 1000 + 1) * 1000
print(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,747
|
s902708724
|
p00007
|
u476754031
|
1597478778
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 145
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,748
|
s123684277
|
p00007
|
u250040203
|
1597047779
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 127
|
n = int(input())
x = 100000
for i in range(n):
x = x * 1.05
if x % 1000 != 0:
x=x+1000-(x%1000)
print(int(x))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,749
|
s543834168
|
p00007
|
u940983140
|
1596964158
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5664
| 90
|
import math
a=int(input())
A=100
for i in range(a):
A=math.ceil(A*1.05)
print(A*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,750
|
s440808671
|
p00007
|
u392970366
|
1596623614
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 139
|
import math
n = int(input())
debt = 100000
for _ in range(n):
debt = debt * 1.05
debt = math.ceil(debt / 1000) * 1000
print(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,751
|
s785958522
|
p00007
|
u309196579
|
1596592751
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 139
|
import math
n = int(input())
debt = 100000
for _ in range(n):
debt = debt * 1.05
debt = math.ceil(debt / 1000) * 1000
print(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,752
|
s171536873
|
p00007
|
u548283997
|
1596465359
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 112
|
import math
res = 100
N = int(input())
for i in range(N):
res = math.ceil(res * 1.05)
print("%d000" % res)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,753
|
s739648151
|
p00007
|
u940828136
|
1596428124
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 126
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,754
|
s546183006
|
p00007
|
u363460225
|
1596388609
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 107
|
import math
n=int(input())
a=100
for i in range(n):
a=a*1.05
a=math.ceil(a)
print(a*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,755
|
s627356202
|
p00007
|
u920513163
|
1596386661
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 139
|
n = int(input())
a = 100000
for i in range(n):
a = a * 1.05
b = 0
if a % 1000:
b = 1000
a = int(a // 1000 * 1000 + b)
print(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,756
|
s211825677
|
p00007
|
u834258010
|
1596335338
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5664
| 176
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,757
|
s467619660
|
p00007
|
u996694149
|
1596291542
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5672
| 133
|
import math
debt = 100000
n = int(input())
for i in range(n):
debt *= 1.05
debt = math.ceil(debt * 0.001)*1000
print(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,758
|
s446510740
|
p00007
|
u512192552
|
1596211177
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 156
|
# 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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,759
|
s645172145
|
p00007
|
u413704014
|
1596117363
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5664
| 136
|
import math
debt = 100000
n = int(input())
for i in range(n):
debt *= 1.05
debt = math.ceil(debt * 0.001) * 1000
print(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,760
|
s441832687
|
p00007
|
u525366883
|
1596075076
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 126
|
import math
n = int(input())
money = 100000
for i in range(n):
money = math.ceil((money * 1.05) / 1000)*1000
print(money)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,761
|
s684544170
|
p00007
|
u659772967
|
1595910001
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 118
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,762
|
s443293802
|
p00007
|
u627612495
|
1595838068
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5664
| 104
|
import math
num = 100
n = int(input())
for i in range(n):
num = math.ceil(num*1.05)
print(num*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,763
|
s752393835
|
p00007
|
u986283797
|
1595818929
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5672
| 117
|
# -*- coding: utf-8 -*-
import math
a=100
b=int(input())
for i in range(b):
a=math.ceil(a*1.05)
print(a*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,764
|
s585476536
|
p00007
|
u965173609
|
1595514090
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 149
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,765
|
s176682170
|
p00007
|
u762022668
|
1595241052
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 117
|
m = 100000
n = int(input())
while n > 0:
n -= 1
m = m + (m * 5 // 100)
m = ((m-1) // 1000 + 1) * 1000
print(m)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,766
|
s716111825
|
p00007
|
u782152619
|
1594996692
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 140
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,767
|
s959554256
|
p00007
|
u319403848
|
1594966855
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5612
| 113
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,768
|
s101091412
|
p00007
|
u189528630
|
1594959559
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 120
|
a = 100000;
n = int(input())
while n > 0:
n -= 1
a = a + (a * 5) // 100
a = ((a - 1) // 1000 + 1) * 1000
print(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,769
|
s140082725
|
p00007
|
u799076010
|
1594689057
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 117
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,770
|
s716750543
|
p00007
|
u528181593
|
1594625117
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 150
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,771
|
s966722816
|
p00007
|
u421274895
|
1594624181
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 148
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,772
|
s258612759
|
p00007
|
u278236319
|
1594616709
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5664
| 96
|
import math
N = int(input())
A = 100
for i in range(N):
A =math.ceil(A*1.05)
print (A*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,773
|
s800168065
|
p00007
|
u924938296
|
1594544122
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5668
| 139
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,774
|
s959796985
|
p00007
|
u082412851
|
1594473991
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 173
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,775
|
s867208414
|
p00007
|
u632910712
|
1594294272
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 117
|
a= 100000;
n = int(input())
while n > 0:
n -= 1
a = a + (a * 5) // 100
a = ((a - 1) // 1000 + 1) * 1000
print(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,776
|
s135929903
|
p00007
|
u633358233
|
1594083777
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5672
| 139
|
import math
n = int(input())
debt = 100000
for _ in range(n):
debt = debt * 1.05
debt = math.ceil(debt / 1000) * 1000
print(debt)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,777
|
s338677413
|
p00007
|
u355413291
|
1594082150
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 98
|
import math
n=int(input())
a=100000
for i in range(n):
a=math.ceil(a*1.05/1000)*1000
print(a)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,778
|
s830761674
|
p00007
|
u635020217
|
1594033968
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 153
|
# 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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,779
|
s034954647
|
p00007
|
u799016206
|
1594023621
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5608
| 152
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,780
|
s263913937
|
p00007
|
u118506623
|
1594018629
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 156
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,781
|
s588596930
|
p00007
|
u896809383
|
1593957287
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5664
| 132
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,782
|
s009004147
|
p00007
|
u062640303
|
1593874438
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 120
|
money=100000
n=int(input())
for day in range(n):
money+=money*0.05
money=-(-money//1000)*1000
print(int(money))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,783
|
s051732477
|
p00007
|
u706683821
|
1593869115
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 161
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,784
|
s725984971
|
p00007
|
u514242733
|
1593863917
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 114
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,785
|
s720039835
|
p00007
|
u100874602
|
1593849369
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 143
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,786
|
s177707723
|
p00007
|
u413645175
|
1593526620
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 210
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,787
|
s132908760
|
p00007
|
u555228137
|
1593481652
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 153
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,788
|
s128687060
|
p00007
|
u709176169
|
1593479484
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 123
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,789
|
s811128238
|
p00007
|
u167524059
|
1593416030
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 133
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,790
|
s493044190
|
p00007
|
u272062354
|
1593409755
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 141
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,791
|
s551599752
|
p00007
|
u293306835
|
1592875308
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 172
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,792
|
s839195505
|
p00007
|
u905454643
|
1592873256
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5672
| 125
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,793
|
s809532472
|
p00007
|
u329155726
|
1592839635
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 145
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,794
|
s977546723
|
p00007
|
u037566157
|
1592829829
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5660
| 121
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,795
|
s735066711
|
p00007
|
u453677662
|
1592630766
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 90
|
import math
r=100
n=int(input())
for i in range(n):
r=math.ceil(r*1.05)
print(r*1000)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,796
|
s029482534
|
p00007
|
u187074069
|
1592370301
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 159
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,797
|
s775542534
|
p00007
|
u251716708
|
1592358461
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5668
| 122
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,798
|
s942183751
|
p00007
|
u361745995
|
1592273878
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 161
|
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)
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,799
|
s909017448
|
p00007
|
u680047335
|
1592269211
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 159
|
#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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,800
|
s280711743
|
p00007
|
u350481745
|
1592268525
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 135
|
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))
|
p00007
|
<H1>Debt Hell</H1>
<p>
Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week.
</p>
<p>
Write a program which computes the amount of the debt in <var>n</var> 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>
|
5
|
130000
| 4,801
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.