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
s143017109
p00007
u067299340
1432699782
Python
Python
py
Accepted
10
4364
79
import math m=100 for i in range(input()):m=math.ceil(m*1.05) print int(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 &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,502
s928291270
p00007
u940190657
1433657158
Python
Python3
py
Accepted
30
6752
264
def main(): n = int(input()) debt = 100000 for i in range(n): tmp_debt = debt * 1.05 debt = int(tmp_debt / 1000) * 1000 if int(tmp_debt) > debt: debt += 1000 print(debt) if __name__ == '__main__': main()
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,503
s737519981
p00007
u873482706
1434244277
Python
Python
py
Accepted
30
5912
771
from decimal import Decimal def check(index): if index > len(debt_lis)-1: for i in range(len(debt_lis)): debt_lis[i] = '0' debt_lis.append('1') return if int(debt_lis[index]) + 1 == 10: return check(index+1) else: for i in range(index): debt_lis[i] = '0' num = int(debt_lis[index]) + 1 debt_lis[index] = str(num) return input_line = raw_input() n = int(input_line) debt = 100000 for i in range(n): debt = int((debt * Decimal(1.05))) debt_lis = list(str(debt)) debt_lis.reverse() for char_num in debt_lis[:3]: if not int(char_num) == 0: check(3) break debt_lis.reverse() debt = int(''.join(debt_lis)) 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 &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,504
s481283041
p00007
u492083164
1434903352
Python
Python3
py
Accepted
30
6752
120
debt=100000 n=int(input()) for i in range(n): debt*=1.05 if(debt%1000!=0): debt=debt+1000-debt%1000 print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,505
s210549491
p00007
u749493116
1436364238
Python
Python
py
Accepted
10
4352
174
#!/usr/bin/env python # -*- coding: utf-8 -*- import math n = input() debt = 1e5 for i in range(0, n): debt *= 1.05 debt = math.ceil(debt/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 &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,506
s950171150
p00007
u472944603
1437573064
Python
Python
py
Accepted
20
4224
226
n = int(input()) yen = 100000 for i in range(n): yen *= 1.05 yen = int(yen) rest = int(yen % 1000) if (rest != 0): yen /= 1000 yen = int(yen) yen *= 1000 yen += 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,507
s280888397
p00007
u722431421
1439455224
Python
Python
py
Accepted
10
4368
310
# coding: utf-8 #Problem Name: Debt Hell #ID: tabris #Mail: t123037@kaiyodai.ac.jp n = float(raw_input()) dept = 100000 for i in range(int(n)): dept *= 1.05 if not (dept/1000).is_integer(): dept /= 1000 dept = __import__('math',fromlist=['floor']).floor(dept)*1000+1000 print int(dept)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,508
s050247173
p00007
u985809245
1442851782
Python
Python3
py
Accepted
30
7672
129
import math weeks = int(input()) money = 100 for i in range(0, weeks): money = math.ceil(money * 1.05) 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,509
s228009889
p00007
u777299405
1443092045
Python
Python3
py
Accepted
30
7592
110
import math debt = 100 for i in range(int(input())): debt = math.ceil(debt * 1.05) print(int(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,510
s346204308
p00007
u802625365
1446350521
Python
Python
py
Accepted
10
6396
149
import sys import math n = (int)(input()) money = 100000.0 for i in range(n): money = math.ceil(money * 1.05 / 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,511
s390247949
p00007
u775586391
1447953263
Python
Python3
py
Accepted
20
7668
121
n = int(input()) a = 100000 while n>0: a *= 1.05 if a % 1000 != 0: a = int(a + 1000 - (a%1000)) n -= 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,512
s995588139
p00007
u825618558
1450188717
Python
Python3
py
Accepted
20
7548
216
import sys n=int(sys.stdin.readline()) money=100000 for i in range(n): money*=1.05 money=int(money) mod = money%1000 money=money//1000 if mod>0: money+=1 money=money*1000 print (money)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,513
s940360147
p00007
u512342660
1451579898
Python
Python
py
Accepted
10
6476
217
from math import ceil def roundint(num): fnum = float(num) inum = int(ceil(fnum * 0.001) * 1000) return inum debt = 100000.0 n = input() for x in xrange(n): debt += roundint(debt*0.05) 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 &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,514
s775911849
p00007
u529386725
1452182626
Python
Python
py
Accepted
10
6340
133
n = input() ans = 100000 for i in xrange(n): ans *= 1.05 if ans % 1000 > 0: 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 &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,515
s566553115
p00007
u386731818
1455006383
Python
Python3
py
Accepted
20
7604
164
# coding: utf-8 # Here your code ! import math DEBT = 100000.0 n=int(input()) for i in range(n): DEBT = int(math.ceil( (DEBT*1.05)/1000.0 )) * 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 &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,516
s403189519
p00007
u650459696
1455022718
Python
Python3
py
Accepted
20
7572
117
import math n=int(input()) debt=100000 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 &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,517
s655136554
p00007
u442472098
1456016833
Python
Python3
py
Accepted
20
7532
233
#!/usr/bin/env python3 def main(): N = int(input()) c = 100000 for _ in range(N): c *= 1.05 t = c % 1000 if t > 0: c += 1000 - t print(int(c)) if __name__ == "__main__": main()
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,518
s123600097
p00007
u975539923
1456568001
Python
Python
py
Accepted
10
6428
155
N = input() money = 100000 for i in range(N): money = int(money *1.05) if money % 1000 != 0: money = (money // 1000 + 1) * 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 &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,519
s591024250
p00007
u766477342
1457178863
Python
Python3
py
Accepted
20
7660
95
a = 100000 for i in range(int(input())): a += (int(a * 0.05) + 999) // 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,520
s430836164
p00007
u075836834
1457997929
Python
Python3
py
Accepted
50
7636
118
from math import ceil n=int(input()) s=100000 for i in range(n): s +=(s*0.05) s=int(int(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 &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,521
s964590724
p00007
u148101999
1458270258
Python
Python
py
Accepted
10
6496
143
#encoding=utf-8 inp = input() x = 100000 for i in xrange(inp): x = x * 1.05 if int(x % 1000) != 0: x += 1000 - int(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 &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,522
s877836732
p00007
u915343634
1458319770
Python
Python3
py
Accepted
20
7696
113
from math import ceil yen = 100000 for i in range(int(input())): yen = 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,523
s513674225
p00007
u130979865
1459856716
Python
Python
py
Accepted
10
6484
210
# -*- coding: utf-8 -*- import math PRINCIPAL = 100000 RATE = 0.05 ABOVE = 1000 n = int(raw_input()) debt = PRINCIPAL for i in range(n): debt = int(math.ceil(float(debt)*(1+RATE)/ABOVE))*ABOVE 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 &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,524
s645513411
p00007
u572790226
1460088053
Python
Python3
py
Accepted
20
7672
305
from math import ceil def interest(debt, rate, weeks): if weeks == 1: return ceil(debt * (1 + rate)) else: return ceil(interest(debt, rate, weeks - 1) * (1 + rate)) rounds = 1000 rate = 0.05 debt = 100000 weeks = int(input()) print(int(rounds*interest(debt/rounds, rate, weeks)))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,525
s916190745
p00007
u894114233
1461762355
Python
Python
py
Accepted
10
6340
176
n=input() loan=10**5 for i in xrange(n): loan+=loan*0.05 if loan%1000!=0: loan-=loan%1000 loan+=10**3 else: loan-=loan%1000 print(int(loan))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,526
s498918238
p00007
u018967850
1462457972
Python
Python
py
Accepted
10
6468
187
import math def Interest(money,n): for i in range(n): money *= 1.05 money = math.ceil(money) return money m = 100 n = int(input()) print int(Interest(m,n)*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,527
s819894144
p00007
u412890344
1464527986
Python
Python3
py
Accepted
20
7564
483
n = input() ans = 100000 for i in range(int(n)): add = int(ans*0.05) #print("first_add:" + str(add)) add_list = list(str(add)) digits = len(add_list) sub3 = int(add_list[digits-3]+add_list[digits-2]+add_list[digits-1]) add = int("".join(add_list)) #print("sub3:"+ str(sub3)) if sub3<1000 and sub3 > 0: add = add - sub3 + 1000 #print("revised_add:" + str(add)) ans = ans + add #print("ans:" + str(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 &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,528
s391453178
p00007
u403901064
1464687090
Python
Python3
py
Accepted
20
7680
246
#!/usr/bin/env python3 # -*- coding: utf-8 -*- def main(): week = int(input()) base = 100000 x = base for i in range(week): x = round(x * 1.05) if x % 1000 > 0: x = (x // 1000) *1000 +1000 print(x) if __name__ == '__main__': main()
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,529
s219097645
p00007
u957021485
1465564682
Python
Python3
py
Accepted
30
7772
183
import math def calc_debt(week=0): debt = 100000 for i in range(week): debt = int(math.ceil(debt * 1.05 / 1000))*1000 return debt print(calc_debt(int(input())))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,530
s839165926
p00007
u765849500
1466158767
Python
Python
py
Accepted
10
6452
126
import math n = input() money = 100 for i in xrange(n): money *= 1.05 money = math.ceil(money) print "%i"%(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,531
s233808069
p00007
u203261375
1466634458
Python
Python3
py
Accepted
30
7608
139
n = int(input()) debt = 100000 for i in range(n): debt *= 1.05 if debt%1000 != 0: debt += 1000 - debt%1000 print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,532
s859674330
p00007
u617990214
1467206103
Python
Python3
py
Accepted
20
7492
114
a=100000 j=int(input()) for i in range(j): a*=1.05 if a%1000==0: pass else: a=(a+1000)-a%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,533
s066334056
p00007
u454259029
1468112632
Python
Python3
py
Accepted
20
7560
147
from math import ceil n = int(input()) dept = 100000 for i in range(n): dept += dept*0.05 dept = int(int(ceil(dept/1000)*1000)) print(dept)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,534
s964665489
p00007
u146816547
1468994656
Python
Python
py
Accepted
10
6356
127
import math ans = 100000 n = int(raw_input()) for i in range(n): ans = math.ceil(ans * 1.05 / 1000) * 1000 print int(ans)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,535
s494736419
p00007
u896025703
1469494283
Python
Python3
py
Accepted
30
7704
111
import math debt = 100 n = int(input()) for _ in range(n): debt = math.ceil(debt * 1.05) print(debt * 1000)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,536
s792660136
p00007
u626838615
1469929840
Python
Python3
py
Accepted
30
7652
124
from math import ceil n = int(input()) d = 100000 c = 1000 for i in range(n): d *= 1.05 d =int(ceil(d/c))*c 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 &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,537
s755521809
p00007
u582608581
1470288066
Python
Python3
py
Accepted
20
7424
135
import math n = eval(input()) yen = 100000 for i in range(n): yen += yen * 0.05 yen = int(math.ceil(yen / 1000.0) * 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,538
s852793848
p00007
u358919705
1471815298
Python
Python3
py
Accepted
40
7496
126
ans = 100000 for _ in range(int(input())): ans *= 1.05 if 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 &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,539
s091016671
p00007
u589886885
1471936494
Python
Python3
py
Accepted
30
7568
176
n = int(input()) debt = 100000 for i in range(n): debt *= 1.05 if debt % 1000 > 0: tmp = debt % 1000 debt -= tmp debt += 1000 print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,540
s292828606
p00007
u797673668
1472657840
Python
Python3
py
Accepted
20
7572
94
import math p = 100 for i in range(int(input())): p = math.ceil(p * 1.05) print(p * 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,541
s995242092
p00007
u350804311
1473256703
Python
Python3
py
Accepted
40
7648
122
import math n = int(input()) debt = 100 for i in range(n): debt = math.ceil(debt * 1.05) print(str(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,542
s636651940
p00007
u058433718
1474112268
Python
Python3
py
Accepted
50
9996
334
import sys from decimal import Decimal def main(): n = int(sys.stdin.readline().strip()) money = Decimal('100000') rate = Decimal('1.05') for _ in range(n): money *= rate if money % 1000: money = money // 1000 * 1000 + 1000 print(money) if __name__ == '__main__': main()
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,543
s157318661
p00007
u393305246
1474209408
Python
Python
py
Accepted
10
6428
129
debt=100000 week=input() for i in range(week): debt=debt*1.05 if debt%1000!=0: debt=int(debt/1000)*1000+1000 print debt
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,544
s321098737
p00007
u927516039
1474213015
Python
Python3
py
Accepted
30
7740
204
import math n=int(input()) x=100000 for i in range(n): x=x*1.05 # print('5%',x) x=x/1000 #print('/1000',x) x=math.ceil(x) #print('cut',x) x=x*1000 #print('*1000',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,545
s687953947
p00007
u775726833
1475789454
Python
Python3
py
Accepted
20
7588
171
import math n=int(input()) money = 100000 par = 1.05 for i in range(n): up = (money*1.05)/1000 money = math.ceil(up)*1000 #print(up*1000, money) 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,546
s773096893
p00007
u392445270
1475830085
Python
Python3
py
Accepted
20
7632
174
import sys n = int(sys.stdin.readline()) borrowing = 100000 for i in range(0, n): borrowing *= 1.05 borrowing = int((borrowing+999) / 1000) * 1000 print(borrowing)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,547
s737617179
p00007
u252368621
1476029741
Python
Python3
py
Accepted
20
7644
165
num=int(input()) debt=100000 for i in range(1,num+1): debt+=((debt)/100)*5 if not debt%1000==0: debt-=(debt%1000) debt+=1000 print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,548
s153976756
p00007
u505912349
1476438510
Python
Python3
py
Accepted
30
7664
256
import sys for num in sys.stdin: ini = 100000 num = int(num) for i in range(1, num+1): ini = ini + ini*0.05 mod = ini % 1000 ini = ini - mod if mod != 0: ini += 1000 ini = int(ini) print(ini)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,549
s386515673
p00007
u813534019
1477227703
Python
Python
py
Accepted
10
6332
122
n=input() m = 100000 for _ in xrange(n): m = m + m*0.05 if m % 1000: m = m + 1000 - m % 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,550
s944454683
p00007
u659302741
1477734886
Python
Python3
py
Accepted
20
7608
145
n = int(input()) m = 100000 for i in range(n): m = 1.05 * m r = m % 1000 if r > 0: m = (m // 1000 + 1) * 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,551
s998588105
p00007
u500396695
1477877470
Python
Python3
py
Accepted
30
7632
123
import math n = int(input()) debt = 100000 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 &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,552
s530648622
p00007
u149199817
1477975936
Python
Python3
py
Accepted
20
7684
428
# -*- coding: utf-8 -*- import sys def debt_interest(debt, weeks, rate=0.05, cut_up=1000): if weeks != 1: debt = debt_interest(debt, weeks-1, rate=rate, cut_up=cut_up) debt *= 1 + rate c = debt % cut_up if c != 0: debt += cut_up - c return debt def main(): debt = 100000. n = int(input()) ret = debt_interest(debt, n) print(int(ret)) if __name__ == '__main__': main()
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,553
s439329116
p00007
u886845205
1478198939
Python
Python3
py
Accepted
20
7500
128
n = 100000 for i in range(int(input())): n *= 1.05; if n % 1000: n += 1000 n = int(n / 1000) * 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,554
s923409245
p00007
u166871988
1478524493
Python
Python3
py
Accepted
30
7692
228
def cal(debt,n): if n==0: return debt for i in range(n): debt=debt*1.05 if debt/1000>int(debt/1000): debt=(int(debt/1000)+1)*1000 return debt debt=100000 n=int(input()) print(cal(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,555
s227274013
p00007
u660912567
1478874146
Python
Python3
py
Accepted
20
7720
131
import math result = 100000 for i in range(int(input())): result *= 1.05 result = math.ceil(result/1000)*1000 print(result)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,556
s978000290
p00007
u175111751
1479215638
Python
Python3
py
Accepted
20
7708
123
import math n = int(input()) s = 100000 r = 0.05 while n > 0: s += math.ceil((s * r) / 1000) * 1000 n -= 1 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,557
s048423375
p00007
u922871577
1479279173
Python
Python
py
Accepted
10
6324
119
D = 100000 N = int(raw_input()) for i in xrange(N): D += D/20 if D % 1000 > 0: 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 &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,558
s257799363
p00007
u919202930
1479349249
Python
Python3
py
Accepted
40
7760
259
import math def myceil(x,n): return math.pow(10,-n)*math.ceil(x*math.pow(10,n)) def debt(principal,w): if w==1: return int(myceil(principal*1.05,-3)) else: return int(debt(myceil(principal*1.05,-3),w-1)) w=int(input()) print(debt(100000,w))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,559
s006220863
p00007
u328069918
1479476244
Python
Python3
py
Accepted
30
8244
220
from math import ceil from functools import reduce print(reduce(lambda x, y: int(ceil(int(ceil(100000 * 1.05 / 1000) * 1000) * 1.05 / 1000) * 1000) if x == 0 else int(ceil(x * 1.05 / 1000) * 1000) , range(int(input()))))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,560
s171752347
p00007
u779577827
1479477076
Python
Python3
py
Accepted
40
7480
170
money = 100000 for _ in range(int(input())): money += int(money * 0.05) if money % 1000 != 0: while money % 1000 != 0: money += 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,561
s745299483
p00007
u328069918
1479477077
Python
Python3
py
Accepted
50
8244
151
from math import ceil from functools import reduce print(reduce(lambda x, y: int(ceil(x * 1.05 / 1000) * 1000) , [100000] + list(range(int(input())))))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,562
s631067862
p00007
u123687446
1480656719
Python
Python3
py
Accepted
20
7548
143
debt = 100000 n = int(input()) for i in range(n): debt *= 1.05 if debt%1000 != 0: debt = (debt//1000+1)*1000 print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,563
s035048369
p00007
u301729341
1480925099
Python
Python3
py
Accepted
30
7524
139
n = int(input()) Mo = 100000 for i in range(n): Mo = Mo * 1.05 if Mo%1000 != 0: Mo = (int(Mo/1000) + 1)*1000 print(int(Mo))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,564
s320205399
p00007
u661290476
1481181369
Python
Python3
py
Accepted
20
7520
131
n=int(input()) dept=100000 for i in range(n): dept*=1.05 if dept%1000!=0: dept=dept-dept%1000+1000 print(int(dept))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,565
s616877968
p00007
u811733736
1481194954
Python
Python3
py
Accepted
30
7524
370
if __name__ == '__main__': # ??????????????\??? weeks = int(input()) principal = 100000 # ??????????¨???? for i in range(weeks): interest = principal * 0.05 principal += interest fraction = principal % 1000 if fraction != 0: principal += (1000 - fraction) # ??????????????? print(int(principal))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,566
s985530302
p00007
u435300817
1481428111
Python
Python3
py
Accepted
30
7440
227
import math while True: try: N = int(input()) except ValueError: pass else: break lent = 100000 for i in range(N): lent *= 1.05 lent = math.ceil(lent / 1000) * 1000 print(lent)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,567
s364550872
p00007
u546285759
1481433742
Python
Python3
py
Accepted
30
7536
142
from math import ceil debt = 100000 n = int(input()) for _ in range(n): tmp = ceil(debt*1.05) debt = ceil((tmp/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 &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,568
s124026795
p00007
u661290476
1483008213
Python
Python3
py
Accepted
20
7580
109
n=int(input()) s=100000 for _ in range(n): s*=1.05 if s%1000!=0: s+=1000-s%1000 print(int(s))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,569
s996687702
p00007
u078042885
1483858035
Python
Python3
py
Accepted
20
7644
80
import math a=100 for _ in range(int(input())):a=math.ceil(a*1.05) print(a*1000)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,570
s395537301
p00007
u711765449
1483864499
Python
Python3
py
Accepted
20
7536
218
# -*- coding:utf-8 -*- x = 100000 n = int(input()) for i in range(n): x = x + x*0.05 a = x // 1000 r = x % 1000 if r != 0: x = 1000*a + 1000 else: x = 1000*a 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,571
s827280391
p00007
u745277023
1484377980
Python
Python3
py
Accepted
20
7532
136
x = int(input()) n = 100000 while x > 0: n *= 1.05 mod = n % 1000 if mod: n += 1000 - mod x -= 1 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 &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,572
s152050164
p00007
u252414452
1485183217
Python
Python
py
Accepted
10
6352
170
n = int(raw_input()) debt=100000 for i in range(n): debt*=1.05 if 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 &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,573
s166385799
p00007
u301461168
1487781777
Python
Python3
py
Accepted
30
7580
173
import math in_week = int(input().rstrip()) tmp_debt = 100000 for i in range(in_week): tmp_debt = int(math.ceil( (tmp_debt*1.05)/1000.0 )) * 1000 print(str(tmp_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 &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,574
s584472940
p00007
u831244171
1487845689
Python
Python3
py
Accepted
30
7528
127
import math n = int(input()) debt = 100000 for i in range(n): debt *= 1.05 debt = math.ceil(debt/1000)*1000 print(debt)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,575
s494201806
p00007
u072398496
1488767798
Python
Python
py
Accepted
10
6296
89
import math as k n=input() m=105 for i in range(n-1): m=k.ceil(m*1.05) print int(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 &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,576
s584669970
p00007
u901080241
1488951618
Python
Python3
py
Accepted
20
7600
103
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,577
s211688436
p00007
u459418423
1489026592
Python
Python3
py
Accepted
20
7464
235
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys n = int(sys.stdin.readline()) debt = 100000 for i in range(n): debt += debt // 20 fraction = debt % 1000 if fraction > 0: debt += 1000 - fraction 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 &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,578
s047196139
p00007
u810591206
1489038805
Python
Python3
py
Accepted
20
7536
101
n = int(input()) x = 100000 for i in range(n): x += (x * 0.05 + 999) // 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,579
s197481188
p00007
u318658123
1489407943
Python
Python3
py
Accepted
20
7472
227
week = int(input()) debt = 100000 for i in range(week): debt += debt * 0.05 thousand = int(debt / 1000) coin = debt - thousand * 1000 if 0 < coin: thousand += 1 debt = thousand * 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 &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,580
s916006682
p00007
u897625141
1489459457
Python
Python3
py
Accepted
20
7480
145
inp = int(input()) debt = 100000 for i in range(inp): debt*=1.05 if debt%1000 !=0: debt += 1000-(int(debt%1000)) print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,581
s916960417
p00007
u073709667
1490543333
Python
Python3
py
Accepted
20
7576
127
n=int(input()) debt=100 adds=1.05 for i in range(n): debt*=adds if debt%1!=0: debt=int(debt)+1 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,582
s769816841
p00007
u036236649
1490596608
Python
Python3
py
Accepted
20
7572
107
n = int(input()) d = 100000 for i in range(n): d *= 1.05 d = d - (d - 1) % 1000 + 999 print(int(d))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,583
s652130960
p00007
u728901930
1490779029
Python
Python3
py
Accepted
20
7584
189
import sys import math as m n=int(input()) out=100000 for i in range(n): out=m.ceil(out*1.05/1000)*1000 print(out) #for i in sys.stdin: # a,b=map(int,i.split()) # print(gcd(a,b),lcm(a,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,584
s424939975
p00007
u518711553
1491490856
Python
Python3
py
Accepted
20
7488
170
base, rate = 100, 0.05 for _ in range(int(input())): increment = base * rate base += round(increment + (0 if increment.is_integer() else 0.5)) print(base * 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,585
s279986075
p00007
u518711553
1491491051
Python
Python3
py
Accepted
20
7408
148
base, rate = 100, 1.05 for _ in range(int(input())): base *= rate if not base.is_integer(): base = int(base) + 1 print(base * 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,586
s249774203
p00007
u623894175
1491712647
Python
Python3
py
Accepted
20
7404
106
i = int(input()) x = 100000 for _ in range(i): x *= 1.05 x = int((x+999) / 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,587
s400531494
p00007
u307520683
1491894642
Python
Python
py
Accepted
10
6296
155
import math n = int(input()) dept=100 for i in range(n): dept=dept*1.05 #print dept dept=math.ceil(dept) #print dept print "%i"%(dept*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,588
s777827592
p00007
u519227872
1492090009
Python
Python3
py
Accepted
20
7484
102
from math import ceil n = int(input()) a = 100 for i in range(n): a=ceil(1.05 * 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,589
s562831918
p00007
u868716420
1492558180
Python
Python3
py
Accepted
40
7572
148
n = 10 ** 2 for i in range(int(input())) : n = float(n) * 1.05 if n - int(n) > 0 : n = int(n) + 1 else : n = int(n) print(n * (10 ** 3))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,590
s700732117
p00007
u462831976
1492559945
Python
Python3
py
Accepted
20
7688
231
# -*- coding: utf-8 -*- import sys import os import math N = int(input()) cost = 100000 for i in range(N): cost *= 1.05 cost = round(cost) if cost % 1000 > 0: cost = (cost // 1000) * 1000 + 1000 print(cost)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,591
s079875761
p00007
u000317780
1493794997
Python
Python3
py
Accepted
30
7648
239
import sys import math def main(): n = int(input().rstrip()) r = 1.05 digit = 3 a = 100000 for i in range(n): a = math.ceil(a*r/10**digit)*10**digit print(a) if __name__ == '__main__': main()
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,592
s038899034
p00007
u362104929
1494593048
Python
Python3
py
Accepted
20
7676
138
import math n = int(input()) ans = 100000 for i in range(n): ans += ans * 0.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,593
s146065219
p00007
u123596571
1494762806
Python
Python3
py
Accepted
30
7520
160
n = int(input()) debt = 100000 for i in range(n): debt = debt * 1.05 round = debt % 1000 if round != 0: debt = (debt // 1000 + 1) * 1000 print(int(debt))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,594
s392180147
p00007
u717959831
1494899312
Python
Python3
py
Accepted
30
7540
203
import sys import math for line in sys.stdin: debut = 100000 weeks = int(line) for i in range(weeks): debut = debut * 1.05 debut = math.ceil(debut/1000)*1000 print(debut)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,595
s021383887
p00007
u071308538
1495937371
Python
Python3
py
Accepted
30
7736
332
import sys def compoundInterest(x, i, n): if n == 0: return x ans = int(x * (1 + i)) hasu = ans % 1000 if hasu != 0: ans -= hasu ans += 1000 return compoundInterest(ans, i, n-1) if __name__ == "__main__": n = int(input()) ans = compoundInterest(100000, 0.05, n) 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,596
s674262497
p00007
u922489088
1496049545
Python
Python3
py
Accepted
30
7640
163
import sys import math monney = 100000 n = int(sys.stdin.readline().rstrip()) for i in range(n): monney = math.ceil(monney * 1.05 / 1000) * 1000 print(monney)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a 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,597
s212301758
p00007
u421983421
1496063367
Python
Python
py
Accepted
10
6320
175
def debt(x): nx = x * 105 / 100 ha = nx % 1000 nx -= ha if ha != 0: nx += 1000 return nx n = int(raw_input()) x = 100000 for i in range(0, n): x = debt(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,598
s902133795
p00007
u905313459
1496143379
Python
Python3
py
Accepted
30
7480
124
v = 100000 for i in range(int(input())): v *= 1.05 if v % 1000 != 0: v = v - (v % 1000) + 1000 print(int(v))
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,599
s181088427
p00007
u440180827
1496890822
Python
Python3
py
Accepted
20
7612
146
import math loan = 100000 n = int(input()) for i in range(n): interest = math.ceil(loan * 0.05 / 1000) * 1000 loan += interest print(loan)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,600
s822625372
p00007
u440180827
1496890860
Python
Python3
py
Accepted
30
7628
122
import math loan = 100000 n = int(input()) for i in range(n): loan += math.ceil(loan * 0.05 / 1000) * 1000 print(loan)
p00007
<H1>Debt Hell</H1> <p> Your friend who lives in undisclosed country is involved in debt. He is borrowing 100,000-yen from a loan shark. The loan shark adds 5% interest of the debt and rounds it to the nearest 1,000 above week by week. </p> <p> Write a program which computes the amount of the debt in <var>n</var> 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,601