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
s752742823
p00007
u630948380
1592268512
Python
Python3
py
Accepted
30
5608
171
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,802
s498328272
p00007
u438043982
1592266324
Python
Python3
py
Accepted
20
5672
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,803
s154020289
p00007
u869208015
1592214851
Python
Python3
py
Accepted
20
5608
118
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,804
s740836253
p00007
u645087541
1592207225
Python
Python3
py
Accepted
20
5664
110
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,805
s664821642
p00007
u457539618
1592206032
Python
Python3
py
Accepted
20
5664
106
import math N=int(input()) 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,806
s989850560
p00007
u586171604
1592202517
Python
Python3
py
Accepted
20
5668
111
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,807
s352848076
p00007
u900012957
1592199434
Python
Python3
py
Accepted
20
5584
109
a = 100000; n = int(input()) while n > 0: n -= 1 a = 105*a//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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,808
s335175968
p00007
u826807985
1592199328
Python
Python3
py
Accepted
30
5608
177
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,809
s381255202
p00007
u991830357
1592131862
Python
Python3
py
Accepted
20
5664
130
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,810
s133518171
p00007
u412088763
1592131517
Python
Python3
py
Accepted
20
5668
115
import math n=int(input()) ans=100000 for i in range(n): ans*=1.05 ans=int(math.ceil(ans/1000)*1000) print(ans)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,811
s576541362
p00007
u842461513
1592105618
Python
Python3
py
Accepted
20
5600
330
#借金を作る i = 100000 #ループ回数を標準入力する for _ in range(int(input())): #利息を加える i *= 1.05 #切り上げがないとき以外1000より下を切り捨て1000を加える if i % 1000 != 0: i = i - (i % 1000) + 1000 #借金を出力する print(int(i))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,812
s898044787
p00007
u529477970
1591940991
Python
Python3
py
Accepted
30
5668
94
import math s=int(input()) t=100 for i in range(0,s): t=math.ceil(t*1.05) print(1000*t)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,813
s023941767
p00007
u925445050
1591801835
Python
Python3
py
Accepted
20
5612
116
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,814
s805718238
p00007
u976648183
1591664437
Python
Python3
py
Accepted
20
5668
129
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,815
s819515107
p00007
u644959375
1591608938
Python
Python3
py
Accepted
30
5668
102
import math n=int(input()) X=100000 for i in range(n): X=math.ceil(X*1.05/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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,816
s505249565
p00007
u661628543
1591599755
Python
Python3
py
Accepted
20
5604
175
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,817
s708680878
p00007
u053015104
1591593380
Python
Python3
py
Accepted
20
5608
118
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,818
s784294914
p00007
u034153923
1591591977
Python
Python3
py
Accepted
20
5664
92
import math a = 100 for i in range (int(input())): a = math.ceil(a*1.05) print(a*1000)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,819
s480771386
p00007
u573698742
1591591830
Python
Python3
py
Accepted
20
5608
120
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,820
s550327684
p00007
u245861861
1591497659
Python
Python3
py
Accepted
20
5664
117
import math money=100.000 for i in range(int(input())): money*=1.05 money=math.ceil(money) print(money*1000)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,821
s887680256
p00007
u685887060
1591263369
Python
Python3
py
Accepted
20
5604
132
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,822
s611933449
p00007
u673183698
1591149125
Python
Python3
py
Accepted
20
5604
141
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,823
s887970117
p00007
u275486335
1591100613
Python
Python3
py
Accepted
20
5604
151
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,824
s464058390
p00007
u288578617
1591061847
Python
Python3
py
Accepted
20
5608
114
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,825
s819135253
p00007
u221550784
1591058911
Python
Python3
py
Accepted
20
5608
204
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,826
s033899087
p00007
u662362547
1591057407
Python
Python3
py
Accepted
20
5672
220
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,827
s347685856
p00007
u257570657
1591027757
Python
Python3
py
Accepted
20
5608
114
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,828
s671150958
p00007
u444626963
1591021619
Python
Python3
py
Accepted
20
5664
122
import math f=100000 for i in range ( int ( input ( ) ) ): f=f*1.05 f=int(math.ceil(f/1000)*1000) print( f )
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,829
s185254838
p00007
u442912414
1590997413
Python
Python3
py
Accepted
20
5608
117
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,830
s858950555
p00007
u037263780
1590995626
Python
Python3
py
Accepted
20
5604
155
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,831
s147453255
p00007
u711365732
1590990461
Python
Python3
py
Accepted
20
5632
166
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}")
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,832
s807845673
p00007
u497248335
1590990394
Python
Python3
py
Accepted
20
5664
104
import math debt = 100 for i in range(int(input())): debt = math.ceil(debt*1.05) print(debt*1000)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,833
s281910459
p00007
u056263240
1590989493
Python
Python3
py
Accepted
20
5664
93
import math a = 100 for i in range (int(input())): a = math.ceil(a*1.05) print(a*1000)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,834
s096527473
p00007
u838993229
1590988808
Python
Python3
py
Accepted
20
5604
137
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,835
s056653028
p00007
u574841425
1590988490
Python
Python3
py
Accepted
30
5604
113
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,836
s123502652
p00007
u931484744
1590987123
Python
Python3
py
Accepted
20
5612
187
# 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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,837
s503877260
p00007
u596129030
1590986682
Python
Python3
py
Accepted
20
5604
129
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,838
s092127323
p00007
u919773430
1590905358
Python
Python3
py
Accepted
20
5668
188
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,839
s241831918
p00007
u333382219
1590891379
Python
Python3
py
Accepted
20
5608
125
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,840
s333473538
p00007
u795882061
1590883308
Python
Python3
py
Accepted
20
5616
190
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,841
s440893605
p00007
u868891301
1590568664
Python
Python3
py
Accepted
20
5596
106
n=int(input()) s=100000 for i in range(n): s=s*(1+5/100) s=-(-s//1000) s=s*1000 print(int(s))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,842
s378129303
p00007
u206985725
1590566265
Python
Python3
py
Accepted
20
5672
174
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,843
s526677588
p00007
u705625724
1590515132
Python
Python3
py
Accepted
20
5668
206
# 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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,844
s852140833
p00007
u874049078
1590515096
Python
Python3
py
Accepted
20
5664
177
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,845
s912998047
p00007
u455994792
1590503148
Python
Python3
py
Accepted
20
5672
106
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,846
s038628409
p00007
u162292165
1590500218
Python
Python3
py
Accepted
20
5604
137
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,847
s416392298
p00007
u259416836
1590466230
Python
Python3
py
Accepted
20
5612
140
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,848
s761086052
p00007
u014861569
1590464079
Python
Python3
py
Accepted
20
5604
140
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,849
s295089247
p00007
u397004753
1590459922
Python
Python3
py
Accepted
20
5656
110
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,850
s400261896
p00007
u799752967
1590457767
Python
Python3
py
Accepted
20
5612
113
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,851
s340644129
p00007
u695568874
1590453370
Python
Python3
py
Accepted
20
5664
101
import math n=int(input()) S=100 for i in range(n): S=S+0.05*S 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,852
s332052652
p00007
u179629761
1590417701
Python
Python3
py
Accepted
20
5604
99
n=int(input()) x=100000 for i in range(n): x=x+x*0.05 x=((x-1)//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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,853
s027835534
p00007
u064625546
1590415788
Python
Python3
py
Accepted
20
5604
152
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)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,854
s007139351
p00007
u506949161
1590391622
Python
Python3
py
Accepted
20
5604
115
n=int(input()) x=100000 for i in range(n): x*=1.05 if x%1000!=0: x=x-x%1000+1000 print(int(x))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,855
s693720304
p00007
u511292942
1590385468
Python
Python3
py
Accepted
20
5608
112
a=100000 n=int(input()) for i in range(n): a*=1.05 if a%1000: a=int(a//1000*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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,856
s204871313
p00007
u138194441
1590385151
Python
Python3
py
Accepted
20
5672
122
import math a=int(input()) b=100000 for i in range(a): b=b*1.05 b=b/1000 b=math.ceil(b) b=b*1000 print(b)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,857
s119746979
p00007
u753534330
1590385012
Python
Python3
py
Accepted
20
5608
253
n = int(input()) f = 100000 if n == 0: print(int(f)) else: for i in range(n): f *= 1.05 #print(f) #F = f - f%1000 + 1000 if f%1000 != 0: f = (f//1000)*1000 + 1000 #print(i,f) print(int(f))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,858
s860474778
p00007
u994684803
1590244513
Python
Python3
py
Accepted
20
5612
147
n = int(input()) a = 100000 for i in range(n): a = a+a*0.05 if a%1000 !=0: a = int(((a//1000)+1)*1000) print(a)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,859
s249438795
p00007
u918533241
1590115630
Python
Python3
py
Accepted
20
5608
121
n=int(input()) z=100000 for i in range(n): z*=1.05 if z%1000!=0: z-=z%1000 z+=1000 print(int(z))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,860
s099902632
p00007
u695386605
1590044039
Python
Python3
py
Accepted
20
5608
157
a = int(input()) Y = 100000 i = 1 while a >= i: Y = Y * 1.05 if Y % 1000 != 0: Y = (Y//1000+1) * 1000 i = i + 1 print(int(Y))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,861
s500040836
p00007
u192469946
1589982451
Python
Python3
py
Accepted
20
5656
207
#0007 from math import floor, ceil n = int(input()) sum = 100000 for i in range(n): sum += sum*0.05 if sum%1000 == 0: sum = sum else: sum = ((sum//1000)+1) * 1000 print(int(sum))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,862
s727477028
p00007
u904289400
1589872931
Python
Python3
py
Accepted
20
5604
176
n=int(input()) i=1 sum=100000 while i<=n: M=(sum)*0.05 sum+=M if (sum)%1000==0: sum=sum else: sum=((sum//1000)+1)*1000 i+=1 print(int(sum))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,863
s543624779
p00007
u554271288
1589854205
Python
Python3
py
Accepted
20
5608
170
n = int(input()) now = 100000 week = 0 for week in range(n): calc = (int)(now * 0.05) now += (calc//1000)*1000 if calc % 1000: now += 1000 print(now)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,864
s042764669
p00007
u427834127
1589850166
Python
Python3
py
Accepted
20
5604
114
s=100000 n=int(input()) for i in range (n): s*=1.05 if s%1000!=0: s=s-(s%1000)+1000 print(int(s))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,865
s608326393
p00007
u677563181
1589850156
Python
Python3
py
Accepted
20
5608
147
n=int(input()) z=100000 for i in range(n): z*=1.05 if z%1000!=0: z-=z%1000 z+=1000 print(int(z))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,866
s114817100
p00007
u511744190
1589849936
Python
Python3
py
Accepted
20
5604
117
n=int(input()) x=100000 for i in range(n): x*=1.05 if x%1000!=0: x=x-(x%1000)+1000 x=int(x) print(x)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,867
s671325103
p00007
u228556128
1589804230
Python
Python3
py
Accepted
20
5664
98
import math a=int(input()) x=100 for _ in range(a): x*=1.05 x=math.ceil(x) 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,868
s631303313
p00007
u419548414
1589793451
Python
Python3
py
Accepted
20
5608
119
s=100000 n=int(input()) for i in range (n): s=s*1.05 if s%1000!=0: s=(s//1000)*1000+1000 print(int(s))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,869
s301711472
p00007
u371026526
1589787785
Python
Python3
py
Accepted
20
5664
111
import math n = int(input()) sum=100000 i=0 for i in range(n): sum = math.ceil(sum*1.05/1000)*1000 print(sum)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> weeks. </p> <H2>Input</H2> <p> An integer <var>n</var> (0 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,870
s035798808
p00007
u470391435
1589780851
Python
Python3
py
Accepted
20
5664
114
n = int(input()) import math yen = 100000 for i in range(n): yen = math.ceil((yen*1.05)/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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,871
s616394315
p00007
u171326376
1589691830
Python
Python3
py
Accepted
20
5624
155
n = int(input()) i = 1 x = 100000 while i<=n: r = x * 0.05 x += r if x % 1000 >0: x = (x //1000 + 1)*1000 i += 1 print(f'{x:.0f}')
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,872
s672046856
p00007
u926092389
1589612812
Python
Python3
py
Accepted
20
5672
145
import math n=int(input()) x=100000 for i in range(n): x*=1.05 x=math.ceil(x) if x%1000: x=x-(x%1000)+1000 print(x)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,873
s083606852
p00007
u981910313
1589593890
Python
Python3
py
Accepted
20
5672
105
import math n=int(input()) i=1 sum=100 while i<=n: sum=math.ceil(sum*1.05) i=i+1 print(sum*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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,874
s009498487
p00007
u747915832
1589555936
Python
Python3
py
Accepted
20
5608
246
n = int(input()) S = 100000 for i in range(n): S = int(S*1.05) slist = list(str(S)) if slist[-3:] == ['0','0','0'] : S = S else: S = S - int(slist[-3])*100 - int(slist[-2])*10 - int(slist[-1])*1 + 1000 print(S)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,875
s593317808
p00007
u895962529
1589535048
Python
Python3
py
Accepted
20
5672
97
import math a=100 n=int(input()) for i in range(n): 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,876
s886852295
p00007
u322947441
1589507814
Python
Python3
py
Accepted
20
5664
117
import math N = int(input()) o = 100.000 for i in range(N): o += math.ceil(o*0.05) i += 1 print(int(o*1000))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,877
s145935502
p00007
u593595530
1589446204
Python
Python3
py
Accepted
20
5604
89
n=int(input()) g=100 for i in range(n): k=-(-(g*1.05)//1) g=k print(int(1000*k))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,878
s841389822
p00007
u177648086
1589390704
Python
Python3
py
Accepted
20
5672
115
import math n=int(input()) x=100000 for i in range(n): x=x+0.05*x x=(math.ceil(x/1000))*1000 print(x)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,879
s586093623
p00007
u290304811
1589362186
Python
Python3
py
Accepted
20
5604
119
x = 100000 n = int(input()) for _ in range(n): x = x*1.05 if x%1000>0: x = x-x%1000+1000 print(int(x))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,880
s590181610
p00007
u253463111
1589357551
Python
Python3
py
Accepted
20
5596
123
n=int(input()) a=100000 i=0 while i<n: a=(a/100)*105 if a%1000!=0: a+=(1000-a%1000) i+=1 print(int(a))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,881
s288925356
p00007
u140569607
1589338230
Python
Python3
py
Accepted
20
5604
134
n = int(input()) a = 100000 for i in range(n): a = a + (a*0.05) if a%1000 != 0: a = a - (a%1000) + 1000 print(int(a))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,882
s549400984
p00007
u862272701
1589288820
Python
Python3
py
Accepted
20
5668
108
import math x = 100 n = int(input()) for i in range(n): x = x*1.05 x = math.ceil(x) 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,883
s956966613
p00007
u057249340
1589172895
Python
Python3
py
Accepted
20
5668
122
import math n=int(input()) a=100000 for _ in range(n): a+=a*0.05 a=math.ceil(a/1000)*1000 print(math.floor(a))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,884
s667809318
p00007
u128671689
1589093597
Python
Python3
py
Accepted
20
5612
199
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,885
s374766832
p00007
u435414815
1589044990
Python
Python3
py
Accepted
20
5608
133
x=int(input()) i=0 a=100000 while x>i : a=a+a*0.05 if a%1000!=0 : a=a+1000 a=int(a/1000) a=a*1000 i=i+1 print(a)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,886
s611499247
p00007
u395654950
1589008306
Python
Python3
py
Accepted
20
5608
191
# 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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,887
s453746893
p00007
u988962397
1588999563
Python
Python3
py
Accepted
20
5668
107
import math n=int(input()) a=100 i=1 while i<=n: a+=a*0.05 a=math.ceil(a) i+=1 print(a*1000)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,888
s318646570
p00007
u583329397
1588942021
Python
Python3
py
Accepted
20
5584
148
n=int(input()) i=0 money=100000 while i<n: money+=money*5//100 if(money%1000!=0): money=money+1000-money%1000 i+=1 print(money)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,889
s188246955
p00007
u173393391
1588941817
Python
Python3
py
Accepted
20
5612
137
T=100000 n=int(input()) for x in range(n): T*=1.05 if T%1000==0: pass else: T=T-(T%1000)+1000 print(int(T))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,890
s391472277
p00007
u350963229
1588897404
Python
Python3
py
Accepted
20
5608
120
n=int(input()) a=100000 for i in range(n): a=a*1.05 if a%1000 != 0: a=int(a//1000*1000+1000) print(a)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,891
s146332904
p00007
u884758681
1588860437
Python
Python3
py
Accepted
20
5604
200
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,892
s658353517
p00007
u647921435
1588819710
Python
Python3
py
Accepted
20
5608
204
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,893
s934384676
p00007
u240091169
1588739503
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,894
s389422447
p00007
u260980560
1588728447
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,895
s815074470
p00007
u235330043
1588089855
Python
Python3
py
Accepted
20
5664
150
money =100000 import math count = int(input()) for i in range(count): newmoney =math.ceil(money*1.05/1000)*1000 money=newmoney 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,896
s809827389
p00007
u037441960
1587999274
Python
Python3
py
Accepted
20
5608
137
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))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,897
s965445373
p00007
u814278309
1587880304
Python
Python3
py
Accepted
20
5668
144
import math n = int(input()) x = 100000 for i in range(n): x *= 1.05 x = math.ceil(x) if x % 1000: x = x - (x % 1000) + 1000 print(x)
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,898
s960976447
p00007
u713674793
1586767634
Python
Python3
py
Accepted
20
5604
121
s = 100000 for i in range(int(input())): 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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,899
s447704283
p00007
u374434600
1586624942
Python
Python3
py
Accepted
20
5676
263
import sys import math def rishi(n,a): if(n>0): a=a*1.05 a1=a%1000 if(a1 != 0): a=a-a1+1000 n=n-1 return (rishi(n,a)) else: return a a=100000 n=int(input()) n_sum=rishi(n,a) print(round(n_sum))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,900
s132306630
p00007
u230927103
1586363184
Python
Python3
py
Accepted
30
5684
183
import math def debt(d, n): if n == 0: return d d *= 1.05 d = math.ceil(d / 1000) * 1000 return debt(d, n - 1) n = int(input()) d = 100000 print(debt(d, n))
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 &le; <var>n</var> &le; 100) is given in a line. </p> <H2>Output</H2> <p> Print the amout 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,901