node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
2,
17,
17,
41,
13,
4,
18,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n long ratio = 100000/1000;\n int n = new Scanner(System.in).nextInt();\n for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }\n System.out.println(\"\" + (ratio*1000));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]){\n long ratio = 100000/1000;\n int n = new Scanner(System.in).nextInt();\n for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }\n System.out.println(\"\" + (ratio*1000));\n }\n}",
"Main",
"public static void main(String args[]){\n long ratio = 100000/1000;\n int n = new Scanner(System.in).nextInt();\n for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }\n System.out.println(\"\" + (ratio*1000));\n }",
"main",
"{\n long ratio = 100000/1000;\n int n = new Scanner(System.in).nextInt();\n for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }\n System.out.println(\"\" + (ratio*1000));\n }",
"long ratio = 100000/1000;",
"ratio",
"100000/1000",
"100000",
"1000",
"int n = new Scanner(System.in).nextInt();",
"n",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n ratio = (long) Math.ceil(ratio*1.05);\n }",
"{\n ratio = (long) Math.ceil(ratio*1.05);\n }",
"ratio = (long) Math.ceil(ratio*1.05)",
"ratio",
"(long) Math.ceil(ratio*1.05)",
"Math.ceil",
"Math",
"ratio*1.05",
"ratio",
"1.05",
"System.out.println(\"\" + (ratio*1000))",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\" + (ratio*1000)",
"\"\"",
"(ratio*1000)",
"ratio",
"1000",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]){\n long ratio = 100000/1000;\n int n = new Scanner(System.in).nextInt();\n for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }\n System.out.println(\"\" + (ratio*1000));\n }\n}",
"public class Main {\n public static void main(String args[]){\n long ratio = 100000/1000;\n int n = new Scanner(System.in).nextInt();\n for(int i=0;i<n;i++){\n ratio = (long) Math.ceil(ratio*1.05);\n }\n System.out.println(\"\" + (ratio*1000));\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String args[]){
long ratio = 100000/1000;
int n = new Scanner(System.in).nextInt();
for(int i=0;i<n;i++){
ratio = (long) Math.ceil(ratio*1.05);
}
System.out.println("" + (ratio*1000));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tlong m=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tlong m=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tlong m=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(m);\n\t}",
"main",
"{\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tlong m=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(m);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long m=100000;",
"m",
"100000",
"for(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}",
"m=(long)(1.05*m)",
"m",
"(long)(1.05*m)",
"1.05",
"m",
"if(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}",
"m%1000>0",
"m%1000",
"m",
"1000",
"0",
"{\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}",
"m+=1000",
"m",
"1000",
"m-=m%1000",
"m",
"m%1000",
"m",
"1000",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tlong m=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint n=scan.nextInt();\n\t\tlong m=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tm=(long)(1.05*m);\n\t\t\tif(m%1000>0){\n\t\t\t\tm+=1000;\n\t\t\t\tm-=m%1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(m);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ
Scanner scan = new Scanner(System.in);
int n=scan.nextInt();
long m=100000;
for(int i=0;i<n;i++){
m=(long)(1.05*m);
if(m%1000>0){
m+=1000;
m-=m%1000;
}
}
System.out.println(m);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
40,
2,
2,
13,
17,
17,
30,
0,
13,
17,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
14,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
12,
70
],
[
70,
71
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint debt = 100000;\n\n\t\tDouble interest = 1.05;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint debt = 100000;\n\n\t\tDouble interest = 1.05;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint debt = 100000;\n\n\t\tDouble interest = 1.05;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tint debt = 100000;\n\n\t\tDouble interest = 1.05;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int debt = 100000;",
"debt",
"100000",
"Double interest = 1.05;",
"interest",
"1.05",
"for (int i = 0; i < n; i++) {\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tdebt *= interest;\n\n\t\t\tif (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}\n\n\t\t}",
"debt *= interest",
"debt",
"interest",
"if (!(debt % 1000 == 0)) {\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}",
"!(debt % 1000 == 0)",
"(debt % 1000 == 0)",
"debt % 1000",
"debt",
"1000",
"0",
"{\n\t\t\t\tdebt /= 1000;\n\t\t\t\tdebt++;\n\t\t\t\tdebt *= 1000;\n\t\t\t}",
"debt /= 1000",
"debt",
"1000",
"debt++",
"debt",
"debt *= 1000",
"debt",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int debt = 100000;
Double interest = 1.05;
for (int i = 0; i < n; i++) {
debt *= interest;
if (!(debt % 1000 == 0)) {
debt /= 1000;
debt++;
debt *= 1000;
}
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
41,
13,
2,
13,
17,
14,
2,
13,
17,
0,
13,
2,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
29,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
]
] | [
"import java.util.Scanner;\n \nclass Main {\n public static void main(String[] args) {\n int weeks = new Scanner(System.in).nextInt();\n double debt = 100000;\n for(int i = 0; i < weeks;i++) {\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }\n System.out.println((long)debt);\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n int weeks = new Scanner(System.in).nextInt();\n double debt = 100000;\n for(int i = 0; i < weeks;i++) {\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }\n System.out.println((long)debt);\n}\n}",
"Main",
"public static void main(String[] args) {\n int weeks = new Scanner(System.in).nextInt();\n double debt = 100000;\n for(int i = 0; i < weeks;i++) {\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }\n System.out.println((long)debt);\n}",
"main",
"{\n int weeks = new Scanner(System.in).nextInt();\n double debt = 100000;\n for(int i = 0; i < weeks;i++) {\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }\n System.out.println((long)debt);\n}",
"int weeks = new Scanner(System.in).nextInt();",
"weeks",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"double debt = 100000;",
"debt",
"100000",
"for(int i = 0; i < weeks;i++) {\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }",
"{\n debt *= 1.05;\n double fraction = debt % 1000;\n if (fraction != 0)debt += 1000 - fraction;\n }",
"debt *= 1.05",
"debt",
"1.05",
"double fraction = debt % 1000;",
"fraction",
"debt % 1000",
"debt",
"1000",
"if (fraction != 0)debt += 1000 - fraction;",
"fraction != 0",
"fraction",
"0",
"debt += 1000 - fraction",
"debt",
"1000 - fraction",
"1000",
"fraction",
"System.out.println((long)debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(long)debt",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
int weeks = new Scanner(System.in).nextInt();
double debt = 100000;
for(int i = 0; i < weeks;i++) {
debt *= 1.05;
double fraction = debt % 1000;
if (fraction != 0)debt += 1000 - fraction;
}
System.out.println((long)debt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
4,
18,
13,
5,
13,
30,
4,
18,
13,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
42,
2,
13,
17,
30,
0,
13,
4,
18,
13,
20,
0,
13,
4,
18,
4,
18,
13,
13,
40,
17,
18,
13,
13,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
21,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
21,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
40,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
40,
54
],
[
54,
55
],
[
54,
56
],
[
40,
57
],
[
57,
58
],
[
40,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
72,
78
],
[
78,
79
],
[
72,
80
],
[
80,
81
],
[
80,
82
],
[
63,
83
],
[
83,
84
],
[
40,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
18,
93
],
[
93,
94
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\nclass Main {\n\n\tprivate static BufferedReader br = new BufferedReader(\n\t\t\tnew InputStreamReader(System.in));\n\n\tpublic static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\ttry {\n\t\t\tInteger week = Integer.parseInt(br\n\t\t\t\t\t.readLine());\n\n\t\t\tint i = week.intValue();\n\t\t\tBigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");\n\t\t\tBigDecimal interest;\n\t\t\twhile (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tSystem.out.println(amount\n\t\t\t\t\t.toPlainString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"class Main {\n\n\tprivate static BufferedReader br = new BufferedReader(\n\t\t\tnew InputStreamReader(System.in));\n\n\tpublic static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\ttry {\n\t\t\tInteger week = Integer.parseInt(br\n\t\t\t\t\t.readLine());\n\n\t\t\tint i = week.intValue();\n\t\t\tBigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");\n\t\t\tBigDecimal interest;\n\t\t\twhile (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tSystem.out.println(amount\n\t\t\t\t\t.toPlainString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n\n}",
"Main",
"private static BufferedReader br = new BufferedReader(\n\t\t\tnew InputStreamReader(System.in));",
"br",
"new BufferedReader(\n\t\t\tnew InputStreamReader(System.in))",
"public static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\ttry {\n\t\t\tInteger week = Integer.parseInt(br\n\t\t\t\t\t.readLine());\n\n\t\t\tint i = week.intValue();\n\t\t\tBigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");\n\t\t\tBigDecimal interest;\n\t\t\twhile (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tSystem.out.println(amount\n\t\t\t\t\t.toPlainString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"main",
"{\n\n\t\ttry {\n\t\t\tInteger week = Integer.parseInt(br\n\t\t\t\t\t.readLine());\n\n\t\t\tint i = week.intValue();\n\t\t\tBigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");\n\t\t\tBigDecimal interest;\n\t\t\twhile (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tSystem.out.println(amount\n\t\t\t\t\t.toPlainString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"try {\n\t\t\tInteger week = Integer.parseInt(br\n\t\t\t\t\t.readLine());\n\n\t\t\tint i = week.intValue();\n\t\t\tBigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");\n\t\t\tBigDecimal interest;\n\t\t\twhile (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tSystem.out.println(amount\n\t\t\t\t\t.toPlainString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}",
"br.close()",
"br.close",
"br",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"catch (IOException e) {\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\tbr.close();\n\t\t\te.printStackTrace();\n\t\t}",
"br.close()",
"br.close",
"br",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tInteger week = Integer.parseInt(br\n\t\t\t\t\t.readLine());\n\n\t\t\tint i = week.intValue();\n\t\t\tBigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");\n\t\t\tBigDecimal interest;\n\t\t\twhile (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}\n\t\t\tSystem.out.println(amount\n\t\t\t\t\t.toPlainString());\n\t\t}",
"Integer week = Integer.parseInt(br\n\t\t\t\t\t.readLine());",
"week",
"Integer.parseInt(br\n\t\t\t\t\t.readLine())",
"Integer.parseInt",
"Integer",
"br\n\t\t\t\t\t.readLine()",
"br\n\t\t\t\t\t.readLine",
"br",
"int i = week.intValue();",
"i",
"week.intValue()",
"week.intValue",
"week",
"BigDecimal amount = new BigDecimal(\n\t\t\t\t\t\"100000\");",
"amount",
"new BigDecimal(\n\t\t\t\t\t\"100000\")",
"BigDecimal interest;",
"interest",
"while (i > 0) {\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}",
"i > 0",
"i",
"0",
"{\n\t\t\t\tinterest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"));\n\t\t\t\tamount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP);\n\t\t\t\ti--;\n\t\t\t}",
"interest = amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"))",
"interest",
"amount.multiply(\n\t\t\t\t\t\tnew BigDecimal(\"0.05\"))",
"amount.multiply",
"amount",
"new BigDecimal(\"0.05\")",
"amount = amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP)",
"amount",
"amount.add(interest)\n\t\t\t\t\t\t.setScale(-3,\n\t\t\t\t\t\t\t\tBigDecimal.ROUND_UP)",
"amount.add(interest)\n\t\t\t\t\t\t.setScale",
"amount.add(interest)",
"amount.add",
"amount",
"interest",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"i--",
"i",
"System.out.println(amount\n\t\t\t\t\t.toPlainString())",
"System.out.println",
"System.out",
"System",
"System.out",
"amount\n\t\t\t\t\t.toPlainString()",
"amount\n\t\t\t\t\t.toPlainString",
"amount",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
class Main {
private static BufferedReader br = new BufferedReader(
new InputStreamReader(System.in));
public static void main(String[] args)
throws IOException {
try {
Integer week = Integer.parseInt(br
.readLine());
int i = week.intValue();
BigDecimal amount = new BigDecimal(
"100000");
BigDecimal interest;
while (i > 0) {
interest = amount.multiply(
new BigDecimal("0.05"));
amount = amount.add(interest)
.setScale(-3,
BigDecimal.ROUND_UP);
i--;
}
System.out.println(amount
.toPlainString());
} catch (NumberFormatException e) {
br.close();
e.printStackTrace();
} catch (IOException e) {
br.close();
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n int value = 100000;\n int n = new Scanner(System.in).nextInt();\n for(int i = 0;i < n;i++){\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }\n System.out.println(value);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n int value = 100000;\n int n = new Scanner(System.in).nextInt();\n for(int i = 0;i < n;i++){\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }\n System.out.println(value);\n }\n}",
"Main",
"public static void main(String[] args){\n int value = 100000;\n int n = new Scanner(System.in).nextInt();\n for(int i = 0;i < n;i++){\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }\n System.out.println(value);\n }",
"main",
"{\n int value = 100000;\n int n = new Scanner(System.in).nextInt();\n for(int i = 0;i < n;i++){\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }\n System.out.println(value);\n }",
"int value = 100000;",
"value",
"100000",
"int n = new Scanner(System.in).nextInt();",
"n",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"for(int i = 0;i < n;i++){\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }",
"{\n value *= 1.05;\n if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;\n }",
"value *= 1.05",
"value",
"1.05",
"if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;",
"value % 1000 != 0",
"value % 1000",
"value",
"1000",
"0",
"value = value / 1000 * 1000 + 1000",
"value",
"value / 1000 * 1000 + 1000",
"value / 1000 * 1000",
"value / 1000",
"value",
"1000",
"1000",
"1000",
"System.out.println(value)",
"System.out.println",
"System.out",
"System",
"System.out",
"value",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
int value = 100000;
int n = new Scanner(System.in).nextInt();
for(int i = 0;i < n;i++){
value *= 1.05;
if(value % 1000 != 0) value = value / 1000 * 1000 + 1000;
}
System.out.println(value);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
41,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
76,
11
],
[
76,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
25,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
12,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n double debt = 100_000;\n while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n double debt = 100_000;\n while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }\n }\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n double debt = 100_000;\n while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }\n }",
"main",
"{\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n double debt = 100_000;\n while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }\n }",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"double debt = 100_000;",
"debt",
"100_000",
"while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }",
"input.ready()",
"input.ready",
"input",
"{\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }",
"int weeks = Integer.valueOf(input.readLine());",
"weeks",
"Integer.valueOf(input.readLine())",
"Integer.valueOf",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }",
"{\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }",
"debt += debt * 0.05",
"debt",
"debt * 0.05",
"debt",
"0.05",
"double hasuu = debt % 1000;",
"hasuu",
"debt % 1000",
"debt",
"1000",
"if (hasuu > 0) {\n debt += 1000 - hasuu;\n }",
"hasuu > 0",
"hasuu",
"0",
"{\n debt += 1000 - hasuu;\n }",
"debt += 1000 - hasuu",
"debt",
"1000 - hasuu",
"1000",
"hasuu",
"System.out.println((int) debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) debt",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n double debt = 100_000;\n while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n double debt = 100_000;\n while (input.ready()) {\n int weeks = Integer.valueOf(input.readLine());\n for (int i = 0; i < weeks; i++) {\n debt += debt * 0.05;\n double hasuu = debt % 1000;\n if (hasuu > 0) {\n debt += 1000 - hasuu;\n }\n }\n System.out.println((int) debt);\n }\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
double debt = 100_000;
while (input.ready()) {
int weeks = Integer.valueOf(input.readLine());
for (int i = 0; i < weeks; i++) {
debt += debt * 0.05;
double hasuu = debt % 1000;
if (hasuu > 0) {
debt += 1000 - hasuu;
}
}
System.out.println((int) debt);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
17,
30,
11,
1,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
41,
42
],
[
35,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
34,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
]
] | [
"import java.io.*;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=r.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint money=100000;\n\t\ttry {\n\t\t\tfor(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=r.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint money=100000;\n\t\ttry {\n\t\t\tfor(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=r.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint money=100000;\n\t\ttry {\n\t\t\tfor(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=r.readLine();\n\t\tint n = Integer.parseInt(s);\n\t\tint money=100000;\n\t\ttry {\n\t\t\tfor(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"BufferedReader r = new BufferedReader(new InputStreamReader(System.in));",
"r",
"new BufferedReader(new InputStreamReader(System.in))",
"String s=r.readLine();",
"s",
"r.readLine()",
"r.readLine",
"r",
"int n = Integer.parseInt(s);",
"n",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"int money=100000;",
"money",
"100000",
"try {\n\t\t\tfor(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}",
"catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}",
"Exception err",
"{\n\t\t\tSystem.exit(0);\n\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t\t\tfor(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t}",
"for(;n>0;n--){\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}",
";",
"n>0",
"n",
"0",
"n--",
"n--",
"n",
"{\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tmoney*=1.05;\n\t\t\t\tif (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}\n\t\t\t}",
"money*=1.05",
"money",
"1.05",
"if (money%1000>0){\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}",
"money%1000>0",
"money%1000",
"money",
"1000",
"0",
"{\n\t\t\t\t\tmoney = ((money/1000)+1)*1000;\n\t\t\t\t}",
"money = ((money/1000)+1)*1000",
"money",
"((money/1000)+1)*1000",
"((money/1000)+1)",
"(money/1000)",
"money",
"1000",
"1",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args"
] | import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s=r.readLine();
int n = Integer.parseInt(s);
int money=100000;
try {
for(;n>0;n--){
money*=1.05;
if (money%1000>0){
money = ((money/1000)+1)*1000;
}
}
System.out.println(money);
} catch (Exception err) {
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
29,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
6,
28
],
[
28,
29
],
[
4,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
32,
62
],
[
62,
63
],
[
30,
64
],
[
64,
65
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.close();\n\t\tSystem.out.println(debtHell(n));\n\t}\n\n\tstatic int debtHell(int n) {\n\t\tdouble debt = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}\n\t\treturn (int) debt;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.close();\n\t\tSystem.out.println(debtHell(n));\n\t}\n\n\tstatic int debtHell(int n) {\n\t\tdouble debt = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}\n\t\treturn (int) debt;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.close();\n\t\tSystem.out.println(debtHell(n));\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.close();\n\t\tSystem.out.println(debtHell(n));\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"in.close()",
"in.close",
"in",
"System.out.println(debtHell(n))",
"System.out.println",
"System.out",
"System",
"System.out",
"debtHell(n)",
"debtHell",
"n",
"String[] args",
"args",
"static int debtHell(int n) {\n\t\tdouble debt = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}\n\t\treturn (int) debt;\n\t}",
"debtHell",
"{\n\t\tdouble debt = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}\n\t\treturn (int) debt;\n\t}",
"double debt = 100000;",
"debt",
"100000",
"for (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}",
"{\n\t\t\tdebt *= 1.05;\n\t\t\t//System.out.print(debt);\n\t\t\tdebt = Math.ceil(debt / 1000.0) * 1000;\n\t\t\t//System.out.println(\"\\t\" + debt);\n\t\t}",
"debt *= 1.05",
"debt",
"1.05",
"debt = Math.ceil(debt / 1000.0) * 1000",
"debt",
"Math.ceil(debt / 1000.0) * 1000",
"Math.ceil(debt / 1000.0)",
"Math.ceil",
"Math",
"debt / 1000.0",
"debt",
"1000.0",
"1000",
"return (int) debt;",
"(int) debt",
"int n",
"n"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
in.close();
System.out.println(debtHell(n));
}
static int debtHell(int n) {
double debt = 100000;
for (int i = 0; i < n; i++) {
debt *= 1.05;
//System.out.print(debt);
debt = Math.ceil(debt / 1000.0) * 1000;
//System.out.println("\t" + debt);
}
return (int) debt;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
41,
13,
2,
13,
17,
0,
13,
13,
0,
13,
8,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
61,
5
],
[
61,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
32,
41
],
[
41,
42
],
[
41,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
46,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
6,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint money=100000;\n\t\tfor(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint money=100000;\n\t\tfor(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint money=100000;\n\t\tfor(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint money=100000;\n\t\tfor(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int money=100000;",
"money",
"100000",
"for(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}",
"{\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}",
"money*=1.05",
"money",
"1.05",
"int amari=money%1000;",
"amari",
"money%1000",
"money",
"1000",
"money-=amari",
"money",
"amari",
"money+=amari==0 ? 0 : 1000",
"money",
"amari==0 ? 0 : 1000",
"amari==0",
"amari",
"0",
"0",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint money=100000;\n\t\tfor(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint a=sc.nextInt();\n\t\tint money=100000;\n\t\tfor(int i=0;i<a;i++){\n\t\t\tmoney*=1.05;\n\t\t\tint amari=money%1000;\n\t\t\tmoney-=amari;\n\t\t\tmoney+=amari==0 ? 0 : 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int money=100000;
for(int i=0;i<a;i++){
money*=1.05;
int amari=money%1000;
money-=amari;
money+=amari==0 ? 0 : 1000;
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
32,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
6,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) {\n double debt = 100000.0;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }\n System.out.println((int)debt);\n\n }\n} ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String args[]) {\n double debt = 100000.0;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }\n System.out.println((int)debt);\n\n }\n}",
"Main",
"public static void main(String args[]) {\n double debt = 100000.0;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }\n System.out.println((int)debt);\n\n }",
"main",
"{\n double debt = 100000.0;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }\n System.out.println((int)debt);\n\n }",
"double debt = 100000.0;",
"debt",
"100000.0",
"int nWeeks = new Scanner(System.in).nextInt();",
"nWeeks",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nWeeks",
"i",
"nWeeks",
"i++",
"i++",
"i",
"{\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }",
"{\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }",
"debt = Math.ceil(debt * 0.00105) * 1000.0",
"debt",
"Math.ceil(debt * 0.00105) * 1000.0",
"Math.ceil(debt * 0.00105)",
"Math.ceil",
"Math",
"debt * 0.00105",
"debt",
"0.00105",
"1000.0",
"System.out.println((int)debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)debt",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n double debt = 100000.0;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }\n System.out.println((int)debt);\n\n }\n}",
"public class Main {\n public static void main(String args[]) {\n double debt = 100000.0;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = Math.ceil(debt * 0.00105) * 1000.0;\n }\n System.out.println((int)debt);\n\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
double debt = 100000.0;
int nWeeks = new Scanner(System.in).nextInt();
for(int i = 0; i < nWeeks; i++) {
debt = Math.ceil(debt * 0.00105) * 1000.0;
}
System.out.println((int)debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
]
] | [
"import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint debt = 100000;\n\t\tint n = scanner.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint debt = 100000;\n\t\tint n = scanner.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint debt = 100000;\n\t\tint n = scanner.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(debt);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint debt = 100000;\n\t\tint n = scanner.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(debt);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int debt = 100000;",
"debt",
"100000",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < n; i++) {\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdebt = (int)(debt * 1.05);\n\t\t\tif (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}\n\t\t}",
"debt = (int)(debt * 1.05)",
"debt",
"(int)(debt * 1.05)",
"debt",
"1.05",
"if (debt % 1000 != 0) {\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}",
"debt % 1000 != 0",
"debt % 1000",
"debt",
"1000",
"0",
"{\n\t\t\t\tdebt = debt - (debt % 1000) + 1000;\n\t\t\t}",
"debt = debt - (debt % 1000) + 1000",
"debt",
"debt - (debt % 1000) + 1000",
"debt - (debt % 1000)",
"debt",
"(debt % 1000)",
"debt",
"1000",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args"
] | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int debt = 100000;
int n = scanner.nextInt();
for (int i = 0; i < n; i++) {
debt = (int)(debt * 1.05);
if (debt % 1000 != 0) {
debt = debt - (debt % 1000) + 1000;
}
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
17,
4,
18,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
16,
28
],
[
28,
29
],
[
28,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
16,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] | [
"import java.io.*;\n\npublic class Main {\n\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }\n }\n}",
"Main",
"public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }",
"catch(IOException ex){\n \n }",
"IOException ex",
"{\n \n }",
"{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }",
"String st = br.readLine();",
"st",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(st);",
"n",
"Integer.parseInt(st)",
"Integer.parseInt",
"Integer",
"st",
"int x = 100000;",
"x",
"100000",
"for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }",
"{\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }",
"x = 1000*(int)Math.ceil(x*1.05/1000)",
"x",
"1000*(int)Math.ceil(x*1.05/1000)",
"1000",
"(int)Math.ceil(x*1.05/1000)",
"Math.ceil",
"Math",
"x*1.05/1000",
"x*1.05",
"x",
"1.05",
"1000",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }\n }\n}",
"public class Main {\n\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st = br.readLine();\n int n = Integer.parseInt(st);\n int x = 100000;\n for(int i = 0; i < n; i ++){\n x = 1000*(int)Math.ceil(x*1.05/1000);\n }\n System.out.println(x);\n }catch(IOException ex){\n \n }\n }\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try{
String st = br.readLine();
int n = Integer.parseInt(st);
int x = 100000;
for(int i = 0; i < n; i ++){
x = 1000*(int)Math.ceil(x*1.05/1000);
}
System.out.println(x);
}catch(IOException ex){
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
69,
11
],
[
69,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
12,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint weeks = Integer.parseInt(str);\n\t\tlong debtRound = 100000;\n\t\tfor (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println(debtRound);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint weeks = Integer.parseInt(str);\n\t\tlong debtRound = 100000;\n\t\tfor (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println(debtRound);\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint weeks = Integer.parseInt(str);\n\t\tlong debtRound = 100000;\n\t\tfor (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println(debtRound);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint weeks = Integer.parseInt(str);\n\t\tlong debtRound = 100000;\n\t\tfor (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println(debtRound);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int weeks = Integer.parseInt(str);",
"weeks",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"long debtRound = 100000;",
"debtRound",
"100000",
"for (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}",
"{\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}",
"long debt = (long) (debtRound * 1.05);",
"debt",
"(long) (debtRound * 1.05)",
"debtRound",
"1.05",
"debtRound = (long) Math.ceil((double) debt / 1000) * 1000",
"debtRound",
"(long) Math.ceil((double) debt / 1000) * 1000",
"(long) Math.ceil((double) debt / 1000)",
"Math.ceil",
"Math",
"(double) debt / 1000",
"(double) debt",
"1000",
"1000",
"System.out.println(debtRound)",
"System.out.println",
"System.out",
"System",
"System.out",
"debtRound",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint weeks = Integer.parseInt(str);\n\t\tlong debtRound = 100000;\n\t\tfor (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println(debtRound);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint weeks = Integer.parseInt(str);\n\t\tlong debtRound = 100000;\n\t\tfor (int i = 1; i <= weeks; i++) {\n\t\t\tlong debt = (long) (debtRound * 1.05);\n\t\t\tdebtRound = (long) Math.ceil((double) debt / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println(debtRound);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int weeks = Integer.parseInt(str);
long debtRound = 100000;
for (int i = 1; i <= weeks; i++) {
long debt = (long) (debtRound * 1.05);
debtRound = (long) Math.ceil((double) debt / 1000) * 1000;
}
System.out.println(debtRound);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
17,
40,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
6
],
[
6,
7
],
[
6,
8
],
[
55,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
45,
51
],
[
9,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] | [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tlong mon = 100_000;\n\t\twhile(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", mon);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tlong mon = 100_000;\n\t\twhile(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", mon);\n\t}\n}",
"Main",
"private static final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tlong mon = 100_000;\n\t\twhile(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", mon);\n\t}",
"main",
"{\n\t\tint n = scan.nextInt();\n\t\tlong mon = 100_000;\n\t\twhile(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", mon);\n\t}",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"long mon = 100_000;",
"mon",
"100_000",
"while(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}",
"mon *= 1.05",
"mon",
"1.05",
"n--",
"n",
"if(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}",
"mon % 1000 != 0",
"mon % 1000",
"mon",
"1000",
"0",
"{\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}",
"mon += 1000",
"mon",
"1000",
"mon -= mon % 1000",
"mon",
"mon % 1000",
"mon",
"1000",
"System.out.printf(\"%d\\n\", mon)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"mon",
"String[] args",
"args",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tlong mon = 100_000;\n\t\twhile(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", mon);\n\t}\n}",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tlong mon = 100_000;\n\t\twhile(n != 0){\n\t\t\tmon *= 1.05;\n\t\t\tn--;\n\t\t\tif(mon % 1000 != 0){\n\t\t\t\tmon += 1000;\n\t\t\t\tmon -= mon % 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"%d\\n\", mon);\n\t}\n}",
"Main"
] | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int n = scan.nextInt();
long mon = 100_000;
while(n != 0){
mon *= 1.05;
n--;
if(mon % 1000 != 0){
mon += 1000;
mon -= mon % 1000;
}
}
System.out.printf("%d\n", mon);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
41,
13,
17,
14,
2,
2,
13,
13,
17,
0,
13,
2,
2,
2,
13,
13,
17,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
70,
5
],
[
70,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
19,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = (int) Math.pow(10, 5);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}\n\t\tSystem.out.println(m);\n\t\tsc.close();\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = (int) Math.pow(10, 5);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}\n\t\tSystem.out.println(m);\n\t\tsc.close();\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = (int) Math.pow(10, 5);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}\n\t\tSystem.out.println(m);\n\t\tsc.close();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = (int) Math.pow(10, 5);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}\n\t\tSystem.out.println(m);\n\t\tsc.close();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = (int) Math.pow(10, 5);",
"m",
"(int) Math.pow(10, 5)",
"Math.pow",
"Math",
"10",
"5",
"for (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}",
"{\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}",
"m *= 1.05",
"m",
"1.05",
"int range = 1000;",
"range",
"1000",
"if (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;",
"m % range != 0",
"m % range",
"m",
"range",
"0",
"m = (m / range + 1) * range",
"m",
"(m / range + 1) * range",
"(m / range + 1)",
"m / range",
"m",
"range",
"1",
"range",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = (int) Math.pow(10, 5);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}\n\t\tSystem.out.println(m);\n\t\tsc.close();\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = (int) Math.pow(10, 5);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm *= 1.05;\n\t\t\tint range = 1000;\n\t\t\tif (m % range != 0)\n\t\t\t\tm = (m / range + 1) * range;\n\t\t}\n\t\tSystem.out.println(m);\n\t\tsc.close();\n\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = (int) Math.pow(10, 5);
for (int i = 0; i < n; i++) {
m *= 1.05;
int range = 1000;
if (m % range != 0)
m = (m / range + 1) * range;
}
System.out.println(m);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
41,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tdouble det = 100;\n\t\tint i;\n\t\tdouble sum = det;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}\n\t\tSystem.out.println((int)sum * 1000);\n\n\t\tscanner.close();\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tdouble det = 100;\n\t\tint i;\n\t\tdouble sum = det;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}\n\t\tSystem.out.println((int)sum * 1000);\n\n\t\tscanner.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tdouble det = 100;\n\t\tint i;\n\t\tdouble sum = det;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}\n\t\tSystem.out.println((int)sum * 1000);\n\n\t\tscanner.close();\n\t}",
"main",
"{\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tdouble det = 100;\n\t\tint i;\n\t\tdouble sum = det;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}\n\t\tSystem.out.println((int)sum * 1000);\n\n\t\tscanner.close();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double det = 100;",
"det",
"100",
"int i;",
"i",
"double sum = det;",
"sum",
"det",
"for(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}",
"{\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}",
"sum = Math.ceil(sum * 1.05)",
"sum",
"Math.ceil(sum * 1.05)",
"Math.ceil",
"Math",
"sum * 1.05",
"sum",
"1.05",
"System.out.println((int)sum * 1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)sum * 1000",
"(int)sum",
"1000",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tdouble det = 100;\n\t\tint i;\n\t\tdouble sum = det;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}\n\t\tSystem.out.println((int)sum * 1000);\n\n\t\tscanner.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tdouble det = 100;\n\t\tint i;\n\t\tdouble sum = det;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tsum = Math.ceil(sum * 1.05);\n\t\t}\n\t\tSystem.out.println((int)sum * 1000);\n\n\t\tscanner.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ่ชๅ็ๆใใใใกใฝใใใปในใฟใ
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
double det = 100;
int i;
double sum = det;
for(i = 0; i < n; i++) {
sum = Math.ceil(sum * 1.05);
}
System.out.println((int)sum * 1000);
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
19,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
6,
54
],
[
54,
55
]
] | [
"import java.util.*;\n\nclass Main {\n public static void main (String[] args) {\n Scanner scanner = new Scanner(System.in);\n double s = 100;\n\n while (scanner.hasNext()) {\n int w = scanner.nextInt();\n for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }\n System.out.println((int)(s * 1000));\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main (String[] args) {\n Scanner scanner = new Scanner(System.in);\n double s = 100;\n\n while (scanner.hasNext()) {\n int w = scanner.nextInt();\n for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }\n System.out.println((int)(s * 1000));\n }\n }\n}",
"Main",
"public static void main (String[] args) {\n Scanner scanner = new Scanner(System.in);\n double s = 100;\n\n while (scanner.hasNext()) {\n int w = scanner.nextInt();\n for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }\n System.out.println((int)(s * 1000));\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n double s = 100;\n\n while (scanner.hasNext()) {\n int w = scanner.nextInt();\n for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }\n System.out.println((int)(s * 1000));\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"double s = 100;",
"s",
"100",
"while (scanner.hasNext()) {\n int w = scanner.nextInt();\n for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }\n System.out.println((int)(s * 1000));\n }",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\n int w = scanner.nextInt();\n for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }\n System.out.println((int)(s * 1000));\n }",
"int w = scanner.nextInt();",
"w",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int ii = 0; ii < w; ii++) {\n s = Math.ceil(s * 1.05);\n }",
"int ii = 0;",
"int ii = 0;",
"ii",
"0",
"ii < w",
"ii",
"w",
"ii++",
"ii++",
"ii",
"{\n s = Math.ceil(s * 1.05);\n }",
"{\n s = Math.ceil(s * 1.05);\n }",
"s = Math.ceil(s * 1.05)",
"s",
"Math.ceil(s * 1.05)",
"Math.ceil",
"Math",
"s * 1.05",
"s",
"1.05",
"System.out.println((int)(s * 1000))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)(s * 1000)",
"s",
"1000",
"String[] args",
"args"
] | import java.util.*;
class Main {
public static void main (String[] args) {
Scanner scanner = new Scanner(System.in);
double s = 100;
while (scanner.hasNext()) {
int w = scanner.nextInt();
for (int ii = 0; ii < w; ii++) {
s = Math.ceil(s * 1.05);
}
System.out.println((int)(s * 1000));
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
8,
2,
2,
13,
17,
17,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
47,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
11,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
9,
67
],
[
67,
68
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main {\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int n = Integer.parseInt(line);\n int money = 100000;\n for(int i=0;i<n;i++){\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }\n System.out.println(money);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int n = Integer.parseInt(line);\n int money = 100000;\n for(int i=0;i<n;i++){\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }\n System.out.println(money);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int n = Integer.parseInt(line);\n int money = 100000;\n for(int i=0;i<n;i++){\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }\n System.out.println(money);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int n = Integer.parseInt(line);\n int money = 100000;\n for(int i=0;i<n;i++){\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }\n System.out.println(money);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int money = 100000;",
"money",
"100000",
"for(int i=0;i<n;i++){\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }",
"{\n \tmoney *= 1.05;\n \tmoney = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;\n }",
"money *= 1.05",
"money",
"1.05",
"money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000",
"money",
"money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000",
"money % 1000 == 0",
"money % 1000",
"money",
"1000",
"0",
"money",
"((money / 1000) + 1) * 1000",
"((money / 1000) + 1)",
"(money / 1000)",
"money",
"1000",
"1",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int n = Integer.parseInt(line);
int money = 100000;
for(int i=0;i<n;i++){
money *= 1.05;
money = money % 1000 == 0 ? money : ((money / 1000) + 1) * 1000;
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
53,
5
],
[
53,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
6,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] | [
"import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble money = 100;\n\tfor (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}\n\tSystem.out.println((int)money * 1000);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble money = 100;\n\tfor (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}\n\tSystem.out.println((int)money * 1000);\n }\n}",
"Main",
"public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble money = 100;\n\tfor (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}\n\tSystem.out.println((int)money * 1000);\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble money = 100;\n\tfor (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}\n\tSystem.out.println((int)money * 1000);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double money = 100;",
"money",
"100",
"for (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}",
"{\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}",
"money *= 1.05",
"money",
"1.05",
"money = Math.ceil(money)",
"money",
"Math.ceil(money)",
"Math.ceil",
"Math",
"money",
"System.out.println((int)money * 1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)money * 1000",
"(int)money",
"1000",
"String[] args",
"args",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble money = 100;\n\tfor (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}\n\tSystem.out.println((int)money * 1000);\n }\n}",
"public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble money = 100;\n\tfor (int i = 0; i < n; i++) {\n\t money *= 1.05;\n\t money = Math.ceil(money);\n\t}\n\tSystem.out.println((int)money * 1000);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main (String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
double money = 100;
for (int i = 0; i < n; i++) {
money *= 1.05;
money = Math.ceil(money);
}
System.out.println((int)money * 1000);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
17,
0,
13,
4,
18,
13,
13,
0,
13,
2,
13,
17,
41,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
32,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
32,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble debt = 100000;\n\t\t\n\t\tfor(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}\n\t\t\n\t\tint ans = (int)debt;\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble debt = 100000;\n\t\t\n\t\tfor(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}\n\t\t\n\t\tint ans = (int)debt;\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble debt = 100000;\n\t\t\n\t\tfor(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}\n\t\t\n\t\tint ans = (int)debt;\n\t\tSystem.out.println(ans);\n\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble debt = 100000;\n\t\t\n\t\tfor(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}\n\t\t\n\t\tint ans = (int)debt;\n\t\tSystem.out.println(ans);\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int week = scan.nextInt();",
"week",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double debt = 100000;",
"debt",
"100000",
"for(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}",
"{\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}",
"debt = debt * 1.05 / 1000",
"debt",
"debt * 1.05 / 1000",
"debt * 1.05",
"debt",
"1.05",
"1000",
"debt = Math.ceil(debt)",
"debt",
"Math.ceil(debt)",
"Math.ceil",
"Math",
"debt",
"debt = debt * 1000",
"debt",
"debt * 1000",
"debt",
"1000",
"int ans = (int)debt;",
"ans",
"(int)debt",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble debt = 100000;\n\t\t\n\t\tfor(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}\n\t\t\n\t\tint ans = (int)debt;\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble debt = 100000;\n\t\t\n\t\tfor(int i = 0; i < week; i++){\n\t\t\tdebt = debt * 1.05 / 1000;\n\t\t\tdebt = Math.ceil(debt);\n\t\t\tdebt = debt * 1000;\n\t\t}\n\t\t\n\t\tint ans = (int)debt;\n\t\tSystem.out.println(ans);\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int week = scan.nextInt();
double debt = 100000;
for(int i = 0; i < week; i++){
debt = debt * 1.05 / 1000;
debt = Math.ceil(debt);
debt = debt * 1000;
}
int ans = (int)debt;
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
0,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
22,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
6,
58
],
[
58,
59
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double debt = 100000;\n debt *= 0.001;\n while(sc.hasNext()) {\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }\n System.out.println((int)debt*1000);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double debt = 100000;\n debt *= 0.001;\n while(sc.hasNext()) {\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }\n System.out.println((int)debt*1000);\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double debt = 100000;\n debt *= 0.001;\n while(sc.hasNext()) {\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }\n System.out.println((int)debt*1000);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double debt = 100000;\n debt *= 0.001;\n while(sc.hasNext()) {\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }\n System.out.println((int)debt*1000);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double debt = 100000;",
"debt",
"100000",
"debt *= 0.001",
"debt",
"0.001",
"while(sc.hasNext()) {\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }\n System.out.println((int)debt*1000);\n }",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }\n System.out.println((int)debt*1000);\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n debt *= 1.05;\n debt = Math.ceil(debt);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n debt *= 1.05;\n debt = Math.ceil(debt);\n }",
"{\n debt *= 1.05;\n debt = Math.ceil(debt);\n }",
"debt *= 1.05",
"debt",
"1.05",
"debt = Math.ceil(debt)",
"debt",
"Math.ceil(debt)",
"Math.ceil",
"Math",
"debt",
"System.out.println((int)debt*1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)debt*1000",
"(int)debt",
"1000",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double debt = 100000;
debt *= 0.001;
while(sc.hasNext()) {
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
debt *= 1.05;
debt = Math.ceil(debt);
}
System.out.println((int)debt*1000);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
13,
17,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
51,
58
],
[
17,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
59,
65
],
[
15,
66
],
[
66,
67
]
] | [
"import java.io.*;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n double money = 100000;\n for(int i=0;i<n;i++) {\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }\n System.out.printf(\"%.0f\\n\", money);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n double money = 100000;\n for(int i=0;i<n;i++) {\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }\n System.out.printf(\"%.0f\\n\", money);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n double money = 100000;\n for(int i=0;i<n;i++) {\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }\n System.out.printf(\"%.0f\\n\", money);\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n double money = 100000;\n for(int i=0;i<n;i++) {\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }\n System.out.printf(\"%.0f\\n\", money);\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"double money = 100000;",
"money",
"100000",
"for(int i=0;i<n;i++) {\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }",
"{\n money = money + money * 0.05;\n money = Math.ceil(money/1000.0) * 1000;\n }",
"money = money + money * 0.05",
"money",
"money + money * 0.05",
"money",
"money * 0.05",
"money",
"0.05",
"money = Math.ceil(money/1000.0) * 1000",
"money",
"Math.ceil(money/1000.0) * 1000",
"Math.ceil(money/1000.0)",
"Math.ceil",
"Math",
"money/1000.0",
"money",
"1000.0",
"1000",
"System.out.printf(\"%.0f\\n\", money)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.0f\\n\"",
"money",
"String[] args",
"args"
] | import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
double money = 100000;
for(int i=0;i<n;i++) {
money = money + money * 0.05;
money = Math.ceil(money/1000.0) * 1000;
}
System.out.printf("%.0f\n", money);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
35,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
35,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n double tmp = 100000.0;\n\n for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }\n\n System.out.println((int)tmp);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n double tmp = 100000.0;\n\n for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }\n\n System.out.println((int)tmp);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n double tmp = 100000.0;\n\n for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }\n\n System.out.println((int)tmp);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n double tmp = 100000.0;\n\n for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }\n\n System.out.println((int)tmp);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"double tmp = 100000.0;",
"tmp",
"100000.0",
"for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }",
"{\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }",
"tmp *= 1.05",
"tmp",
"1.05",
"tmp /= 1000",
"tmp",
"1000",
"tmp = Math.ceil(tmp)",
"tmp",
"Math.ceil(tmp)",
"Math.ceil",
"Math",
"tmp",
"tmp *= 1000",
"tmp",
"1000",
"System.out.println((int)tmp)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)tmp",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n double tmp = 100000.0;\n\n for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }\n\n System.out.println((int)tmp);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.next());\n double tmp = 100000.0;\n\n for (int i = 0; i < n; i++) {\n tmp *= 1.05;\n tmp /= 1000;\n tmp = Math.ceil(tmp);\n tmp *= 1000;\n }\n\n System.out.println((int)tmp);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
double tmp = 100000.0;
for (int i = 0; i < n; i++) {
tmp *= 1.05;
tmp /= 1000;
tmp = Math.ceil(tmp);
tmp *= 1000;
}
System.out.println((int)tmp);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
12,
13,
30,
4,
13,
4,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
29,
17,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
41,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
83,
5
],
[
83,
6
],
[
6,
7
],
[
6,
8
],
[
83,
9
],
[
9,
10
],
[
83,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
13,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
83,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
83,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
48,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
32,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] | [
"import java.util.*;\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n;\n\n\tpublic static void main(String[] args){\n\t\tread();\n\t\tslove();\n\t}\n\tstatic boolean read(){\n\t\tn = sc.nextInt();\n\t\treturn true;\n\t}\n\tstatic void slove(){\n\t\tdouble Debt = 100000;\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((int)Debt);\n\t}\n\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n;\n\n\tpublic static void main(String[] args){\n\t\tread();\n\t\tslove();\n\t}\n\tstatic boolean read(){\n\t\tn = sc.nextInt();\n\t\treturn true;\n\t}\n\tstatic void slove(){\n\t\tdouble Debt = 100000;\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((int)Debt);\n\t}\n\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static int n;",
"n",
"public static void main(String[] args){\n\t\tread();\n\t\tslove();\n\t}",
"main",
"{\n\t\tread();\n\t\tslove();\n\t}",
"read()",
"read",
"slove()",
"slove",
"String[] args",
"args",
"static boolean read(){\n\t\tn = sc.nextInt();\n\t\treturn true;\n\t}",
"read",
"{\n\t\tn = sc.nextInt();\n\t\treturn true;\n\t}",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"return true;",
"true",
"static void slove(){\n\t\tdouble Debt = 100000;\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((int)Debt);\n\t}",
"slove",
"{\n\t\tdouble Debt = 100000;\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((int)Debt);\n\t}",
"double Debt = 100000;",
"Debt",
"100000",
"for(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}",
"{\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}",
"Debt = Debt*1.05",
"Debt",
"Debt*1.05",
"Debt",
"1.05",
"int r = (int)Debt%1000;",
"r",
"(int)Debt%1000",
"(int)Debt",
"1000",
"if(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}",
"r != 0",
"r",
"0",
"{\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}",
"Debt += 1000",
"Debt",
"1000",
"Debt -= r",
"Debt",
"r",
"Debt = Math.round(Debt)",
"Debt",
"Math.round(Debt)",
"Math.round",
"Math",
"Debt",
"System.out.println((int)Debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)Debt",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n;\n\n\tpublic static void main(String[] args){\n\t\tread();\n\t\tslove();\n\t}\n\tstatic boolean read(){\n\t\tn = sc.nextInt();\n\t\treturn true;\n\t}\n\tstatic void slove(){\n\t\tdouble Debt = 100000;\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((int)Debt);\n\t}\n\n\n}",
"public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n;\n\n\tpublic static void main(String[] args){\n\t\tread();\n\t\tslove();\n\t}\n\tstatic boolean read(){\n\t\tn = sc.nextInt();\n\t\treturn true;\n\t}\n\tstatic void slove(){\n\t\tdouble Debt = 100000;\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tDebt = Debt*1.05;\n\t\t\tint r = (int)Debt%1000;\n\t\t\tif(r != 0){\n\t\t\t\tDebt += 1000;\n\t\t\t\tDebt -= r;\n\t\t\t\tDebt = Math.round(Debt);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println((int)Debt);\n\t}\n\n\n}",
"Main"
] | import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
static int n;
public static void main(String[] args){
read();
slove();
}
static boolean read(){
n = sc.nextInt();
return true;
}
static void slove(){
double Debt = 100000;
for(int i = 1; i <= n; i++){
Debt = Debt*1.05;
int r = (int)Debt%1000;
if(r != 0){
Debt += 1000;
Debt -= r;
Debt = Math.round(Debt);
}
}
System.out.println((int)Debt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
0,
13,
4,
18,
4,
18,
13,
13,
41,
13,
17,
41,
13,
41,
13,
11,
1,
41,
13,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
0,
13,
13,
30,
0,
13,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
11,
42
],
[
42,
43
],
[
11,
44
],
[
44,
45
],
[
11,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
9,
90
],
[
90,
91
]
] | [
"import java.io.*;\n\nimport java.util.*;\n\n\n\n\n\nclass Main{\n\n\t\t\n\t\tpublic static void main(String args[]) throws IOException{\n\n\t\t\tArrayList<Double> equ = new ArrayList<Double>();\n\n\t\t\tScanner scan = new Scanner(System.in);\n\n\t\t\tint n = 0;\n\n\t\t\t\n\n\t\t\twhile(scan.hasNext()){\n\n\t\t\t\t\tString str1 = scan.next();\n\n\t\t\t\t\tn = Integer.valueOf(str1).intValue();\n\n\t\t\t}\n\n\t\t\n\t\tint money = 100000;\n\t\tint check,surp;\n\n\n\t\tfor(int i = n;i>0;i--){\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\n\t}\n\t\t\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\n\t\t\n\t\tpublic static void main(String args[]) throws IOException{\n\n\t\t\tArrayList<Double> equ = new ArrayList<Double>();\n\n\t\t\tScanner scan = new Scanner(System.in);\n\n\t\t\tint n = 0;\n\n\t\t\t\n\n\t\t\twhile(scan.hasNext()){\n\n\t\t\t\t\tString str1 = scan.next();\n\n\t\t\t\t\tn = Integer.valueOf(str1).intValue();\n\n\t\t\t}\n\n\t\t\n\t\tint money = 100000;\n\t\tint check,surp;\n\n\n\t\tfor(int i = n;i>0;i--){\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\n\t}\n\t\t\n\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\n\t\t\tArrayList<Double> equ = new ArrayList<Double>();\n\n\t\t\tScanner scan = new Scanner(System.in);\n\n\t\t\tint n = 0;\n\n\t\t\t\n\n\t\t\twhile(scan.hasNext()){\n\n\t\t\t\t\tString str1 = scan.next();\n\n\t\t\t\t\tn = Integer.valueOf(str1).intValue();\n\n\t\t\t}\n\n\t\t\n\t\tint money = 100000;\n\t\tint check,surp;\n\n\n\t\tfor(int i = n;i>0;i--){\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\n\t}",
"main",
"{\n\n\t\t\tArrayList<Double> equ = new ArrayList<Double>();\n\n\t\t\tScanner scan = new Scanner(System.in);\n\n\t\t\tint n = 0;\n\n\t\t\t\n\n\t\t\twhile(scan.hasNext()){\n\n\t\t\t\t\tString str1 = scan.next();\n\n\t\t\t\t\tn = Integer.valueOf(str1).intValue();\n\n\t\t\t}\n\n\t\t\n\t\tint money = 100000;\n\t\tint check,surp;\n\n\n\t\tfor(int i = n;i>0;i--){\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\n\t}",
"ArrayList<Double> equ = new ArrayList<Double>();",
"equ",
"new ArrayList<Double>()",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = 0;",
"n",
"0",
"while(scan.hasNext()){\n\n\t\t\t\t\tString str1 = scan.next();\n\n\t\t\t\t\tn = Integer.valueOf(str1).intValue();\n\n\t\t\t}",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n\n\t\t\t\t\tString str1 = scan.next();\n\n\t\t\t\t\tn = Integer.valueOf(str1).intValue();\n\n\t\t\t}",
"String str1 = scan.next();",
"str1",
"scan.next()",
"scan.next",
"scan",
"n = Integer.valueOf(str1).intValue()",
"n",
"Integer.valueOf(str1).intValue()",
"Integer.valueOf(str1).intValue",
"Integer.valueOf(str1)",
"Integer.valueOf",
"Integer",
"str1",
"int money = 100000;",
"money",
"100000",
"int check",
"check",
"surp;",
"surp",
"for(int i = n;i>0;i--){\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}",
"int i = n;",
"int i = n;",
"i",
"n",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}",
"{\t\n\n\t\t\t\n\t\t\tcheck = (int)(money * 1.05);\n\t\t\tsurp = check%1000;\n\t\t\tif(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}\n\t\t}",
"check = (int)(money * 1.05)",
"check",
"(int)(money * 1.05)",
"money",
"1.05",
"surp = check%1000",
"surp",
"check%1000",
"check",
"1000",
"if(surp == 0)money = check;\n\t\t\telse{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}",
"surp == 0",
"surp",
"0",
"money = check",
"money",
"check",
"{\n\t\t\t\tmoney = check-surp+1000;\n\t\t\t}",
"money = check-surp+1000",
"money",
"check-surp+1000",
"check-surp",
"check",
"surp",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String args[]",
"args"
] | import java.io.*;
import java.util.*;
class Main{
public static void main(String args[]) throws IOException{
ArrayList<Double> equ = new ArrayList<Double>();
Scanner scan = new Scanner(System.in);
int n = 0;
while(scan.hasNext()){
String str1 = scan.next();
n = Integer.valueOf(str1).intValue();
}
int money = 100000;
int check,surp;
for(int i = n;i>0;i--){
check = (int)(money * 1.05);
surp = check%1000;
if(surp == 0)money = check;
else{
money = check-surp+1000;
}
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
68,
11
],
[
68,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
12,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] | [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint price = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(price);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint price = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(price);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint price = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(price);\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint price = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(price);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int price = 100000;",
"price",
"100000",
"for (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}",
"{\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}",
"price *= 1.05",
"price",
"1.05",
"if (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}",
"price % 1000 > 0",
"price % 1000",
"price",
"1000",
"0",
"{\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}",
"price += 1000 - (price % 1000)",
"price",
"1000 - (price % 1000)",
"1000",
"(price % 1000)",
"price",
"1000",
"System.out.println(price)",
"System.out.println",
"System.out",
"System",
"System.out",
"price",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint price = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(price);\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint price = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tprice *= 1.05;\n\t\t\tif (price % 1000 > 0) {\n\t\t\t\tprice += 1000 - (price % 1000);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(price);\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int price = 100000;
for (int i = 0; i < n; i++) {
price *= 1.05;
if (price % 1000 > 0) {
price += 1000 - (price % 1000);
}
}
System.out.println(price);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
0,
13,
2,
8,
2,
13,
17,
2,
13,
17,
13,
17,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
69,
5
],
[
69,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
35,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
50,
57
],
[
49,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
59,
65
],
[
6,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner\tstdin = new Scanner(System.in);\n\t\tint\t\tnWeek = stdin.nextInt();\n\t\tint\t\tnRent = 100000;\n\t\tint\t\tnTmp = 0;\n\n\t\tfor(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%d\\n\", nRent);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner\tstdin = new Scanner(System.in);\n\t\tint\t\tnWeek = stdin.nextInt();\n\t\tint\t\tnRent = 100000;\n\t\tint\t\tnTmp = 0;\n\n\t\tfor(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%d\\n\", nRent);\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner\tstdin = new Scanner(System.in);\n\t\tint\t\tnWeek = stdin.nextInt();\n\t\tint\t\tnRent = 100000;\n\t\tint\t\tnTmp = 0;\n\n\t\tfor(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%d\\n\", nRent);\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner\tstdin = new Scanner(System.in);\n\t\tint\t\tnWeek = stdin.nextInt();\n\t\tint\t\tnRent = 100000;\n\t\tint\t\tnTmp = 0;\n\n\t\tfor(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%d\\n\", nRent);\n\t}",
"Scanner\tstdin = new Scanner(System.in);",
"stdin",
"new Scanner(System.in)",
"int\t\tnWeek = stdin.nextInt();",
"nWeek",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"int\t\tnRent = 100000;",
"nRent",
"100000",
"int\t\tnTmp = 0;",
"nTmp",
"0",
"for(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}",
"int nLoop = 0;",
"int nLoop = 0;",
"nLoop",
"0",
"nLoop < nWeek",
"nLoop",
"nWeek",
"nLoop++",
"nLoop++",
"nLoop",
"{\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}",
"{\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}",
"nRent *= 1.05",
"nRent",
"1.05",
"nTmp = nRent % 1000",
"nTmp",
"nRent % 1000",
"nRent",
"1000",
"nRent /= 1000",
"nRent",
"1000",
"nRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000",
"nRent",
"((nTmp > 0) ? nRent + 1 : nRent) * 1000",
"((nTmp > 0) ? nRent + 1 : nRent)",
"(nTmp > 0)",
"nTmp",
"0",
"nRent + 1",
"nRent",
"1",
"nRent",
"1000",
"System.out.printf(\"%d\\n\", nRent)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"nRent",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner\tstdin = new Scanner(System.in);\n\t\tint\t\tnWeek = stdin.nextInt();\n\t\tint\t\tnRent = 100000;\n\t\tint\t\tnTmp = 0;\n\n\t\tfor(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%d\\n\", nRent);\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner\tstdin = new Scanner(System.in);\n\t\tint\t\tnWeek = stdin.nextInt();\n\t\tint\t\tnRent = 100000;\n\t\tint\t\tnTmp = 0;\n\n\t\tfor(int nLoop = 0; nLoop < nWeek; nLoop++) {\n\t\t\tnRent *= 1.05;\n\t\t\tnTmp = nRent % 1000;\n\t\t\tnRent /= 1000;\n\t\t\tnRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%d\\n\", nRent);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner stdin = new Scanner(System.in);
int nWeek = stdin.nextInt();
int nRent = 100000;
int nTmp = 0;
for(int nLoop = 0; nLoop < nWeek; nLoop++) {
nRent *= 1.05;
nTmp = nRent % 1000;
nRent /= 1000;
nRent = ((nTmp > 0) ? nRent + 1 : nRent) * 1000;
}
System.out.printf("%d\n", nRent);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
13,
13,
13,
29,
4,
18,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
20,
29,
4,
18,
13,
40,
17,
18,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
105,
8
],
[
105,
9
],
[
9,
10
],
[
9,
11
],
[
105,
12
],
[
12,
13
],
[
12,
14
],
[
105,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
28,
32
],
[
17,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
17,
39
],
[
39,
40
],
[
40,
41
],
[
15,
42
],
[
42,
43
],
[
105,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
50,
61
],
[
62,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
46,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
44,
76
],
[
76,
77
],
[
44,
78
],
[
78,
79
],
[
44,
80
],
[
80,
81
],
[
105,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
84,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
82,
100
],
[
100,
101
],
[
82,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\n /**\n * ใ้\n */\n private static final String MONEY = \"100000\";\n\n /**\n * ๅฉๅญ\n */\n private static final String INTEREST_RATE = \"0.05\";\n\n /**\n * @param args n้ฑ้\n */\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int weeks = in.nextInt();\n\n //ๅ้ใ่จ็ฎใใพใใ\n int debt = calcDebt(MONEY, INTEREST_RATE, weeks);\n\n System.out.println(debt);\n in.close();\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้ใ่จ็ฎใ1000ๆชๆบใฏๅใไธใใใ<br>\n * @param money ๅ้\n * @param interestRate ๅฉๅญ\n * @param weeks n้ฑ้\n * @return n้ฑ้ๅพใฎๅ้\n */\n private static int calcDebt(String money,\n String interestRate, int weeks) {\n\n BigDecimal debt = new BigDecimal(money);\n\n for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }\n return debt.intValue();\n }\n\n static BigDecimal calcInterest(BigDecimal debt, String interestRate){\n debt = (debt).multiply(new BigDecimal(interestRate));\n return debt.setScale(-3, BigDecimal.ROUND_UP);\n }\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n /**\n * ใ้\n */\n private static final String MONEY = \"100000\";\n\n /**\n * ๅฉๅญ\n */\n private static final String INTEREST_RATE = \"0.05\";\n\n /**\n * @param args n้ฑ้\n */\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int weeks = in.nextInt();\n\n //ๅ้ใ่จ็ฎใใพใใ\n int debt = calcDebt(MONEY, INTEREST_RATE, weeks);\n\n System.out.println(debt);\n in.close();\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้ใ่จ็ฎใ1000ๆชๆบใฏๅใไธใใใ<br>\n * @param money ๅ้\n * @param interestRate ๅฉๅญ\n * @param weeks n้ฑ้\n * @return n้ฑ้ๅพใฎๅ้\n */\n private static int calcDebt(String money,\n String interestRate, int weeks) {\n\n BigDecimal debt = new BigDecimal(money);\n\n for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }\n return debt.intValue();\n }\n\n static BigDecimal calcInterest(BigDecimal debt, String interestRate){\n debt = (debt).multiply(new BigDecimal(interestRate));\n return debt.setScale(-3, BigDecimal.ROUND_UP);\n }\n}",
"Main",
"/**\n * ใ้\n */\n private static final String MONEY = \"100000\";",
"MONEY",
"\"100000\"",
"/**\n * ๅฉๅญ\n */\n private static final String INTEREST_RATE = \"0.05\";",
"INTEREST_RATE",
"\"0.05\"",
"/**\n * @param args n้ฑ้\n */\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int weeks = in.nextInt();\n\n //ๅ้ใ่จ็ฎใใพใใ\n int debt = calcDebt(MONEY, INTEREST_RATE, weeks);\n\n System.out.println(debt);\n in.close();\n }",
"main",
"{\n\n Scanner in = new Scanner(System.in);\n int weeks = in.nextInt();\n\n //ๅ้ใ่จ็ฎใใพใใ\n int debt = calcDebt(MONEY, INTEREST_RATE, weeks);\n\n System.out.println(debt);\n in.close();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int weeks = in.nextInt();",
"weeks",
"in.nextInt()",
"in.nextInt",
"in",
"int debt = calcDebt(MONEY, INTEREST_RATE, weeks);",
"debt",
"calcDebt(MONEY, INTEREST_RATE, weeks)",
"calcDebt",
"MONEY",
"INTEREST_RATE",
"weeks",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"/**\n * n้ฑ้ๅพใฎๅ้ใ่จ็ฎใ1000ๆชๆบใฏๅใไธใใใ<br>\n * @param money ๅ้\n * @param interestRate ๅฉๅญ\n * @param weeks n้ฑ้\n * @return n้ฑ้ๅพใฎๅ้\n */\n private static int calcDebt(String money,\n String interestRate, int weeks) {\n\n BigDecimal debt = new BigDecimal(money);\n\n for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }\n return debt.intValue();\n }",
"calcDebt",
"{\n\n BigDecimal debt = new BigDecimal(money);\n\n for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }\n return debt.intValue();\n }",
"BigDecimal debt = new BigDecimal(money);",
"debt",
"new BigDecimal(money)",
"for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }",
"{\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }",
"debt = debt.add(calcInterest(debt, INTEREST_RATE))",
"debt",
"debt.add(calcInterest(debt, INTEREST_RATE))",
"debt.add",
"debt",
"calcInterest(debt, INTEREST_RATE)",
"calcInterest",
"debt",
"INTEREST_RATE",
"return debt.intValue();",
"debt.intValue()",
"debt.intValue",
"debt",
"String money",
"money",
"String interestRate",
"interestRate",
"int weeks",
"weeks",
"static BigDecimal calcInterest(BigDecimal debt, String interestRate){\n debt = (debt).multiply(new BigDecimal(interestRate));\n return debt.setScale(-3, BigDecimal.ROUND_UP);\n }",
"calcInterest",
"{\n debt = (debt).multiply(new BigDecimal(interestRate));\n return debt.setScale(-3, BigDecimal.ROUND_UP);\n }",
"debt = (debt).multiply(new BigDecimal(interestRate))",
"debt",
"(debt).multiply(new BigDecimal(interestRate))",
"(debt).multiply",
"(debt)",
"new BigDecimal(interestRate)",
"return debt.setScale(-3, BigDecimal.ROUND_UP);",
"debt.setScale(-3, BigDecimal.ROUND_UP)",
"debt.setScale",
"debt",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"BigDecimal debt",
"debt",
"String interestRate",
"interestRate",
"public class Main {\n\n /**\n * ใ้\n */\n private static final String MONEY = \"100000\";\n\n /**\n * ๅฉๅญ\n */\n private static final String INTEREST_RATE = \"0.05\";\n\n /**\n * @param args n้ฑ้\n */\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int weeks = in.nextInt();\n\n //ๅ้ใ่จ็ฎใใพใใ\n int debt = calcDebt(MONEY, INTEREST_RATE, weeks);\n\n System.out.println(debt);\n in.close();\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้ใ่จ็ฎใ1000ๆชๆบใฏๅใไธใใใ<br>\n * @param money ๅ้\n * @param interestRate ๅฉๅญ\n * @param weeks n้ฑ้\n * @return n้ฑ้ๅพใฎๅ้\n */\n private static int calcDebt(String money,\n String interestRate, int weeks) {\n\n BigDecimal debt = new BigDecimal(money);\n\n for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }\n return debt.intValue();\n }\n\n static BigDecimal calcInterest(BigDecimal debt, String interestRate){\n debt = (debt).multiply(new BigDecimal(interestRate));\n return debt.setScale(-3, BigDecimal.ROUND_UP);\n }\n}",
"public class Main {\n\n /**\n * ใ้\n */\n private static final String MONEY = \"100000\";\n\n /**\n * ๅฉๅญ\n */\n private static final String INTEREST_RATE = \"0.05\";\n\n /**\n * @param args n้ฑ้\n */\n public static void main(String[] args) {\n\n Scanner in = new Scanner(System.in);\n int weeks = in.nextInt();\n\n //ๅ้ใ่จ็ฎใใพใใ\n int debt = calcDebt(MONEY, INTEREST_RATE, weeks);\n\n System.out.println(debt);\n in.close();\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้ใ่จ็ฎใ1000ๆชๆบใฏๅใไธใใใ<br>\n * @param money ๅ้\n * @param interestRate ๅฉๅญ\n * @param weeks n้ฑ้\n * @return n้ฑ้ๅพใฎๅ้\n */\n private static int calcDebt(String money,\n String interestRate, int weeks) {\n\n BigDecimal debt = new BigDecimal(money);\n\n for(int i = 0; i < weeks; i++){\n debt = debt.add(calcInterest(debt, INTEREST_RATE));\n }\n return debt.intValue();\n }\n\n static BigDecimal calcInterest(BigDecimal debt, String interestRate){\n debt = (debt).multiply(new BigDecimal(interestRate));\n return debt.setScale(-3, BigDecimal.ROUND_UP);\n }\n}",
"Main"
] | import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
/**
* ใ้
*/
private static final String MONEY = "100000";
/**
* ๅฉๅญ
*/
private static final String INTEREST_RATE = "0.05";
/**
* @param args n้ฑ้
*/
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int weeks = in.nextInt();
//ๅ้ใ่จ็ฎใใพใใ
int debt = calcDebt(MONEY, INTEREST_RATE, weeks);
System.out.println(debt);
in.close();
}
/**
* n้ฑ้ๅพใฎๅ้ใ่จ็ฎใ1000ๆชๆบใฏๅใไธใใใ<br>
* @param money ๅ้
* @param interestRate ๅฉๅญ
* @param weeks n้ฑ้
* @return n้ฑ้ๅพใฎๅ้
*/
private static int calcDebt(String money,
String interestRate, int weeks) {
BigDecimal debt = new BigDecimal(money);
for(int i = 0; i < weeks; i++){
debt = debt.add(calcInterest(debt, INTEREST_RATE));
}
return debt.intValue();
}
static BigDecimal calcInterest(BigDecimal debt, String interestRate){
debt = (debt).multiply(new BigDecimal(interestRate));
return debt.setScale(-3, BigDecimal.ROUND_UP);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
17,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
4,
18,
4,
18,
13,
13,
17,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
4,
18,
13,
13,
17,
18,
13,
13,
29,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
123,
14
],
[
123,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
123,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
123,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
29,
35
],
[
123,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
42,
44
],
[
38,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
38,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
38,
56
],
[
56,
57
],
[
56,
58
],
[
38,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
76,
82
],
[
76,
83
],
[
83,
84
],
[
83,
85
],
[
38,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
36,
92
],
[
92,
93
],
[
123,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
105,
111
],
[
105,
112
],
[
112,
113
],
[
112,
114
],
[
96,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
94,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\npublic class Main {\n\n\t/** ?????? */\n\tstatic final BigDecimal capital = BigDecimal.valueOf(100000);\n\n\t/** ?????? */\n\tstatic final BigDecimal interest = BigDecimal.valueOf(0.05);\n\n\t/** ??? */\n\tstatic final BigDecimal rate = BigDecimal.valueOf(1).add(interest);\n\n\t/**\n\t * ????????ยฐ???????????ยฐ???????????????\n\t * ????ยด???ยจ???Debt Hell(????????ยฐ???)\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString input = br.readLine();\n\n\t\t// ????????ยถ?????\\???????????ยฑ????????????????????????????????????\n\t\tint weeks = Integer.valueOf(input);\n\n\t\t// ?ยจ??????????????????????????????????????ยด?\n\t\tBigDecimal result = capital;\n\t\tfor (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n\n\t/**\n\t * ????ยงยฐ?????ยฐ??????1000???????????????????????????????????ยด\n\t *\n\t * @param target ????ยงยฐ??ยฐ???\n\t * @return ????????????????????????\n\t */\n\tprivate static BigDecimal roundUpLowerThousand(BigDecimal target) {\n\t\t// ?ยจ????????????ยจ??????????????ยฐ???1000???\n\t\tBigDecimal basisNumber = BigDecimal.valueOf(1000);\n\t\tBigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);\n\n\t\treturn result.multiply(basisNumber);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n\n\t/** ?????? */\n\tstatic final BigDecimal capital = BigDecimal.valueOf(100000);\n\n\t/** ?????? */\n\tstatic final BigDecimal interest = BigDecimal.valueOf(0.05);\n\n\t/** ??? */\n\tstatic final BigDecimal rate = BigDecimal.valueOf(1).add(interest);\n\n\t/**\n\t * ????????ยฐ???????????ยฐ???????????????\n\t * ????ยด???ยจ???Debt Hell(????????ยฐ???)\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString input = br.readLine();\n\n\t\t// ????????ยถ?????\\???????????ยฑ????????????????????????????????????\n\t\tint weeks = Integer.valueOf(input);\n\n\t\t// ?ยจ??????????????????????????????????????ยด?\n\t\tBigDecimal result = capital;\n\t\tfor (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n\n\t/**\n\t * ????ยงยฐ?????ยฐ??????1000???????????????????????????????????ยด\n\t *\n\t * @param target ????ยงยฐ??ยฐ???\n\t * @return ????????????????????????\n\t */\n\tprivate static BigDecimal roundUpLowerThousand(BigDecimal target) {\n\t\t// ?ยจ????????????ยจ??????????????ยฐ???1000???\n\t\tBigDecimal basisNumber = BigDecimal.valueOf(1000);\n\t\tBigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);\n\n\t\treturn result.multiply(basisNumber);\n\t}\n}",
"Main",
"/** ?????? */\n\tstatic final BigDecimal capital = BigDecimal.valueOf(100000);",
"capital",
"BigDecimal.valueOf(100000)",
"BigDecimal.valueOf",
"BigDecimal",
"100000",
"/** ?????? */\n\tstatic final BigDecimal interest = BigDecimal.valueOf(0.05);",
"interest",
"BigDecimal.valueOf(0.05)",
"BigDecimal.valueOf",
"BigDecimal",
"0.05",
"/** ??? */\n\tstatic final BigDecimal rate = BigDecimal.valueOf(1).add(interest);",
"rate",
"BigDecimal.valueOf(1).add(interest)",
"BigDecimal.valueOf(1).add",
"BigDecimal.valueOf(1)",
"BigDecimal.valueOf",
"BigDecimal",
"1",
"interest",
"/**\n\t * ????????ยฐ???????????ยฐ???????????????\n\t * ????ยด???ยจ???Debt Hell(????????ยฐ???)\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString input = br.readLine();\n\n\t\t// ????????ยถ?????\\???????????ยฑ????????????????????????????????????\n\t\tint weeks = Integer.valueOf(input);\n\n\t\t// ?ยจ??????????????????????????????????????ยด?\n\t\tBigDecimal result = capital;\n\t\tfor (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}",
"main",
"{\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString input = br.readLine();\n\n\t\t// ????????ยถ?????\\???????????ยฑ????????????????????????????????????\n\t\tint weeks = Integer.valueOf(input);\n\n\t\t// ?ยจ??????????????????????????????????????ยด?\n\t\tBigDecimal result = capital;\n\t\tfor (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"int weeks = Integer.valueOf(input);",
"weeks",
"Integer.valueOf(input)",
"Integer.valueOf",
"Integer",
"input",
"BigDecimal result = capital;",
"result",
"capital",
"for (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}",
"{\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}",
"result = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP))",
"result",
"roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP))",
"roundUpLowerThousand",
"rate.multiply(result).setScale(0, BigDecimal.ROUND_UP)",
"rate.multiply(result).setScale",
"rate.multiply(result)",
"rate.multiply",
"rate",
"result",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"/**\n\t * ????ยงยฐ?????ยฐ??????1000???????????????????????????????????ยด\n\t *\n\t * @param target ????ยงยฐ??ยฐ???\n\t * @return ????????????????????????\n\t */\n\tprivate static BigDecimal roundUpLowerThousand(BigDecimal target) {\n\t\t// ?ยจ????????????ยจ??????????????ยฐ???1000???\n\t\tBigDecimal basisNumber = BigDecimal.valueOf(1000);\n\t\tBigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);\n\n\t\treturn result.multiply(basisNumber);\n\t}",
"roundUpLowerThousand",
"{\n\t\t// ?ยจ????????????ยจ??????????????ยฐ???1000???\n\t\tBigDecimal basisNumber = BigDecimal.valueOf(1000);\n\t\tBigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);\n\n\t\treturn result.multiply(basisNumber);\n\t}",
"BigDecimal basisNumber = BigDecimal.valueOf(1000);",
"basisNumber",
"BigDecimal.valueOf(1000)",
"BigDecimal.valueOf",
"BigDecimal",
"1000",
"BigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);",
"result",
"target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP)",
"target.divide(basisNumber).setScale",
"target.divide(basisNumber)",
"target.divide",
"target",
"basisNumber",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"return result.multiply(basisNumber);",
"result.multiply(basisNumber)",
"result.multiply",
"result",
"basisNumber",
"BigDecimal target",
"target",
"public class Main {\n\n\t/** ?????? */\n\tstatic final BigDecimal capital = BigDecimal.valueOf(100000);\n\n\t/** ?????? */\n\tstatic final BigDecimal interest = BigDecimal.valueOf(0.05);\n\n\t/** ??? */\n\tstatic final BigDecimal rate = BigDecimal.valueOf(1).add(interest);\n\n\t/**\n\t * ????????ยฐ???????????ยฐ???????????????\n\t * ????ยด???ยจ???Debt Hell(????????ยฐ???)\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString input = br.readLine();\n\n\t\t// ????????ยถ?????\\???????????ยฑ????????????????????????????????????\n\t\tint weeks = Integer.valueOf(input);\n\n\t\t// ?ยจ??????????????????????????????????????ยด?\n\t\tBigDecimal result = capital;\n\t\tfor (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n\n\t/**\n\t * ????ยงยฐ?????ยฐ??????1000???????????????????????????????????ยด\n\t *\n\t * @param target ????ยงยฐ??ยฐ???\n\t * @return ????????????????????????\n\t */\n\tprivate static BigDecimal roundUpLowerThousand(BigDecimal target) {\n\t\t// ?ยจ????????????ยจ??????????????ยฐ???1000???\n\t\tBigDecimal basisNumber = BigDecimal.valueOf(1000);\n\t\tBigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);\n\n\t\treturn result.multiply(basisNumber);\n\t}\n}",
"public class Main {\n\n\t/** ?????? */\n\tstatic final BigDecimal capital = BigDecimal.valueOf(100000);\n\n\t/** ?????? */\n\tstatic final BigDecimal interest = BigDecimal.valueOf(0.05);\n\n\t/** ??? */\n\tstatic final BigDecimal rate = BigDecimal.valueOf(1).add(interest);\n\n\t/**\n\t * ????????ยฐ???????????ยฐ???????????????\n\t * ????ยด???ยจ???Debt Hell(????????ยฐ???)\n\t * @param args\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString input = br.readLine();\n\n\t\t// ????????ยถ?????\\???????????ยฑ????????????????????????????????????\n\t\tint weeks = Integer.valueOf(input);\n\n\t\t// ?ยจ??????????????????????????????????????ยด?\n\t\tBigDecimal result = capital;\n\t\tfor (int i = 0; i < weeks; i++) {\n\t\t\t// ????????????????????????????????????1000???????????????????????????\n\t\t\tresult = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));\n\t\t}\n\n\t\tSystem.out.println(result);\n\t}\n\n\t/**\n\t * ????ยงยฐ?????ยฐ??????1000???????????????????????????????????ยด\n\t *\n\t * @param target ????ยงยฐ??ยฐ???\n\t * @return ????????????????????????\n\t */\n\tprivate static BigDecimal roundUpLowerThousand(BigDecimal target) {\n\t\t// ?ยจ????????????ยจ??????????????ยฐ???1000???\n\t\tBigDecimal basisNumber = BigDecimal.valueOf(1000);\n\t\tBigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);\n\n\t\treturn result.multiply(basisNumber);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
public class Main {
/** ?????? */
static final BigDecimal capital = BigDecimal.valueOf(100000);
/** ?????? */
static final BigDecimal interest = BigDecimal.valueOf(0.05);
/** ??? */
static final BigDecimal rate = BigDecimal.valueOf(1).add(interest);
/**
* ????????ยฐ???????????ยฐ???????????????
* ????ยด???ยจ???Debt Hell(????????ยฐ???)
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String input = br.readLine();
// ????????ยถ?????\???????????ยฑ????????????????????????????????????
int weeks = Integer.valueOf(input);
// ?ยจ??????????????????????????????????????ยด?
BigDecimal result = capital;
for (int i = 0; i < weeks; i++) {
// ????????????????????????????????????1000???????????????????????????
result = roundUpLowerThousand(rate.multiply(result).setScale(0, BigDecimal.ROUND_UP));
}
System.out.println(result);
}
/**
* ????ยงยฐ?????ยฐ??????1000???????????????????????????????????ยด
*
* @param target ????ยงยฐ??ยฐ???
* @return ????????????????????????
*/
private static BigDecimal roundUpLowerThousand(BigDecimal target) {
// ?ยจ????????????ยจ??????????????ยฐ???1000???
BigDecimal basisNumber = BigDecimal.valueOf(1000);
BigDecimal result = target.divide(basisNumber).setScale(0, BigDecimal.ROUND_UP);
return result.multiply(basisNumber);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
13,
17,
41,
13,
20,
0,
13,
4,
18,
4,
18,
13,
40,
17,
18,
13,
13,
4,
18,
18,
13,
13,
17,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
58,
64
],
[
9,
65
],
[
65,
66
]
] | [
"import java.util.*;\nimport java.math.*;\n class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tdouble sum = 100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.printf(\"%.0f\\n\",sum);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tdouble sum = 100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.printf(\"%.0f\\n\",sum);\n\t}\n}",
"Main",
"public static void main (String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tdouble sum = 100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.printf(\"%.0f\\n\",sum);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tdouble sum = 100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.printf(\"%.0f\\n\",sum);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double sum = 100000;",
"sum",
"100000",
"for(int i=0;i<n;i++){\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}",
"{\n\t\t\tsum=sum+sum*0.05;\n\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(sum));\n\t\t\tsum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();\n\t\t}",
"sum=sum+sum*0.05",
"sum",
"sum+sum*0.05",
"sum",
"sum*0.05",
"sum",
"0.05",
"BigDecimal bi = new BigDecimal(String.valueOf(sum));",
"bi",
"new BigDecimal(String.valueOf(sum))",
"sum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue()",
"sum",
"bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue()",
"bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue",
"bi.setScale(-3,BigDecimal.ROUND_UP)",
"bi.setScale",
"bi",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"System.out.printf(\"%.0f\\n\",sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.0f\\n\"",
"sum",
"String[] args",
"args"
] | import java.util.*;
import java.math.*;
class Main {
public static void main (String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double sum = 100000;
for(int i=0;i<n;i++){
sum=sum+sum*0.05;
BigDecimal bi = new BigDecimal(String.valueOf(sum));
sum = bi.setScale(-3,BigDecimal.ROUND_UP).doubleValue();
}
System.out.printf("%.0f\n",sum);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
2,
13,
17,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
42,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
84,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
72,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"import java.util.*;\npublic class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n}",
"Main",
"public void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}",
"doIt",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int debt = 100000;",
"debt",
"100000",
"for(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}",
"debt = debt + (debt * 5 / 100)",
"debt",
"debt + (debt * 5 / 100)",
"debt",
"(debt * 5 / 100)",
"debt * 5",
"debt",
"5",
"100",
"if(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}",
"debt % 1000 == 0",
"debt % 1000",
"debt",
"1000",
"0",
"{\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}",
"debt = (debt / 1000) * 1000",
"debt",
"(debt / 1000) * 1000",
"(debt / 1000)",
"debt",
"1000",
"1000",
"{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}",
"debt = (debt / 1000 + 1) * 1000",
"debt",
"(debt / 1000 + 1) * 1000",
"(debt / 1000 + 1)",
"debt / 1000",
"debt",
"1000",
"1",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"public static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}",
"main",
"{\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}",
"Main obj = new Main();",
"obj",
"new Main()",
"obj.doIt()",
"obj.doIt",
"obj",
"String[] args",
"args",
"public class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n}",
"public class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdebt = debt + (debt * 5 / 100);\n\t\t\tif(debt % 1000 == 0){\n\t\t\t\tdebt = (debt / 1000) * 1000;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tdebt = (debt / 1000 + 1) * 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(debt);\n\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
public void doIt(){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int debt = 100000;
for(int i=0; i < n; i++){
debt = debt + (debt * 5 / 100);
if(debt % 1000 == 0){
debt = (debt / 1000) * 1000;
}
else{
debt = (debt / 1000 + 1) * 1000;
}
}
System.out.println(debt);
}
public static void main(String[] args) {
Main obj = new Main();
obj.doIt();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
17,
42,
17,
30,
38,
5,
13,
30,
4,
18,
13,
17,
30,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
18,
13,
13,
0,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
39,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
39,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
39,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
39,
82
],
[
82,
83
],
[
82,
84
],
[
39,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
12,
93
],
[
93,
94
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tdouble prc=100;\n\t\tlong hen=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tdouble prc=100;\n\t\tlong hen=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tdouble prc=100;\n\t\tlong hen=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tdouble prc=100;\n\t\tlong hen=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String name;",
"name",
"int num;",
"num",
"double prc=100;",
"prc",
"100",
"long hen=0;",
"hen",
"0",
"while(true){\n\n\t\t\ttry{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"true",
"{\n\n\t\t\ttry{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t\t\t\tprc=100;\n\t\t\t\then=0;\n\t\t\t\tnum=0;\n\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\n\t\t\t\tfor(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}\n\n\t\t\t\then=(long) prc;\n\t\t\t\tSystem.out.println(hen*1000);\n\n\t\t\t}",
"prc=100",
"prc",
"100",
"hen=0",
"hen",
"0",
"num=0",
"num",
"0",
"name=br.readLine()",
"name",
"br.readLine()",
"br.readLine",
"br",
"num=Integer.parseInt(name)",
"num",
"Integer.parseInt(name)",
"Integer.parseInt",
"Integer",
"name",
"for(int i=0; i<num; i++){\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}",
"{\n\t\t\t\t\tprc*=1.05;\n\t\t\t\t\tprc=Math.ceil(prc);\n\t\t\t\t}",
"prc*=1.05",
"prc",
"1.05",
"prc=Math.ceil(prc)",
"prc",
"Math.ceil(prc)",
"Math.ceil",
"Math",
"prc",
"hen=(long) prc",
"hen",
"(long) prc",
"System.out.println(hen*1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"hen*1000",
"hen",
"1000",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String name;
int num;
double prc=100;
long hen=0;
while(true){
try{
prc=100;
hen=0;
num=0;
name=br.readLine();
num=Integer.parseInt(name);
for(int i=0; i<num; i++){
prc*=1.05;
prc=Math.ceil(prc);
}
hen=(long) prc;
System.out.println(hen*1000);
}
catch(Exception e){
System.exit(0);
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
4,
18,
13,
17,
40,
17,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
66,
8
],
[
66,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
38,
47
],
[
47,
48
],
[
38,
49
],
[
49,
50
],
[
49,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
11,
60
],
[
60,
61
],
[
61,
62
],
[
9,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] | [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n BigDecimal totalDebt = new BigDecimal(100000);\n\n // ?ยจ??????\\???\n Scanner sc = new Scanner(System.in);\n int term = sc.nextInt();\n\n // ?????ยจ??ยฑ????????????????????????\n for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }\n\n System.out.println(totalDebt.longValue());\n\n sc.close();\n\n }\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n BigDecimal totalDebt = new BigDecimal(100000);\n\n // ?ยจ??????\\???\n Scanner sc = new Scanner(System.in);\n int term = sc.nextInt();\n\n // ?????ยจ??ยฑ????????????????????????\n for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }\n\n System.out.println(totalDebt.longValue());\n\n sc.close();\n\n }\n}",
"Main",
"public static void main(String[] args) {\n BigDecimal totalDebt = new BigDecimal(100000);\n\n // ?ยจ??????\\???\n Scanner sc = new Scanner(System.in);\n int term = sc.nextInt();\n\n // ?????ยจ??ยฑ????????????????????????\n for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }\n\n System.out.println(totalDebt.longValue());\n\n sc.close();\n\n }",
"main",
"{\n BigDecimal totalDebt = new BigDecimal(100000);\n\n // ?ยจ??????\\???\n Scanner sc = new Scanner(System.in);\n int term = sc.nextInt();\n\n // ?????ยจ??ยฑ????????????????????????\n for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }\n\n System.out.println(totalDebt.longValue());\n\n sc.close();\n\n }",
"BigDecimal totalDebt = new BigDecimal(100000);",
"totalDebt",
"new BigDecimal(100000)",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int term = sc.nextInt();",
"term",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < term",
"i",
"term",
"i++",
"i++",
"i",
"{\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }",
"{\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }",
"totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP)",
"totalDebt",
"totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP)",
"totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale",
"totalDebt.multiply(BigDecimal.valueOf(1.05))",
"totalDebt.multiply",
"totalDebt",
"BigDecimal.valueOf(1.05)",
"BigDecimal.valueOf",
"BigDecimal",
"1.05",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"System.out.println(totalDebt.longValue())",
"System.out.println",
"System.out",
"System",
"System.out",
"totalDebt.longValue()",
"totalDebt.longValue",
"totalDebt",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n BigDecimal totalDebt = new BigDecimal(100000);\n\n // ?ยจ??????\\???\n Scanner sc = new Scanner(System.in);\n int term = sc.nextInt();\n\n // ?????ยจ??ยฑ????????????????????????\n for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }\n\n System.out.println(totalDebt.longValue());\n\n sc.close();\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n BigDecimal totalDebt = new BigDecimal(100000);\n\n // ?ยจ??????\\???\n Scanner sc = new Scanner(System.in);\n int term = sc.nextInt();\n\n // ?????ยจ??ยฑ????????????????????????\n for (int i = 0; i < term; i++) {\n\n totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);\n }\n\n System.out.println(totalDebt.longValue());\n\n sc.close();\n\n }\n}",
"Main"
] | import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
BigDecimal totalDebt = new BigDecimal(100000);
// ?ยจ??????\???
Scanner sc = new Scanner(System.in);
int term = sc.nextInt();
// ?????ยจ??ยฑ????????????????????????
for (int i = 0; i < term; i++) {
totalDebt = totalDebt.multiply(BigDecimal.valueOf(1.05)).setScale(-3, BigDecimal.ROUND_UP);
}
System.out.println(totalDebt.longValue());
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int debt = 100000;\n\n for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }\n System.out.println(debt);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int debt = 100000;\n\n for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }\n System.out.println(debt);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int debt = 100000;\n\n for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }\n System.out.println(debt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int debt = 100000;\n\n for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }\n System.out.println(debt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int debt = 100000;",
"debt",
"100000",
"for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }",
"{\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }",
"debt += debt*0.05",
"debt",
"debt*0.05",
"debt",
"0.05",
"if(debt%1000!=0){ debt = debt/1000*1000+1000; }",
"debt%1000!=0",
"debt%1000",
"debt",
"1000",
"0",
"{ debt = debt/1000*1000+1000; }",
"debt = debt/1000*1000+1000",
"debt",
"debt/1000*1000+1000",
"debt/1000*1000",
"debt/1000",
"debt",
"1000",
"1000",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int debt = 100000;\n\n for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }\n System.out.println(debt);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int debt = 100000;\n\n for(int i=0;i<n;i++){\n debt += debt*0.05;\n if(debt%1000!=0){ debt = debt/1000*1000+1000; }\n }\n System.out.println(debt);\n }\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int debt = 100000;
for(int i=0;i<n;i++){
debt += debt*0.05;
if(debt%1000!=0){ debt = debt/1000*1000+1000; }
}
System.out.println(debt);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
2,
0,
13,
4,
18,
13,
17,
40,
4,
18,
13,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
85,
11
],
[
85,
12
],
[
12,
13
],
[
12,
14
],
[
85,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
24,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
37,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
44,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
37,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
15,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n static int debt = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n static int debt = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }\n }\n}",
"Main",
"static int debt = 100000;",
"debt",
"100000",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = \"\";",
"line",
"\"\"",
"while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }",
"(line = br.readLine()) != null && !line.isEmpty()",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"!line.isEmpty()",
"line.isEmpty()",
"line.isEmpty",
"line",
"{\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }",
"int w = Integer.parseInt(line);",
"w",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < w",
"i",
"w",
"i++",
"i++",
"i",
"{\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }",
"{\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }",
"debt *= 1.05",
"debt",
"1.05",
"if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }",
"debt % 1000 > 0",
"debt % 1000",
"debt",
"1000",
"0",
"{\n debt = debt - (debt % 1000) + 1000;\n }",
"debt = debt - (debt % 1000) + 1000",
"debt",
"debt - (debt % 1000) + 1000",
"debt - (debt % 1000)",
"debt",
"(debt % 1000)",
"debt",
"1000",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main {\n\n static int debt = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }\n }\n}",
"public class Main {\n\n static int debt = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n int w = Integer.parseInt(line);\n for (int i = 0; i < w; i++) {\n debt *= 1.05;\n if (debt % 1000 > 0) {\n debt = debt - (debt % 1000) + 1000;\n }\n }\n System.out.println(debt);\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static int debt = 100000;
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while ((line = br.readLine()) != null && !line.isEmpty()) {
int w = Integer.parseInt(line);
for (int i = 0; i < w; i++) {
debt *= 1.05;
if (debt % 1000 > 0) {
debt = debt - (debt % 1000) + 1000;
}
}
System.out.println(debt);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
41,
13,
20,
0,
13,
4,
18,
4,
18,
13,
17,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
66,
8
],
[
66,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
9,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] | [
"import java.util.*;\nimport java.math.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble money = 100.00;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.println((int)money*1000);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble money = 100.00;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.println((int)money*1000);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble money = 100.00;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.println((int)money*1000);\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble money = 100.00;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.println((int)money*1000);\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"double money = 100.00;",
"money",
"100.00",
"for(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}",
"{\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}",
"money = money*1.05",
"money",
"money*1.05",
"money",
"1.05",
"BigDecimal tmp = new BigDecimal(money);",
"tmp",
"new BigDecimal(money)",
"money = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue()",
"money",
"tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue()",
"tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue",
"tmp.setScale(0,BigDecimal.ROUND_UP)",
"tmp.setScale",
"tmp",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"System.out.println((int)money*1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)money*1000",
"(int)money",
"1000",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble money = 100.00;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.println((int)money*1000);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tdouble money = 100.00;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tmoney = money*1.05;\n\t\t\tBigDecimal tmp = new BigDecimal(money);\n\t\t\tmoney = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();\n\t\t}\n\t\tSystem.out.println((int)money*1000);\n\t}\n}",
"Main"
] | import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int n = in.nextInt();
double money = 100.00;
for(int i=0; i<n; i++){
money = money*1.05;
BigDecimal tmp = new BigDecimal(money);
money = tmp.setScale(0,BigDecimal.ROUND_UP).doubleValue();
}
System.out.println((int)money*1000);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
41,
13,
2,
13,
17,
0,
13,
4,
18,
13,
13,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
54,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] | [
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint week = sc.nextInt();\n\t\tdouble debt = 100000;\n\t\tfor(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%.0f\",debt);\nSystem.out.println();\n\t\tsc.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint week = sc.nextInt();\n\t\tdouble debt = 100000;\n\t\tfor(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%.0f\",debt);\nSystem.out.println();\n\t\tsc.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint week = sc.nextInt();\n\t\tdouble debt = 100000;\n\t\tfor(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%.0f\",debt);\nSystem.out.println();\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint week = sc.nextInt();\n\t\tdouble debt = 100000;\n\t\tfor(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%.0f\",debt);\nSystem.out.println();\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int week = sc.nextInt();",
"week",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double debt = 100000;",
"debt",
"100000",
"for(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}",
"{\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}",
"debt = debt * 1.05",
"debt",
"debt * 1.05",
"debt",
"1.05",
"double a = debt/1000;",
"a",
"debt/1000",
"debt",
"1000",
"a = Math.ceil(a)",
"a",
"Math.ceil(a)",
"Math.ceil",
"Math",
"a",
"debt = a * 1000",
"debt",
"a * 1000",
"a",
"1000",
"System.out.printf(\"%.0f\",debt)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.0f\"",
"debt",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint week = sc.nextInt();\n\t\tdouble debt = 100000;\n\t\tfor(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%.0f\",debt);\nSystem.out.println();\n\t\tsc.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint week = sc.nextInt();\n\t\tdouble debt = 100000;\n\t\tfor(int i = 0 ; i < week ; i++){\n\t\t\tdebt = debt * 1.05;\n\t\t\tdouble a = debt/1000;\n\t\t\ta = Math.ceil(a);\n\t\t\tdebt = a * 1000;\n\t\t}\n\n\t\tSystem.out.printf(\"%.0f\",debt);\nSystem.out.println();\n\t\tsc.close();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int week = sc.nextInt();
double debt = 100000;
for(int i = 0 ; i < week ; i++){
debt = debt * 1.05;
double a = debt/1000;
a = Math.ceil(a);
debt = a * 1000;
}
System.out.printf("%.0f",debt);
System.out.println();
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
30,
0,
13,
2,
2,
13,
17,
17,
40,
13,
29,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
6,
32
],
[
32,
33
],
[
4,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
47,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
41,
71
],
[
71,
72
],
[
36,
73
],
[
73,
74
],
[
34,
75
],
[
75,
76
],
[
34,
77
],
[
77,
78
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint Debt = 100000;\n\t\tDebt= ratecal(N,Debt);\n\t\tSystem.out.println(Debt);\n\t}\n\n\tpublic static int ratecal(int N, int Debt ){\n\t\t\n\t\twhile(N > 0){\n\t\t\tDebt = (int)(Debt * 1.05);\n\t\t\tif(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}\n\t\t\tN--;\n\t\t}\n\t\t\n\t\treturn Debt;\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint Debt = 100000;\n\t\tDebt= ratecal(N,Debt);\n\t\tSystem.out.println(Debt);\n\t}\n\n\tpublic static int ratecal(int N, int Debt ){\n\t\t\n\t\twhile(N > 0){\n\t\t\tDebt = (int)(Debt * 1.05);\n\t\t\tif(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}\n\t\t\tN--;\n\t\t}\n\t\t\n\t\treturn Debt;\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint Debt = 100000;\n\t\tDebt= ratecal(N,Debt);\n\t\tSystem.out.println(Debt);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint Debt = 100000;\n\t\tDebt= ratecal(N,Debt);\n\t\tSystem.out.println(Debt);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int Debt = 100000;",
"Debt",
"100000",
"Debt= ratecal(N,Debt)",
"Debt",
"ratecal(N,Debt)",
"ratecal",
"N",
"Debt",
"System.out.println(Debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"Debt",
"String[] args",
"args",
"public static int ratecal(int N, int Debt ){\n\t\t\n\t\twhile(N > 0){\n\t\t\tDebt = (int)(Debt * 1.05);\n\t\t\tif(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}\n\t\t\tN--;\n\t\t}\n\t\t\n\t\treturn Debt;\n\t}",
"ratecal",
"{\n\t\t\n\t\twhile(N > 0){\n\t\t\tDebt = (int)(Debt * 1.05);\n\t\t\tif(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}\n\t\t\tN--;\n\t\t}\n\t\t\n\t\treturn Debt;\n\t}",
"while(N > 0){\n\t\t\tDebt = (int)(Debt * 1.05);\n\t\t\tif(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}\n\t\t\tN--;\n\t\t}",
"N > 0",
"N",
"0",
"{\n\t\t\tDebt = (int)(Debt * 1.05);\n\t\t\tif(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}\n\t\t\tN--;\n\t\t}",
"Debt = (int)(Debt * 1.05)",
"Debt",
"(int)(Debt * 1.05)",
"Debt",
"1.05",
"if(Debt % 1000 > 0 ){\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}",
"Debt % 1000 > 0",
"Debt % 1000",
"Debt",
"1000",
"0",
"{\n\t\t\t\tDebt = ((Debt/1000) + 1) * 1000;\n\t\t\t}",
"Debt = ((Debt/1000) + 1) * 1000",
"Debt",
"((Debt/1000) + 1) * 1000",
"((Debt/1000) + 1)",
"(Debt/1000)",
"Debt",
"1000",
"1",
"1000",
"{\n\t\t\t\tDebt = (Debt/1000) * 1000;\n\t\t\t}",
"Debt = (Debt/1000) * 1000",
"Debt",
"(Debt/1000) * 1000",
"(Debt/1000)",
"Debt",
"1000",
"1000",
"N--",
"N",
"return Debt;",
"Debt",
"int N",
"N",
"int Debt",
"Debt"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int Debt = 100000;
Debt= ratecal(N,Debt);
System.out.println(Debt);
}
public static int ratecal(int N, int Debt ){
while(N > 0){
Debt = (int)(Debt * 1.05);
if(Debt % 1000 > 0 ){
Debt = ((Debt/1000) + 1) * 1000;
}
else {
Debt = (Debt/1000) * 1000;
}
N--;
}
return Debt;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
13,
41,
13,
17,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
2,
4,
18,
13,
2,
4,
18,
13,
2,
2,
13,
17,
17,
17,
17,
0,
13,
13,
40,
13,
14,
2,
13,
17,
30,
29,
4,
13,
13,
13,
30,
29,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
28,
35
],
[
35,
36
],
[
35,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
12,
47
],
[
47,
48
],
[
10,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
58,
67
],
[
54,
68
],
[
51,
69
],
[
69,
70
],
[
69,
71
],
[
51,
72
],
[
72,
73
],
[
51,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
49,
87
],
[
87,
88
],
[
49,
89
],
[
89,
90
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile((str=br.readLine())!=null)\n\t\t{\n\t\t\tint n=Integer.parseInt(str);\n\t\t\tint debt=100000;\n\t\t\tSystem.out.println(debt(debt,n));\n\n\n\t\t}\n\t}\n\n\tstatic int debt(int debt,int n)\n\t{\n\t\tint add=(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000;\n\t\tdebt+=add;\n\t\tn--;\n\t\tif(n>0){return debt(debt,n);}\n\t\telse{return debt;}\n\t}\n\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile((str=br.readLine())!=null)\n\t\t{\n\t\t\tint n=Integer.parseInt(str);\n\t\t\tint debt=100000;\n\t\t\tSystem.out.println(debt(debt,n));\n\n\n\t\t}\n\t}\n\n\tstatic int debt(int debt,int n)\n\t{\n\t\tint add=(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000;\n\t\tdebt+=add;\n\t\tn--;\n\t\tif(n>0){return debt(debt,n);}\n\t\telse{return debt;}\n\t}\n\n\n\n}",
"Main",
"public static void main(String[] args)throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile((str=br.readLine())!=null)\n\t\t{\n\t\t\tint n=Integer.parseInt(str);\n\t\t\tint debt=100000;\n\t\t\tSystem.out.println(debt(debt,n));\n\n\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\twhile((str=br.readLine())!=null)\n\t\t{\n\t\t\tint n=Integer.parseInt(str);\n\t\t\tint debt=100000;\n\t\t\tSystem.out.println(debt(debt,n));\n\n\n\t\t}\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"while((str=br.readLine())!=null)\n\t\t{\n\t\t\tint n=Integer.parseInt(str);\n\t\t\tint debt=100000;\n\t\t\tSystem.out.println(debt(debt,n));\n\n\n\t\t}",
"(str=br.readLine())!=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tint n=Integer.parseInt(str);\n\t\t\tint debt=100000;\n\t\t\tSystem.out.println(debt(debt,n));\n\n\n\t\t}",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int debt=100000;",
"debt",
"100000",
"System.out.println(debt(debt,n))",
"System.out.println",
"System.out",
"System",
"System.out",
"debt(debt,n)",
"debt",
"debt",
"n",
"String[] args",
"args",
"static int debt(int debt,int n)\n\t{\n\t\tint add=(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000;\n\t\tdebt+=add;\n\t\tn--;\n\t\tif(n>0){return debt(debt,n);}\n\t\telse{return debt;}\n\t}",
"debt",
"{\n\t\tint add=(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000;\n\t\tdebt+=add;\n\t\tn--;\n\t\tif(n>0){return debt(debt,n);}\n\t\telse{return debt;}\n\t}",
"int add=(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000;",
"add",
"(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000",
"(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)",
"Math.ceil",
"Math",
"((int)Math.round(debt*5.0/100.0))/1000.0",
"((int)Math.round(debt*5.0/100.0))",
"Math.round",
"Math",
"debt*5.0/100.0",
"debt*5.0",
"debt",
"5.0",
"100.0",
"1000.0",
"1000",
"debt+=add",
"debt",
"add",
"n--",
"n",
"if(n>0){return debt(debt,n);}\n\t\telse{return debt;}",
"n>0",
"n",
"0",
"{return debt(debt,n);}",
"return debt(debt,n);",
"debt(debt,n)",
"debt",
"debt",
"n",
"{return debt;}",
"return debt;",
"debt",
"int debt",
"debt",
"int n",
"n"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main
{
public static void main(String[] args)throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
while((str=br.readLine())!=null)
{
int n=Integer.parseInt(str);
int debt=100000;
System.out.println(debt(debt,n));
}
}
static int debt(int debt,int n)
{
int add=(int)Math.ceil(((int)Math.round(debt*5.0/100.0))/1000.0)*1000;
debt+=add;
n--;
if(n>0){return debt(debt,n);}
else{return debt;}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
13,
4,
18,
13,
20,
17,
18,
13,
13,
0,
13,
4,
18,
4,
18,
4,
18,
13,
13,
17,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
90,
17
],
[
90,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
20,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
53,
62
],
[
53,
63
],
[
63,
64
],
[
63,
65
],
[
50,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
70,
76
],
[
70,
77
],
[
77,
78
],
[
77,
79
],
[
68,
80
],
[
20,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
18,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\npublic class Main {\n\n public static void main( String[] args ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n BigDecimal cost = new BigDecimal(100000);\n BigDecimal thousand = new BigDecimal(\"1000\");\n \n for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }\n System.out.println(cost);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.RoundingMode;",
"RoundingMode",
"java.math",
"public class Main {\n\n public static void main( String[] args ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n BigDecimal cost = new BigDecimal(100000);\n BigDecimal thousand = new BigDecimal(\"1000\");\n \n for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }\n System.out.println(cost);\n }\n}",
"Main",
"public static void main( String[] args ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n BigDecimal cost = new BigDecimal(100000);\n BigDecimal thousand = new BigDecimal(\"1000\");\n \n for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }\n System.out.println(cost);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n BigDecimal cost = new BigDecimal(100000);\n BigDecimal thousand = new BigDecimal(\"1000\");\n \n for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }\n System.out.println(cost);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"BigDecimal cost = new BigDecimal(100000);",
"cost",
"new BigDecimal(100000)",
"BigDecimal thousand = new BigDecimal(\"1000\");",
"thousand",
"new BigDecimal(\"1000\")",
"for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }",
"{\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }",
"cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR)",
"cost",
"cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR)",
"cost.add(cost.multiply(new BigDecimal(0.05))).setScale",
"cost.add(cost.multiply(new BigDecimal(0.05)))",
"cost.add",
"cost",
"cost.multiply(new BigDecimal(0.05))",
"cost.multiply",
"cost",
"new BigDecimal(0.05)",
"0",
"RoundingMode.FLOOR",
"RoundingMode",
"RoundingMode.FLOOR",
"cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand)",
"cost",
"cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand)",
"cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply",
"cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)",
"cost.divide(thousand)\n .setScale",
"cost.divide(thousand)",
"cost.divide",
"cost",
"thousand",
"0",
"RoundingMode.CEILING",
"RoundingMode",
"RoundingMode.CEILING",
"thousand",
"System.out.println(cost)",
"System.out.println",
"System.out",
"System",
"System.out",
"cost",
"String[] args",
"args",
"public class Main {\n\n public static void main( String[] args ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n BigDecimal cost = new BigDecimal(100000);\n BigDecimal thousand = new BigDecimal(\"1000\");\n \n for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }\n System.out.println(cost);\n }\n}",
"public class Main {\n\n public static void main( String[] args ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n BigDecimal cost = new BigDecimal(100000);\n BigDecimal thousand = new BigDecimal(\"1000\");\n \n for (int i = 0; i < n; i++) {\n cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);\n cost = cost.divide(thousand)\n .setScale(0, RoundingMode.CEILING)\n .multiply(thousand);\n }\n System.out.println(cost);\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.RoundingMode;
public class Main {
public static void main( String[] args ) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
BigDecimal cost = new BigDecimal(100000);
BigDecimal thousand = new BigDecimal("1000");
for (int i = 0; i < n; i++) {
cost = cost.add(cost.multiply(new BigDecimal(0.05))).setScale(0, RoundingMode.FLOOR);
cost = cost.divide(thousand)
.setScale(0, RoundingMode.CEILING)
.multiply(thousand);
}
System.out.println(cost);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
17,
4,
18,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n // System.out.println(n);\n int k = 100000;\n for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }\n System.out.println(k);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n // System.out.println(n);\n int k = 100000;\n for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }\n System.out.println(k);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n // System.out.println(n);\n int k = 100000;\n for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }\n System.out.println(k);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n // System.out.println(n);\n int k = 100000;\n for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }\n System.out.println(k);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int k = 100000;",
"k",
"100000",
"for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }",
"{\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }",
"k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000)",
"k",
"1000 * (int)Math.ceil(((double) k) * 1.05 / 1000)",
"1000",
"(int)Math.ceil(((double) k) * 1.05 / 1000)",
"Math.ceil",
"Math",
"((double) k) * 1.05 / 1000",
"((double) k) * 1.05",
"((double) k)",
"1.05",
"1000",
"System.out.println(k)",
"System.out.println",
"System.out",
"System",
"System.out",
"k",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n // System.out.println(n);\n int k = 100000;\n for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }\n System.out.println(k);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n // System.out.println(n);\n int k = 100000;\n for (int i = 0; i < n; i++) {\n k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);\n }\n System.out.println(k);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
// System.out.println(n);
int k = 100000;
for (int i = 0; i < n; i++) {
k = 1000 * (int)Math.ceil(((double) k) * 1.05 / 1000);
}
System.out.println(k);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
41,
13,
20,
0,
13,
2,
4,
18,
4,
18,
13,
17,
18,
13,
13,
17,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
85,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
9,
32
],
[
32,
33
],
[
85,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
67,
77
],
[
36,
78
],
[
78,
79
],
[
34,
80
],
[
80,
81
],
[
34,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble sum = 100000;\n\n\t\tdouble n = sc.nextDouble();\n\n\t\tSystem.out.println((int)solve(n, sum));\n\t}\n\n\tpublic static double solve(double a, double b){\n\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble sum = 100000;\n\n\t\tdouble n = sc.nextDouble();\n\n\t\tSystem.out.println((int)solve(n, sum));\n\t}\n\n\tpublic static double solve(double a, double b){\n\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble sum = 100000;\n\n\t\tdouble n = sc.nextDouble();\n\n\t\tSystem.out.println((int)solve(n, sum));\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble sum = 100000;\n\n\t\tdouble n = sc.nextDouble();\n\n\t\tSystem.out.println((int)solve(n, sum));\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double sum = 100000;",
"sum",
"100000",
"double n = sc.nextDouble();",
"n",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"System.out.println((int)solve(n, sum))",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)solve(n, sum)",
"solve",
"n",
"sum",
"String[] args",
"args",
"public static double solve(double a, double b){\n\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}",
"solve",
"{\n\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}",
"for(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}",
"b = b * 1.05",
"b",
"b * 1.05",
"b",
"1.05",
"if((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}",
"(b % 1000) != 0",
"(b % 1000)",
"b",
"1000",
"0",
"{\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}",
"BigDecimal bd = new BigDecimal(b / 1000);",
"bd",
"new BigDecimal(b / 1000)",
"b = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000",
"b",
"(bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000",
"(bd.setScale(0, BigDecimal.ROUND_UP).doubleValue())",
"bd.setScale(0, BigDecimal.ROUND_UP).doubleValue",
"bd.setScale(0, BigDecimal.ROUND_UP)",
"bd.setScale",
"bd",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"1000",
"return b;",
"b",
"double a",
"a",
"double b",
"b",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble sum = 100000;\n\n\t\tdouble n = sc.nextDouble();\n\n\t\tSystem.out.println((int)solve(n, sum));\n\t}\n\n\tpublic static double solve(double a, double b){\n\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble sum = 100000;\n\n\t\tdouble n = sc.nextDouble();\n\n\t\tSystem.out.println((int)solve(n, sum));\n\t}\n\n\tpublic static double solve(double a, double b){\n\n\t\tfor(int i = 0; i < a; i++){\n\t\t\tb = b * 1.05;\n\t\t\t\n\t\t\tif((b % 1000) != 0){\n\t\t\t\tBigDecimal bd = new BigDecimal(b / 1000);\n\t\t\t\tb = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}\n}",
"Main"
] | import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double sum = 100000;
double n = sc.nextDouble();
System.out.println((int)solve(n, sum));
}
public static double solve(double a, double b){
for(int i = 0; i < a; i++){
b = b * 1.05;
if((b % 1000) != 0){
BigDecimal bd = new BigDecimal(b / 1000);
b = (bd.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000;
}
}
return b;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
35,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int debt = 100000;\n int weeks = sc.nextInt();\n for (int i = 0; i < weeks; i++) {\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }\n\n System.out.println(debt);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int debt = 100000;\n int weeks = sc.nextInt();\n for (int i = 0; i < weeks; i++) {\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }\n\n System.out.println(debt);\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int debt = 100000;\n int weeks = sc.nextInt();\n for (int i = 0; i < weeks; i++) {\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }\n\n System.out.println(debt);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int debt = 100000;\n int weeks = sc.nextInt();\n for (int i = 0; i < weeks; i++) {\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }\n\n System.out.println(debt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int debt = 100000;",
"debt",
"100000",
"int weeks = sc.nextInt();",
"weeks",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < weeks; i++) {\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }",
"{\n debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);\n }",
"debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000)",
"debt",
"(int)(Math.ceil(debt*1.05 / 1000) * 1000)",
"Math.ceil(debt*1.05 / 1000)",
"Math.ceil",
"Math",
"debt*1.05 / 1000",
"debt*1.05",
"debt",
"1.05",
"1000",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String args[]",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int debt = 100000;
int weeks = sc.nextInt();
for (int i = 0; i < weeks; i++) {
debt = (int)(Math.ceil(debt*1.05 / 1000) * 1000);
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
8,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
17,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
38,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int amount=100000;\n for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }\n System.out.println(amount);\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int amount=100000;\n for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }\n System.out.println(amount);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int amount=100000;\n for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }\n System.out.println(amount);\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int amount=100000;\n for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }\n System.out.println(amount);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int amount=100000;",
"amount",
"100000",
"for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }",
"{\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }",
"amount*=1.05",
"amount",
"1.05",
"amount=amount%1000>0?(amount/1000+1)*1000:amount",
"amount",
"amount%1000>0?(amount/1000+1)*1000:amount",
"amount%1000>0",
"amount%1000",
"amount",
"1000",
"0",
"(amount/1000+1)*1000",
"(amount/1000+1)",
"amount/1000",
"amount",
"1000",
"1",
"1000",
"amount",
"System.out.println(amount)",
"System.out.println",
"System.out",
"System",
"System.out",
"amount",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int amount=100000;\n for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }\n System.out.println(amount);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int amount=100000;\n for(int i=0;i<n;i++) {\n amount*=1.05;\n amount=amount%1000>0?(amount/1000+1)*1000:amount;\n }\n System.out.println(amount);\n sc.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int amount=100000;
for(int i=0;i<n;i++) {
amount*=1.05;
amount=amount%1000>0?(amount/1000+1)*1000:amount;
}
System.out.println(amount);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
13,
0,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
40,
17,
18,
13,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
85,
8
],
[
85,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
44,
58
],
[
58,
59
],
[
58,
60
],
[
44,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
44,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
11,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
9,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"\nimport java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint num = 100000;\n\t\tint syuu = 0;\n\t\tdouble goukei = 0;\n\t\tdouble risi = 0;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tsyuu = scan.nextInt();\n\t\tfor (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}\n\t\t//BigDecimal bd = new BigDecimal(num);\n\t\t//bd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t//num = (int)bd.doubleValue();\n\t\tSystem.out.println(num);\n\t\t\n\t}\n\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint num = 100000;\n\t\tint syuu = 0;\n\t\tdouble goukei = 0;\n\t\tdouble risi = 0;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tsyuu = scan.nextInt();\n\t\tfor (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}\n\t\t//BigDecimal bd = new BigDecimal(num);\n\t\t//bd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t//num = (int)bd.doubleValue();\n\t\tSystem.out.println(num);\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint num = 100000;\n\t\tint syuu = 0;\n\t\tdouble goukei = 0;\n\t\tdouble risi = 0;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tsyuu = scan.nextInt();\n\t\tfor (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}\n\t\t//BigDecimal bd = new BigDecimal(num);\n\t\t//bd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t//num = (int)bd.doubleValue();\n\t\tSystem.out.println(num);\n\t\t\n\t}",
"main",
"{\n\t\tint num = 100000;\n\t\tint syuu = 0;\n\t\tdouble goukei = 0;\n\t\tdouble risi = 0;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tsyuu = scan.nextInt();\n\t\tfor (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}\n\t\t//BigDecimal bd = new BigDecimal(num);\n\t\t//bd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t//num = (int)bd.doubleValue();\n\t\tSystem.out.println(num);\n\t\t\n\t}",
"int num = 100000;",
"num",
"100000",
"int syuu = 0;",
"syuu",
"0",
"double goukei = 0;",
"goukei",
"0",
"double risi = 0;",
"risi",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"syuu = scan.nextInt()",
"syuu",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < syuu",
"i",
"syuu",
"i++",
"i++",
"i",
"{\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}",
"{\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}",
"risi = num * 0.05",
"risi",
"num * 0.05",
"num",
"0.05",
"num = num + (int)risi",
"num",
"num + (int)risi",
"num",
"(int)risi",
"risi = 0",
"risi",
"0",
"BigDecimal bd = new BigDecimal(num);",
"bd",
"new BigDecimal(num)",
"bd = bd.setScale(-3, BigDecimal.ROUND_UP)",
"bd",
"bd.setScale(-3, BigDecimal.ROUND_UP)",
"bd.setScale",
"bd",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"num = (int)bd.doubleValue()",
"num",
"(int)bd.doubleValue()",
"bd.doubleValue",
"bd",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint num = 100000;\n\t\tint syuu = 0;\n\t\tdouble goukei = 0;\n\t\tdouble risi = 0;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tsyuu = scan.nextInt();\n\t\tfor (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}\n\t\t//BigDecimal bd = new BigDecimal(num);\n\t\t//bd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t//num = (int)bd.doubleValue();\n\t\tSystem.out.println(num);\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint num = 100000;\n\t\tint syuu = 0;\n\t\tdouble goukei = 0;\n\t\tdouble risi = 0;\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tsyuu = scan.nextInt();\n\t\tfor (int i = 0 ; i < syuu ; i++){\n\t\t\trisi = num * 0.05;\n\t\t\tnum = num + (int)risi;\n\t\t\trisi = 0;\n\t\t\tBigDecimal bd = new BigDecimal(num);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tnum = (int)bd.doubleValue();\n\t\t}\n\t\t//BigDecimal bd = new BigDecimal(num);\n\t\t//bd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t//num = (int)bd.doubleValue();\n\t\tSystem.out.println(num);\n\t\t\n\t}\n\n}",
"Main"
] |
import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int num = 100000;
int syuu = 0;
double goukei = 0;
double risi = 0;
Scanner scan = new Scanner(System.in);
syuu = scan.nextInt();
for (int i = 0 ; i < syuu ; i++){
risi = num * 0.05;
num = num + (int)risi;
risi = 0;
BigDecimal bd = new BigDecimal(num);
bd = bd.setScale(-3, BigDecimal.ROUND_UP);
num = (int)bd.doubleValue();
}
//BigDecimal bd = new BigDecimal(num);
//bd = bd.setScale(-3, BigDecimal.ROUND_UP);
//num = (int)bd.doubleValue();
System.out.println(num);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
0,
13,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
41,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
]
] | [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n\tint sum=100000,add,k;\n\tScanner s = new Scanner(System.in);\n\n\tk=s.nextInt();\n\tfor(int i=0;i<k;i++){\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}\n\n\tSystem.out.println( sum );\n\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n\tint sum=100000,add,k;\n\tScanner s = new Scanner(System.in);\n\n\tk=s.nextInt();\n\tfor(int i=0;i<k;i++){\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}\n\n\tSystem.out.println( sum );\n\n }\n}",
"Main",
"public static void main(String[] args){\n\tint sum=100000,add,k;\n\tScanner s = new Scanner(System.in);\n\n\tk=s.nextInt();\n\tfor(int i=0;i<k;i++){\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}\n\n\tSystem.out.println( sum );\n\n }",
"main",
"{\n\tint sum=100000,add,k;\n\tScanner s = new Scanner(System.in);\n\n\tk=s.nextInt();\n\tfor(int i=0;i<k;i++){\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}\n\n\tSystem.out.println( sum );\n\n }",
"int sum=100000",
"sum",
"100000",
"add",
"add",
"k;",
"k",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"k=s.nextInt()",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i=0;i<k;i++){\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}",
"{\n\t sum*=1.05;\n\t if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }\n\t}",
"sum*=1.05",
"sum",
"1.05",
"if( (add=sum%1000)>0 ){\n\t\tsum=sum-add+1000;\n\t }",
"(add=sum%1000)>0",
"(add=sum%1000)",
"add",
"sum%1000",
"sum",
"1000",
"0",
"{\n\t\tsum=sum-add+1000;\n\t }",
"sum=sum-add+1000",
"sum",
"sum-add+1000",
"sum-add",
"sum",
"add",
"1000",
"System.out.println( sum )",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
int sum=100000,add,k;
Scanner s = new Scanner(System.in);
k=s.nextInt();
for(int i=0;i<k;i++){
sum*=1.05;
if( (add=sum%1000)>0 ){
sum=sum-add+1000;
}
}
System.out.println( sum );
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
18,
13,
13,
2,
4,
13,
4,
18,
20,
17,
23,
13,
12,
13,
30,
29,
8,
2,
13,
17,
17,
4,
18,
13,
2,
4,
13,
2,
13,
17,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
9,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
6,
21
],
[
21,
22
],
[
4,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
23,
42
],
[
42,
43
]
] | [
"import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*1000);}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}",
"import java.util.*;",
"util.*",
"java",
"class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*1000);}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}",
"Main",
"public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*1000);}",
"main",
"{System.out.println(f(new Scanner(System.in).nextInt())*1000);}",
"System.out.println(f(new Scanner(System.in).nextInt())*1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"f(new Scanner(System.in).nextInt())*1000",
"f(new Scanner(System.in).nextInt())",
"f",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"1000",
"String[]a",
"a",
"static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}",
"f",
"{return n<1?100:(int)Math.ceil(f(n-1)*1.05);}",
"return n<1?100:(int)Math.ceil(f(n-1)*1.05);",
"n<1?100:(int)Math.ceil(f(n-1)*1.05)",
"n<1",
"n",
"1",
"100",
"(int)Math.ceil(f(n-1)*1.05)",
"Math.ceil",
"Math",
"f(n-1)*1.05",
"f(n-1)",
"f",
"n-1",
"n",
"1",
"1.05",
"int n",
"n"
] | import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*1000);}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
44,
46
],
[
40,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble n = sc.nextInt();\n\t\tdouble gp = 100000.0;\n\n\t\tfor (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}\n\n\n\t\tSystem.out.println((int) gp);\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble n = sc.nextInt();\n\t\tdouble gp = 100000.0;\n\n\t\tfor (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}\n\n\n\t\tSystem.out.println((int) gp);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble n = sc.nextInt();\n\t\tdouble gp = 100000.0;\n\n\t\tfor (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}\n\n\n\t\tSystem.out.println((int) gp);\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble n = sc.nextInt();\n\t\tdouble gp = 100000.0;\n\n\t\tfor (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}\n\n\n\t\tSystem.out.println((int) gp);\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double gp = 100000.0;",
"gp",
"100000.0",
"for (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < (int) n",
"i",
"(int) n",
"i++",
"i++",
"i",
"{\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}",
"{\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}",
"gp += gp * 0.05",
"gp",
"gp * 0.05",
"gp",
"0.05",
"gp = (Math.ceil(gp / 1000)) * 1000",
"gp",
"(Math.ceil(gp / 1000)) * 1000",
"(Math.ceil(gp / 1000))",
"Math.ceil",
"Math",
"gp / 1000",
"gp",
"1000",
"1000",
"System.out.println((int) gp)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) gp",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble n = sc.nextInt();\n\t\tdouble gp = 100000.0;\n\n\t\tfor (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}\n\n\n\t\tSystem.out.println((int) gp);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble n = sc.nextInt();\n\t\tdouble gp = 100000.0;\n\n\t\tfor (int i = 0; i < (int) n; i++) {\n\t\t\tgp += gp * 0.05;\n\t\t\tgp = (Math.ceil(gp / 1000)) * 1000;\n\t\t}\n\n\n\t\tSystem.out.println((int) gp);\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double n = sc.nextInt();
double gp = 100000.0;
for (int i = 0; i < (int) n; i++) {
gp += gp * 0.05;
gp = (Math.ceil(gp / 1000)) * 1000;
}
System.out.println((int) gp);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
17,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
16,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
37,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
47,
49
],
[
16,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
6,
56
],
[
56,
57
]
] | [
"import java.util.Scanner;\n\nclass Main{\t\n\t\n\tpublic static void main (String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint syakkin = 100000;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(syakkin);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\t\n\t\n\tpublic static void main (String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint syakkin = 100000;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(syakkin);\n\t\t}\n\t}\n}",
"Main",
"public static void main (String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint syakkin = 100000;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(syakkin);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint syakkin = 100000;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(syakkin);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while(sc.hasNext()){\n\t\t\tint n = sc.nextInt();\n\t\t\tint syakkin = 100000;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(syakkin);\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tint n = sc.nextInt();\n\t\t\tint syakkin = 100000;\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(syakkin);\n\t\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int syakkin = 100000;",
"syakkin",
"100000",
"for(int i=0;i<n;i++){\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tsyakkin *= 1.05;\n\t\t\t\tsyakkin += 999;\n\t\t\t\tsyakkin /= 1000;\n\t\t\t\tsyakkin *= 1000;\n\t\t\t\t\n\t\t\t}",
"syakkin *= 1.05",
"syakkin",
"1.05",
"syakkin += 999",
"syakkin",
"999",
"syakkin /= 1000",
"syakkin",
"1000",
"syakkin *= 1000",
"syakkin",
"1000",
"System.out.println(syakkin)",
"System.out.println",
"System.out",
"System",
"System.out",
"syakkin",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int n = sc.nextInt();
int syakkin = 100000;
for(int i=0;i<n;i++){
syakkin *= 1.05;
syakkin += 999;
syakkin /= 1000;
syakkin *= 1000;
}
System.out.println(syakkin);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
17,
0,
13,
2,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
32,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n double debt = 100000;\n for (int i = 1; i <= n; i++) {\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }\n System.out.println((int)debt);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n double debt = 100000;\n for (int i = 1; i <= n; i++) {\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }\n System.out.println((int)debt);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n double debt = 100000;\n for (int i = 1; i <= n; i++) {\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }\n System.out.println((int)debt);\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n double debt = 100000;\n for (int i = 1; i <= n; i++) {\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }\n System.out.println((int)debt);\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"double debt = 100000;",
"debt",
"100000",
"for (int i = 1; i <= n; i++) {\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }",
"{\n debt = (debt * 1.05) / 1000;\n debt = Math.ceil(debt) * 1000;\n }",
"debt = (debt * 1.05) / 1000",
"debt",
"(debt * 1.05) / 1000",
"(debt * 1.05)",
"debt",
"1.05",
"1000",
"debt = Math.ceil(debt) * 1000",
"debt",
"Math.ceil(debt) * 1000",
"Math.ceil(debt)",
"Math.ceil",
"Math",
"debt",
"1000",
"System.out.println((int)debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)debt",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
double debt = 100000;
for (int i = 1; i <= n; i++) {
debt = (debt * 1.05) / 1000;
debt = Math.ceil(debt) * 1000;
}
System.out.println((int)debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint money = 100000;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint money = 100000;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint money = 100000;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint money = 100000;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"int n = new Scanner(System.in).nextInt();",
"n",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"int money = 100000;",
"money",
"100000",
"for(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}",
"money *= 1.05",
"money",
"1.05",
"money = (money + 999) /1000 * 1000",
"money",
"(money + 999) /1000 * 1000",
"(money + 999) /1000",
"(money + 999)",
"money",
"999",
"1000",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint money = 100000;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint money = 100000;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money + 999) /1000 * 1000; \n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
int n = new Scanner(System.in).nextInt();
int money = 100000;
for(int i = 0;i<n;i++){
money *= 1.05;
money = (money + 999) /1000 * 1000;
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
12,
13,
30,
4,
18,
13,
4,
18,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
41,
13,
2,
13,
17,
0,
13,
8,
2,
13,
17,
2,
2,
17,
13,
13,
13,
4,
18,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
94,
8
],
[
94,
9
],
[
9,
10
],
[
94,
11
],
[
11,
12
],
[
94,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
15,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
94,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
94,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
94,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
47,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
79,
88
],
[
47,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
] | [
"import java.util.*;\nimport java.io.*;\npublic class Main {\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}\n\t\tpw.println(m);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}\n\t\tpw.println(m);\n\t}\n}",
"Main",
"Scanner sc;",
"sc",
"PrintWriter pw;",
"pw",
"public static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}",
"main",
"{\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}",
"Main m = new Main();",
"m",
"new Main()",
"m.solve()",
"m.solve",
"m",
"m.close()",
"m.close",
"m",
"String... args",
"args",
"public Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}",
"Main",
"{\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"pw = new PrintWriter(System.out)",
"pw",
"new PrintWriter(System.out)",
"private void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}",
"close",
"{\n\t\tpw.flush();\n\t\tpw.close();\n\t}",
"pw.flush()",
"pw.flush",
"pw",
"pw.close()",
"pw.close",
"pw",
"private void solve() {\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}\n\t\tpw.println(m);\n\t}",
"solve",
"{\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}\n\t\tpw.println(m);\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = 100000;",
"m",
"100000",
"for(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}",
"{\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}",
"m*=1.05f",
"m",
"1.05f",
"int x = m%1000;",
"x",
"m%1000",
"m",
"1000",
"m = x != 0 ? 1000-x+m : m",
"m",
"x != 0 ? 1000-x+m : m",
"x != 0",
"x",
"0",
"1000-x+m",
"1000-x",
"1000",
"x",
"m",
"m",
"pw.println(m)",
"pw.println",
"pw",
"m",
"public class Main {\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}\n\t\tpw.println(m);\n\t}\n}",
"public class Main {\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm*=1.05f;\n\t\t\tint x = m%1000;\n\t\t\tm = x != 0 ? 1000-x+m : m;\n\t\t}\n\t\tpw.println(m);\n\t}\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main {
Scanner sc;
PrintWriter pw;
public static void main(String... args) {
Main m = new Main();
m.solve();
m.close();
}
public Main() {
sc = new Scanner(System.in);
pw = new PrintWriter(System.out);
}
private void close() {
pw.flush();
pw.close();
}
private void solve() {
int n = sc.nextInt();
int m = 100000;
for(int i = 0; i < n; i++) {
m*=1.05f;
int x = m%1000;
m = x != 0 ? 1000-x+m : m;
}
pw.println(m);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
71,
5
],
[
71,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
32,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
8,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] | [
"import java.util.Scanner;\n\npublic class Main \n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint de = 100000;\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}\n\t\tSystem.out.println(de);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main \n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint de = 100000;\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}\n\t\tSystem.out.println(de);\n\t}\n\n}",
"Main",
"public static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint de = 100000;\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}\n\t\tSystem.out.println(de);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint de = 100000;\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}\n\t\tSystem.out.println(de);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int de = 100000;",
"de",
"100000",
"for(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}",
"{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}",
"de = de / 100",
"de",
"de / 100",
"de",
"100",
"de = de * 105",
"de",
"de * 105",
"de",
"105",
"if(de%1000 != 0)\n\t\t\t\tde += 1000;",
"de%1000 != 0",
"de%1000",
"de",
"1000",
"0",
"de += 1000",
"de",
"1000",
"de = de/1000",
"de",
"de/1000",
"de",
"1000",
"de = de*1000",
"de",
"de*1000",
"de",
"1000",
"System.out.println(de)",
"System.out.println",
"System.out",
"System",
"System.out",
"de",
"String arg[]",
"arg",
"public class Main \n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint de = 100000;\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}\n\t\tSystem.out.println(de);\n\t}\n\n}",
"public class Main \n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint de = 100000;\n\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tde = de / 100;\n\t\t\tde = de * 105;\n\t\t\tif(de%1000 != 0)\n\t\t\t\tde += 1000;\n\t\t\tde = de/1000;\n\t\t\tde = de*1000; \n\t\t}\n\t\tSystem.out.println(de);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main
{
public static void main(String arg[])
{
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int de = 100000;
for(int i=0; i<n; i++)
{
de = de / 100;
de = de * 105;
if(de%1000 != 0)
de += 1000;
de = de/1000;
de = de*1000;
}
System.out.println(de);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
8,
2,
2,
13,
17,
17,
13,
2,
2,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
8,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money;\n\t\tint n;\n\n\t\tn = sc.nextInt();\n\t\tmoney = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money;\n\t\tint n;\n\n\t\tn = sc.nextInt();\n\t\tmoney = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money;\n\t\tint n;\n\n\t\tn = sc.nextInt();\n\t\tmoney = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money;\n\t\tint n;\n\n\t\tn = sc.nextInt();\n\t\tmoney = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int money;",
"money",
"int n;",
"n",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"money = 100000",
"money",
"100000",
"for (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}",
"money *= 1.05",
"money",
"1.05",
"money = (money % 1000 == 0) ? money : money - money % 1000 + 1000",
"money",
"(money % 1000 == 0) ? money : money - money % 1000 + 1000",
"(money % 1000 == 0)",
"money % 1000",
"money",
"1000",
"0",
"money",
"money - money % 1000 + 1000",
"money - money % 1000",
"money",
"money % 1000",
"money",
"1000",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money;\n\t\tint n;\n\n\t\tn = sc.nextInt();\n\t\tmoney = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money;\n\t\tint n;\n\n\t\tn = sc.nextInt();\n\t\tmoney = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney *= 1.05;\n\t\t\tmoney = (money % 1000 == 0) ? money : money - money % 1000 + 1000;\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int money;
int n;
n = sc.nextInt();
money = 100000;
for (int i = 0; i < n; i++) {
money *= 1.05;
money = (money % 1000 == 0) ? money : money - money % 1000 + 1000;
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
4,
18,
13,
2,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
70,
11
],
[
70,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
14,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
12,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\t/**\n\t * ?????????????????ยง??????????????????????????ยฐ??ยฃ?????????????????????????\\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????\n\t * ???????\\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????\n *n ?????\\???????????ยจ??????n ??ยฑ????????????????????????????????????????????????????????ยฐ?????????????????????????????????n ??? 100 ??\\?????ยจ????????????\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tInputStreamReader is = new InputStreamReader(System.in); \n BufferedReader br = new BufferedReader(is); \n \n int weekNum = Integer.parseInt(br.readLine());\n \n \n int debt = 100000;\t//????????????\n int roundUpNum =1000;\t//?????????????????ยฐ???\n \n for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }\n System.out.println(debt);\n \n \n \n\t}\n\t\n\t\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\t/**\n\t * ?????????????????ยง??????????????????????????ยฐ??ยฃ?????????????????????????\\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????\n\t * ???????\\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????\n *n ?????\\???????????ยจ??????n ??ยฑ????????????????????????????????????????????????????????ยฐ?????????????????????????????????n ??? 100 ??\\?????ยจ????????????\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tInputStreamReader is = new InputStreamReader(System.in); \n BufferedReader br = new BufferedReader(is); \n \n int weekNum = Integer.parseInt(br.readLine());\n \n \n int debt = 100000;\t//????????????\n int roundUpNum =1000;\t//?????????????????ยฐ???\n \n for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }\n System.out.println(debt);\n \n \n \n\t}\n\t\n\t\n\n}",
"Main",
"/**\n\t * ?????????????????ยง??????????????????????????ยฐ??ยฃ?????????????????????????\\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????\n\t * ???????\\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????\n *n ?????\\???????????ยจ??????n ??ยฑ????????????????????????????????????????????????????????ยฐ?????????????????????????????????n ??? 100 ??\\?????ยจ????????????\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tInputStreamReader is = new InputStreamReader(System.in); \n BufferedReader br = new BufferedReader(is); \n \n int weekNum = Integer.parseInt(br.readLine());\n \n \n int debt = 100000;\t//????????????\n int roundUpNum =1000;\t//?????????????????ยฐ???\n \n for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }\n System.out.println(debt);\n \n \n \n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tInputStreamReader is = new InputStreamReader(System.in); \n BufferedReader br = new BufferedReader(is); \n \n int weekNum = Integer.parseInt(br.readLine());\n \n \n int debt = 100000;\t//????????????\n int roundUpNum =1000;\t//?????????????????ยฐ???\n \n for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }\n System.out.println(debt);\n \n \n \n\t}",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"int weekNum = Integer.parseInt(br.readLine());",
"weekNum",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int debt = 100000;",
"debt",
"100000",
"int roundUpNum =1000;",
"roundUpNum",
"1000",
"for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weekNum",
"i",
"weekNum",
"i++",
"i++",
"i",
"{\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }",
"{\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }",
"debt *= 1.05",
"debt",
"1.05",
"debt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum",
"debt",
"(int)Math.ceil((double)debt / roundUpNum) * roundUpNum",
"(int)Math.ceil((double)debt / roundUpNum)",
"Math.ceil",
"Math",
"(double)debt / roundUpNum",
"(double)debt",
"roundUpNum",
"roundUpNum",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * ?????????????????ยง??????????????????????????ยฐ??ยฃ?????????????????????????\\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????\n\t * ???????\\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????\n *n ?????\\???????????ยจ??????n ??ยฑ????????????????????????????????????????????????????????ยฐ?????????????????????????????????n ??? 100 ??\\?????ยจ????????????\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tInputStreamReader is = new InputStreamReader(System.in); \n BufferedReader br = new BufferedReader(is); \n \n int weekNum = Integer.parseInt(br.readLine());\n \n \n int debt = 100000;\t//????????????\n int roundUpNum =1000;\t//?????????????????ยฐ???\n \n for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }\n System.out.println(debt);\n \n \n \n\t}\n\t\n\t\n\n}",
"public class Main {\n\n\t/**\n\t * ?????????????????ยง??????????????????????????ยฐ??ยฃ?????????????????????????\\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????\n\t * ???????\\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????\n *n ?????\\???????????ยจ??????n ??ยฑ????????????????????????????????????????????????????????ยฐ?????????????????????????????????n ??? 100 ??\\?????ยจ????????????\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tInputStreamReader is = new InputStreamReader(System.in); \n BufferedReader br = new BufferedReader(is); \n \n int weekNum = Integer.parseInt(br.readLine());\n \n \n int debt = 100000;\t//????????????\n int roundUpNum =1000;\t//?????????????????ยฐ???\n \n for(int i = 0;i < weekNum;i++) {\n \tdebt *= 1.05;\n \t//1000???????????????????????????\n \tdebt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;\n }\n System.out.println(debt);\n \n \n \n\t}\n\t\n\t\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
/**
* ?????????????????ยง??????????????????????????ยฐ??ยฃ?????????????????????????\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????
* ???????\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????
*n ?????\???????????ยจ??????n ??ยฑ????????????????????????????????????????????????????????ยฐ?????????????????????????????????n ??? 100 ??\?????ยจ????????????
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO ?????????????????????????????????????????????
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
int weekNum = Integer.parseInt(br.readLine());
int debt = 100000; //????????????
int roundUpNum =1000; //?????????????????ยฐ???
for(int i = 0;i < weekNum;i++) {
debt *= 1.05;
//1000???????????????????????????
debt = (int)Math.ceil((double)debt / roundUpNum) * roundUpNum;
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
13,
20,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
4,
18,
13,
2,
2,
13,
17,
17,
17,
4,
18,
13,
4,
18,
13,
17,
13,
23,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
12,
15
],
[
12,
16
],
[
16,
17
],
[
16,
18
],
[
9,
19
],
[
19,
20
],
[
7,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
29,
31
],
[
23,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
47,
56
],
[
23,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
60,
64
],
[
21,
65
],
[
65,
66
],
[
21,
67
],
[
67,
68
],
[
21,
69
],
[
69,
70
]
] | [
"import java.io.PrintStream;\nimport java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n doit(args, new Scanner(System.in), System.out);\n }\n\n static void doit(String[] args, Scanner scanner, PrintStream out) {\n int n = scanner.nextInt();\n long debt = 100000;\n for (int i = 0; i < n; i++) {\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }\n out.println(String.format(\"%d\", debt));\n }\n}",
"import java.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n public static void main(String[] args) {\n doit(args, new Scanner(System.in), System.out);\n }\n\n static void doit(String[] args, Scanner scanner, PrintStream out) {\n int n = scanner.nextInt();\n long debt = 100000;\n for (int i = 0; i < n; i++) {\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }\n out.println(String.format(\"%d\", debt));\n }\n}",
"Main",
"public static void main(String[] args) {\n doit(args, new Scanner(System.in), System.out);\n }",
"main",
"{\n doit(args, new Scanner(System.in), System.out);\n }",
"doit(args, new Scanner(System.in), System.out)",
"doit",
"args",
"new Scanner(System.in)",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void doit(String[] args, Scanner scanner, PrintStream out) {\n int n = scanner.nextInt();\n long debt = 100000;\n for (int i = 0; i < n; i++) {\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }\n out.println(String.format(\"%d\", debt));\n }",
"doit",
"{\n int n = scanner.nextInt();\n long debt = 100000;\n for (int i = 0; i < n; i++) {\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }\n out.println(String.format(\"%d\", debt));\n }",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"long debt = 100000;",
"debt",
"100000",
"for (int i = 0; i < n; i++) {\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }",
"{\n debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;\n }",
"debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000",
"debt",
"((long) Math.ceil(debt * 1.05 /1000.0)) * 1000",
"((long) Math.ceil(debt * 1.05 /1000.0))",
"Math.ceil",
"Math",
"debt * 1.05 /1000.0",
"debt * 1.05",
"debt",
"1.05",
"1000.0",
"1000",
"out.println(String.format(\"%d\", debt))",
"out.println",
"out",
"String.format(\"%d\", debt)",
"String.format",
"String",
"\"%d\"",
"debt",
"String[] args",
"args",
"Scanner scanner",
"scanner",
"PrintStream out",
"out"
] | import java.io.PrintStream;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
doit(args, new Scanner(System.in), System.out);
}
static void doit(String[] args, Scanner scanner, PrintStream out) {
int n = scanner.nextInt();
long debt = 100000;
for (int i = 0; i < n; i++) {
debt = ((long) Math.ceil(debt * 1.05 /1000.0)) * 1000;
}
out.println(String.format("%d", debt));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
2,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
87,
11
],
[
87,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
32,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
32,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
12,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//??????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint N, debt;\n\t\twhile ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//??????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint N, debt;\n\t\twhile ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t//??????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint N, debt;\n\t\twhile ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}\n\t}",
"main",
"{\n\t\t//??????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint N, debt;\n\t\twhile ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int N",
"N",
"debt;",
"debt",
"while ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}",
"(str = br.readLine()) != null",
"(str = br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}",
"N = Integer.parseInt(str)",
"N",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"debt = 100000",
"debt",
"100000",
"for (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}",
"debt = debt / 1000 * 1050",
"debt",
"debt / 1000 * 1050",
"debt / 1000",
"debt",
"1000",
"1050",
"if ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}",
"(debt % 1000) != 0",
"(debt % 1000)",
"debt",
"1000",
"0",
"{\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}",
"debt = debt + (1000 - debt % 1000)",
"debt",
"debt + (1000 - debt % 1000)",
"debt",
"(1000 - debt % 1000)",
"1000",
"debt % 1000",
"debt",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//??????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint N, debt;\n\t\twhile ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//??????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint N, debt;\n\t\twhile ((str = br.readLine()) != null){\n\t\t\tN = Integer.parseInt(str);\n\t\t\tdebt = 100000;\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdebt = debt / 1000 * 1050;\n\t\t\t\tif ((debt % 1000) != 0) {\n\t\t\t\t\tdebt = debt + (1000 - debt % 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(debt);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
//??????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int N, debt;
while ((str = br.readLine()) != null){
N = Integer.parseInt(str);
debt = 100000;
for (int i = 0; i < N; i++) {
debt = debt / 1000 * 1050;
if ((debt % 1000) != 0) {
debt = debt + (1000 - debt % 1000);
}
}
System.out.println(debt);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
0,
13,
2,
2,
13,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
76,
11
],
[
76,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
12,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tdouble n = Double.parseDouble(str);\n\t\tdouble x = 100000;\n\t\tdouble r = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}\n\n\n\n\t\tSystem.out.println((int)x);\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tdouble n = Double.parseDouble(str);\n\t\tdouble x = 100000;\n\t\tdouble r = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}\n\n\n\n\t\tSystem.out.println((int)x);\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tdouble n = Double.parseDouble(str);\n\t\tdouble x = 100000;\n\t\tdouble r = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}\n\n\n\n\t\tSystem.out.println((int)x);\n\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tdouble n = Double.parseDouble(str);\n\t\tdouble x = 100000;\n\t\tdouble r = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}\n\n\n\n\t\tSystem.out.println((int)x);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"double n = Double.parseDouble(str);",
"n",
"Double.parseDouble(str)",
"Double.parseDouble",
"Double",
"str",
"double x = 100000;",
"x",
"100000",
"double r = 0;",
"r",
"0",
"for(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}",
"{\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}",
"x *= 1.05",
"x",
"1.05",
"r = x%1000",
"r",
"x%1000",
"x",
"1000",
"if(r != 0)\n\t\t\t\tx = x + 1000 - r;",
"r != 0",
"r",
"0",
"x = x + 1000 - r",
"x",
"x + 1000 - r",
"x + 1000",
"x",
"1000",
"r",
"System.out.println((int)x)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)x",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tdouble n = Double.parseDouble(str);\n\t\tdouble x = 100000;\n\t\tdouble r = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}\n\n\n\n\t\tSystem.out.println((int)x);\n\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\n\t\tdouble n = Double.parseDouble(str);\n\t\tdouble x = 100000;\n\t\tdouble r = 0;\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tx *= 1.05;\n\t\t\tr = x%1000;\n\t\t\tif(r != 0)\n\t\t\t\tx = x + 1000 - r;\n\t\t}\n\n\n\n\t\tSystem.out.println((int)x);\n\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
double n = Double.parseDouble(str);
double x = 100000;
double r = 0;
for(int i=0; i<n; i++){
x *= 1.05;
r = x%1000;
if(r != 0)
x = x + 1000 - r;
}
System.out.println((int)x);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
13,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
32,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
42,
49
],
[
8,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
50,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner scan = new Scanner(System.in);\n double sum = 100000.0;\n int a = scan.nextInt();\n for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }\n System.out.printf(\"%.0f\\n\",sum);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner scan = new Scanner(System.in);\n double sum = 100000.0;\n int a = scan.nextInt();\n for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }\n System.out.printf(\"%.0f\\n\",sum);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner scan = new Scanner(System.in);\n double sum = 100000.0;\n int a = scan.nextInt();\n for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }\n System.out.printf(\"%.0f\\n\",sum);\n }",
"main",
"{\n // Here your code !\n Scanner scan = new Scanner(System.in);\n double sum = 100000.0;\n int a = scan.nextInt();\n for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }\n System.out.printf(\"%.0f\\n\",sum);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"double sum = 100000.0;",
"sum",
"100000.0",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }",
"int i =1 ;",
"int i =1 ;",
"i",
"1",
"i<=a",
"i",
"a",
"i++",
"i++",
"i",
"{\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }",
"{\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }",
"sum = sum *0.05+sum",
"sum",
"sum *0.05+sum",
"sum *0.05",
"sum",
"0.05",
"sum",
"sum = (Math.ceil(sum /1000)) *1000",
"sum",
"(Math.ceil(sum /1000)) *1000",
"(Math.ceil(sum /1000))",
"Math.ceil",
"Math",
"sum /1000",
"sum",
"1000",
"1000",
"System.out.printf(\"%.0f\\n\",sum)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.0f\\n\"",
"sum",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner scan = new Scanner(System.in);\n double sum = 100000.0;\n int a = scan.nextInt();\n for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }\n System.out.printf(\"%.0f\\n\",sum);\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n Scanner scan = new Scanner(System.in);\n double sum = 100000.0;\n int a = scan.nextInt();\n for(int i =1 ;i<=a ;i++){\n sum = sum *0.05+sum;\n sum = (Math.ceil(sum /1000)) *1000;\n }\n System.out.printf(\"%.0f\\n\",sum);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
// Here your code !
Scanner scan = new Scanner(System.in);
double sum = 100000.0;
int a = scan.nextInt();
for(int i =1 ;i<=a ;i++){
sum = sum *0.05+sum;
sum = (Math.ceil(sum /1000)) *1000;
}
System.out.printf("%.0f\n",sum);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
17,
0,
13,
2,
17,
4,
18,
13,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
59,
8
],
[
59,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
30,
44
],
[
44,
45
],
[
11,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
9,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
]
] | [
"import java.util.*;\nimport java.text.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n double debt = 100000;\n \n while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }\n \n System.out.println(String.format(\"%.0f\",debt));\n \n }//main\n}//class",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n double debt = 100000;\n \n while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }\n \n System.out.println(String.format(\"%.0f\",debt));\n \n }//main\n}//class",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n double debt = 100000;\n \n while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }\n \n System.out.println(String.format(\"%.0f\",debt));\n \n }//main",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n double debt = 100000;\n \n while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }\n \n System.out.println(String.format(\"%.0f\",debt));\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"double debt = 100000;",
"debt",
"100000",
"while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }",
"n > 0",
"n",
"0",
"{\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }",
"debt *= 1.05",
"debt",
"1.05",
"debt = 1000.0*Math.ceil(debt/1000.0)",
"debt",
"1000.0*Math.ceil(debt/1000.0)",
"1000.0",
"Math.ceil(debt/1000.0)",
"Math.ceil",
"Math",
"debt/1000.0",
"debt",
"1000.0",
"n--",
"n",
"System.out.println(String.format(\"%.0f\",debt))",
"System.out.println",
"System.out",
"System",
"System.out",
"String.format(\"%.0f\",debt)",
"String.format",
"String",
"\"%.0f\"",
"debt",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n double debt = 100000;\n \n while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }\n \n System.out.println(String.format(\"%.0f\",debt));\n \n }//main\n}//class",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n double debt = 100000;\n \n while(n > 0){\n debt *= 1.05;\n debt = 1000.0*Math.ceil(debt/1000.0);\n n--;\n }\n \n System.out.println(String.format(\"%.0f\",debt));\n \n }//main\n}//class",
"Main"
] | import java.util.*;
import java.text.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
double debt = 100000;
while(n > 0){
debt *= 1.05;
debt = 1000.0*Math.ceil(debt/1000.0);
n--;
}
System.out.println(String.format("%.0f",debt));
}//main
}//class |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
63,
8
],
[
63,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
38,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
9,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double base = 100;\n double now = base;\n for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }\n System.out.println((int)now*1000);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double base = 100;\n double now = base;\n for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }\n System.out.println((int)now*1000);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double base = 100;\n double now = base;\n for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }\n System.out.println((int)now*1000);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double base = 100;\n double now = base;\n for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }\n System.out.println((int)now*1000);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double base = 100;",
"base",
"100",
"double now = base;",
"now",
"base",
"for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n now = now*0.05+now;\n now=Math.ceil(now);\n }",
"{\n now = now*0.05+now;\n now=Math.ceil(now);\n }",
"now = now*0.05+now",
"now",
"now*0.05+now",
"now*0.05",
"now",
"0.05",
"now",
"now=Math.ceil(now)",
"now",
"Math.ceil(now)",
"Math.ceil",
"Math",
"now",
"System.out.println((int)now*1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)now*1000",
"(int)now",
"1000",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double base = 100;\n double now = base;\n for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }\n System.out.println((int)now*1000);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double base = 100;\n double now = base;\n for(int i=0; i<n; i++){\n now = now*0.05+now;\n now=Math.ceil(now);\n }\n System.out.println((int)now*1000);\n }\n}",
"Main"
] | import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double base = 100;
double now = base;
for(int i=0; i<n; i++){
now = now*0.05+now;
now=Math.ceil(now);
}
System.out.println((int)now*1000);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
20,
40,
17,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
57,
8
],
[
57,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
11,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
9,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] | [
"import java.util.Scanner;\nimport java.math.BigDecimal;\n\npublic class Main {\n public static void main(String args[]) {\n int debt = 100000;\n int nWeeks = Integer.parseInt(new Scanner(System.in).next());\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }\n System.out.println(debt);\n\n }\n} ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n public static void main(String args[]) {\n int debt = 100000;\n int nWeeks = Integer.parseInt(new Scanner(System.in).next());\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }\n System.out.println(debt);\n\n }\n}",
"Main",
"public static void main(String args[]) {\n int debt = 100000;\n int nWeeks = Integer.parseInt(new Scanner(System.in).next());\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }\n System.out.println(debt);\n\n }",
"main",
"{\n int debt = 100000;\n int nWeeks = Integer.parseInt(new Scanner(System.in).next());\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }\n System.out.println(debt);\n\n }",
"int debt = 100000;",
"debt",
"100000",
"int nWeeks = Integer.parseInt(new Scanner(System.in).next());",
"nWeeks",
"Integer.parseInt(new Scanner(System.in).next())",
"Integer.parseInt",
"Integer",
"new Scanner(System.in).next()",
"new Scanner(System.in).next",
"new Scanner(System.in)",
"for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < nWeeks",
"i",
"nWeeks",
"i++",
"i++",
"i",
"{\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }",
"{\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }",
"debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue()",
"debt",
"new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue()",
"new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue",
"new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING)",
"new BigDecimal(debt * 1.05).setScale",
"new BigDecimal(debt * 1.05)",
"-3",
"3",
"BigDecimal.ROUND_CEILING",
"BigDecimal",
"BigDecimal.ROUND_CEILING",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n int debt = 100000;\n int nWeeks = Integer.parseInt(new Scanner(System.in).next());\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }\n System.out.println(debt);\n\n }\n}",
"public class Main {\n public static void main(String args[]) {\n int debt = 100000;\n int nWeeks = Integer.parseInt(new Scanner(System.in).next());\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();\n }\n System.out.println(debt);\n\n }\n}",
"Main"
] | import java.util.Scanner;
import java.math.BigDecimal;
public class Main {
public static void main(String args[]) {
int debt = 100000;
int nWeeks = Integer.parseInt(new Scanner(System.in).next());
for(int i = 0; i < nWeeks; i++) {
debt = new BigDecimal(debt * 1.05).setScale(-3, BigDecimal.ROUND_CEILING).intValue();
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
40,
17,
18,
13,
13,
0,
13,
40,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
68,
5
],
[
68,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
40,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
32,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
8,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] | [
"import java.math.BigDecimal;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tdouble money = 100000;\n\t\tint moneyNew = 0;\n\t\tint n = new java.util.Scanner(System.in).nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}\n\n\t\tSystem.out.println((int) money);\n\n\t}\n\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tdouble money = 100000;\n\t\tint moneyNew = 0;\n\t\tint n = new java.util.Scanner(System.in).nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}\n\n\t\tSystem.out.println((int) money);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tdouble money = 100000;\n\t\tint moneyNew = 0;\n\t\tint n = new java.util.Scanner(System.in).nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}\n\n\t\tSystem.out.println((int) money);\n\n\t}",
"main",
"{\n\t\tdouble money = 100000;\n\t\tint moneyNew = 0;\n\t\tint n = new java.util.Scanner(System.in).nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}\n\n\t\tSystem.out.println((int) money);\n\n\t}",
"double money = 100000;",
"money",
"100000",
"int moneyNew = 0;",
"moneyNew",
"0",
"int n = new java.util.Scanner(System.in).nextInt();",
"n",
"new java.util.Scanner(System.in).nextInt()",
"new java.util.Scanner(System.in).nextInt",
"new java.util.Scanner(System.in)",
"for (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}",
"{\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}",
"money = money + money * 0.05",
"money",
"money + money * 0.05",
"money",
"money * 0.05",
"money",
"0.05",
"BigDecimal bd = new BigDecimal(money);",
"bd",
"new BigDecimal(money)",
"BigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);",
"bd2",
"bd.setScale(-3, BigDecimal.ROUND_UP)",
"bd.setScale",
"bd",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"money = +bd2.intValue()",
"money",
"+bd2.intValue()",
"bd2.intValue()",
"bd2.intValue",
"bd2",
"System.out.println((int) money)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) money",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tdouble money = 100000;\n\t\tint moneyNew = 0;\n\t\tint n = new java.util.Scanner(System.in).nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}\n\n\t\tSystem.out.println((int) money);\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tdouble money = 100000;\n\t\tint moneyNew = 0;\n\t\tint n = new java.util.Scanner(System.in).nextInt();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tmoney = money + money * 0.05;\n\t\t\tBigDecimal bd = new BigDecimal(money);\n\t\t\tBigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);\n\t\t\tmoney = +bd2.intValue();\n\t\t}\n\n\t\tSystem.out.println((int) money);\n\n\t}\n\n}",
"Main"
] | import java.math.BigDecimal;
public class Main {
public static void main(String[] args) {
double money = 100000;
int moneyNew = 0;
int n = new java.util.Scanner(System.in).nextInt();
for (int i = 0; i < n; i++) {
money = money + money * 0.05;
BigDecimal bd = new BigDecimal(money);
BigDecimal bd2 = bd.setScale(-3, BigDecimal.ROUND_UP);
money = +bd2.intValue();
}
System.out.println((int) money);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
13,
0,
13,
2,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tdouble dept = 100000;\n\t\tint keta = 1000;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}\n\t\tSystem.out.println((int)dept);\n\t}\n\t\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tdouble dept = 100000;\n\t\tint keta = 1000;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}\n\t\tSystem.out.println((int)dept);\n\t}\n\t\n}",
"Main",
"public static void main(String[] args){\n\t\tdouble dept = 100000;\n\t\tint keta = 1000;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}\n\t\tSystem.out.println((int)dept);\n\t}",
"main",
"{\n\t\tdouble dept = 100000;\n\t\tint keta = 1000;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}\n\t\tSystem.out.println((int)dept);\n\t}",
"double dept = 100000;",
"dept",
"100000",
"int keta = 1000;",
"keta",
"1000",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}",
"{\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}",
"dept = dept * 1.05",
"dept",
"dept * 1.05",
"dept",
"1.05",
"dept = dept / keta",
"dept",
"dept / keta",
"dept",
"keta",
"dept = keta* (Math.ceil(dept))",
"dept",
"keta* (Math.ceil(dept))",
"keta",
"(Math.ceil(dept))",
"Math.ceil",
"Math",
"dept",
"System.out.println((int)dept)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)dept",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tdouble dept = 100000;\n\t\tint keta = 1000;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}\n\t\tSystem.out.println((int)dept);\n\t}\n\t\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tdouble dept = 100000;\n\t\tint keta = 1000;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint k = scan.nextInt();\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tdept = dept * 1.05;\n\t\t\tdept = dept / keta;\n\t\t\tdept = keta* (Math.ceil(dept));\n\t\t}\n\t\tSystem.out.println((int)dept);\n\t}\n\t\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
double dept = 100000;
int keta = 1000;
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
for(int i=0;i<k;i++){
dept = dept * 1.05;
dept = dept / keta;
dept = keta* (Math.ceil(dept));
}
System.out.println((int)dept);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
2,
2,
2,
13,
17,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
40,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}\n\t\tSystem.out.println(debt);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}\n\t\tSystem.out.println(debt);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int debt = 100000;",
"debt",
"100000",
"for(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}",
"{\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}",
"debt += debt/20",
"debt",
"debt/20",
"debt",
"20",
"debt = ((debt-1)/1000+1)*1000",
"debt",
"((debt-1)/1000+1)*1000",
"((debt-1)/1000+1)",
"(debt-1)/1000",
"(debt-1)",
"debt",
"1",
"1000",
"1",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tdebt += debt/20;\n\t\t\tdebt = ((debt-1)/1000+1)*1000;\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int debt = 100000;
for(int i=0;i<n;i++) {
debt += debt/20;
debt = ((debt-1)/1000+1)*1000;
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
4,
18,
4,
18,
13,
13,
13,
17,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
17,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
17,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
55,
61
],
[
55,
62
],
[
55,
63
],
[
63,
64
],
[
63,
65
],
[
53,
66
],
[
17,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
15,
73
],
[
73,
74
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\n/**\n * ๅ้ใ่จ็ฎใใๆฉ่ฝ\n *\n * @author kohei.nitta\n *\n */\nclass Main {\n\n\t/**\n\t * ๆจๆบๅ
ฅๅใใๅคใๅใๅใใn้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ\n\t *\n\t * @param args\n\t * @return\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBigDecimal debt = new BigDecimal(\"100000\");\n\t\tBigDecimal interest = new BigDecimal(\"1.05\");\n\t\tBigDecimal roundUp = new BigDecimal(\"1000\");\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\tint inputNo = Integer.parseInt(input.readLine());\n\n\t\tfor (int i = 1; i <= inputNo; i++) {\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}\n\n\t\tSystem.out.println(debt);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"class Main {\n\n\t/**\n\t * ๆจๆบๅ
ฅๅใใๅคใๅใๅใใn้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ\n\t *\n\t * @param args\n\t * @return\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBigDecimal debt = new BigDecimal(\"100000\");\n\t\tBigDecimal interest = new BigDecimal(\"1.05\");\n\t\tBigDecimal roundUp = new BigDecimal(\"1000\");\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\tint inputNo = Integer.parseInt(input.readLine());\n\n\t\tfor (int i = 1; i <= inputNo; i++) {\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}\n\n\t\tSystem.out.println(debt);\n\t}\n}",
"Main",
"/**\n\t * ๆจๆบๅ
ฅๅใใๅคใๅใๅใใn้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ\n\t *\n\t * @param args\n\t * @return\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBigDecimal debt = new BigDecimal(\"100000\");\n\t\tBigDecimal interest = new BigDecimal(\"1.05\");\n\t\tBigDecimal roundUp = new BigDecimal(\"1000\");\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\tint inputNo = Integer.parseInt(input.readLine());\n\n\t\tfor (int i = 1; i <= inputNo; i++) {\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}\n\n\t\tSystem.out.println(debt);\n\t}",
"main",
"{\n\n\t\tBigDecimal debt = new BigDecimal(\"100000\");\n\t\tBigDecimal interest = new BigDecimal(\"1.05\");\n\t\tBigDecimal roundUp = new BigDecimal(\"1000\");\n\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\tint inputNo = Integer.parseInt(input.readLine());\n\n\t\tfor (int i = 1; i <= inputNo; i++) {\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}\n\n\t\tSystem.out.println(debt);\n\t}",
"BigDecimal debt = new BigDecimal(\"100000\");",
"debt",
"new BigDecimal(\"100000\")",
"BigDecimal interest = new BigDecimal(\"1.05\");",
"interest",
"new BigDecimal(\"1.05\")",
"BigDecimal roundUp = new BigDecimal(\"1000\");",
"roundUp",
"new BigDecimal(\"1000\")",
"BufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));",
"input",
"new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))",
"int inputNo = Integer.parseInt(input.readLine());",
"inputNo",
"Integer.parseInt(input.readLine())",
"Integer.parseInt",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"for (int i = 1; i <= inputNo; i++) {\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= inputNo",
"i",
"inputNo",
"i++",
"i++",
"i",
"{\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}",
"{\n\t\t\tdebt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);\n\t\t}",
"debt = debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp)",
"debt",
"debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp)",
"debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply",
"debt.multiply(interest)\n\t\t\t\t\t.divide(roundUp, 0, BigDecimal.ROUND_UP)",
"debt.multiply(interest)\n\t\t\t\t\t.divide",
"debt.multiply(interest)",
"debt.multiply",
"debt",
"interest",
"roundUp",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"roundUp",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
/**
* ๅ้ใ่จ็ฎใใๆฉ่ฝ
*
* @author kohei.nitta
*
*/
class Main {
/**
* ๆจๆบๅ
ฅๅใใๅคใๅใๅใใn้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ
*
* @param args
* @return
* @throws IOException
*/
public static void main(String[] args) throws IOException {
BigDecimal debt = new BigDecimal("100000");
BigDecimal interest = new BigDecimal("1.05");
BigDecimal roundUp = new BigDecimal("1000");
BufferedReader input = new BufferedReader(new InputStreamReader(
System.in));
int inputNo = Integer.parseInt(input.readLine());
for (int i = 1; i <= inputNo; i++) {
debt = debt.multiply(interest)
.divide(roundUp, 0, BigDecimal.ROUND_UP).multiply(roundUp);
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint x=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint x=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint x=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint x=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x=100000;",
"x",
"100000",
"for(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}",
"x=(int) (1.05*x)",
"x",
"(int) (1.05*x)",
"1.05",
"x",
"if(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}",
"x%1000!=0",
"x%1000",
"x",
"1000",
"0",
"{\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}",
"x=((x/1000)+1)*1000",
"x",
"((x/1000)+1)*1000",
"((x/1000)+1)",
"(x/1000)",
"x",
"1000",
"1",
"1000",
"System.out.println(x)",
"System.out.println",
"System.out",
"System",
"System.out",
"x",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint x=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint x=100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx=(int) (1.05*x);\n\t\t\tif(x%1000!=0){\n\t\t\t\tx=((x/1000)+1)*1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(x);\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int x=100000;
for(int i=0;i<n;i++){
x=(int) (1.05*x);
if(x%1000!=0){
x=((x/1000)+1)*1000;
}
}
System.out.println(x);
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
20,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
81,
2
],
[
81,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],
[
13,
15
],
[
5,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
5,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
43,
50
],
[
50,
51
],
[
50,
52
],
[
5,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
5,
59
],
[
59,
60
],
[
60,
61
],
[
3,
62
],
[
62,
63
],
[
3,
64
],
[
64,
65
],
[
81,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int i;\n int a = 100000;\n\n n = sc.nextInt();\n\n for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }\n\n System.out.println(a);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int i;\n int a = 100000;\n\n n = sc.nextInt();\n\n for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }\n\n System.out.println(a);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main",
"public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int i;\n int a = 100000;\n\n n = sc.nextInt();\n\n for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }\n\n System.out.println(a);\n\n sc.close();\n }",
"run",
"{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int i;\n int a = 100000;\n\n n = sc.nextInt();\n\n for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }\n\n System.out.println(a);\n\n sc.close();\n }",
"java.util.Scanner sc = new java.util.Scanner(in);",
"sc",
"new java.util.Scanner(in)",
"int n;",
"n",
"int i;",
"i",
"int a = 100000;",
"a",
"100000",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }",
"{\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }",
"a *= 1.05",
"a",
"1.05",
"if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }",
"a % 1000 != 0",
"a % 1000",
"a",
"1000",
"0",
"{\n a /= 1000;\n a *= 1000;\n a += 1000;\n }",
"a /= 1000",
"a",
"1000",
"a *= 1000",
"a",
"1000",
"a += 1000",
"a",
"1000",
"System.out.println(a)",
"System.out.println",
"System.out",
"System",
"System.out",
"a",
"sc.close()",
"sc.close",
"sc",
"java.io.InputStream in",
"in",
"java.io.PrintStream out",
"out",
"public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }",
"main",
"{\n (new Main()).run(System.in, System.out);\n }",
"(new Main()).run(System.in, System.out)",
"(new Main()).run",
"(new Main())",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int i;\n int a = 100000;\n\n n = sc.nextInt();\n\n for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }\n\n System.out.println(a);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int n;\n int i;\n int a = 100000;\n\n n = sc.nextInt();\n\n for(i = 0;i < n;i++){\n a *= 1.05;\n if(a % 1000 != 0){\n a /= 1000;\n a *= 1000;\n a += 1000;\n }\n }\n\n System.out.println(a);\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n}",
"Main"
] | public class Main{
public void run(java.io.InputStream in, java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*answer*/
int n;
int i;
int a = 100000;
n = sc.nextInt();
for(i = 0;i < n;i++){
a *= 1.05;
if(a % 1000 != 0){
a /= 1000;
a *= 1000;
a += 1000;
}
}
System.out.println(a);
sc.close();
}
public static void main(String[] args){
(new Main()).run(System.in, System.out);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
41,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] | [
"import java.util.Scanner;\n\n\npublic class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint money = 100000;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint money = 100000;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint money = 100000;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint money = 100000;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int money = 100000;",
"money",
"100000",
"for(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}",
"money *= 1.05",
"money",
"1.05",
"int x = money%1000;",
"x",
"money%1000",
"money",
"1000",
"if(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}",
"x > 0",
"x",
"0",
"{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}",
"money = money - x + 1000",
"money",
"money - x + 1000",
"money - x",
"money",
"x",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args",
"public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint money = 100000;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"public class Main \n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tint money = 100000;\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tmoney *= 1.05;\n\t\t\tint x = money%1000;\n\t\t\tif(x > 0)\n\t\t\t{\n\t\t\t\tmoney = money - x + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int money = 100000;
for(int i=0; i<n; i++)
{
money *= 1.05;
int x = money%1000;
if(x > 0)
{
money = money - x + 1000;
}
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
2,
2,
13,
17,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
82,
11
],
[
82,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
46,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
45,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
14,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
12,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint debt = 100000;\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint debt = 100000;\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint debt = 100000;\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(debt);\n\t}",
"main",
"{\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint debt = 100000;\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(debt);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int debt = 100000;",
"debt",
"100000",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}",
"debt *= 1.05",
"debt",
"1.05",
"if ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}",
"(debt - ((debt/1000) * 1000))!=0",
"(debt - ((debt/1000) * 1000))",
"debt",
"((debt/1000) * 1000)",
"(debt/1000)",
"debt",
"1000",
"1000",
"0",
"{\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t}",
"debt = (debt/1000) * 1000 + 1000",
"debt",
"(debt/1000) * 1000 + 1000",
"(debt/1000) * 1000",
"(debt/1000)",
"debt",
"1000",
"1000",
"1000",
"{\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}",
"debt = (debt/1000) * 1000",
"debt",
"(debt/1000) * 1000",
"(debt/1000)",
"debt",
"1000",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint debt = 100000;\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint debt = 100000;\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif ((debt - ((debt/1000) * 1000))!=0) {\n\t\t\t\tdebt = (debt/1000) * 1000 + 1000;\n\t\t\t} else {\n\t\t\t\tdebt = (debt/1000) * 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(debt);\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int debt = 100000;
int n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
debt *= 1.05;
if ((debt - ((debt/1000) * 1000))!=0) {
debt = (debt/1000) * 1000 + 1000;
} else {
debt = (debt/1000) * 1000;
}
}
System.out.println(debt);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
0,
13,
2,
17,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
2,
13,
13,
13,
29,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
13,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
6,
32
],
[
32,
33
],
[
97,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
36,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
36,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
36,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
36,
65
],
[
65,
66
],
[
34,
67
],
[
67,
68
],
[
97,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
71,
90
],
[
90,
91
],
[
69,
92
],
[
92,
93
],
[
69,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int debt = 100000;\n final int n = scanner.nextInt();\n\n debt = calculateDebt(debt, n);\n\n System.out.println(debt);\n }\n\n static int calculateDebt (int debt) {\n final double INTEREST = 0.05;\n final int ROUNUD_UP_MONEY = 1000;\n\n debt *= 1 + INTEREST;\n final int fraction = debt % ROUNUD_UP_MONEY;\n if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }\n\n return debt;\n }\n\n static int calculateDebt (int debt, int time) {\n for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }\n\n return debt;\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int debt = 100000;\n final int n = scanner.nextInt();\n\n debt = calculateDebt(debt, n);\n\n System.out.println(debt);\n }\n\n static int calculateDebt (int debt) {\n final double INTEREST = 0.05;\n final int ROUNUD_UP_MONEY = 1000;\n\n debt *= 1 + INTEREST;\n final int fraction = debt % ROUNUD_UP_MONEY;\n if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }\n\n return debt;\n }\n\n static int calculateDebt (int debt, int time) {\n for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }\n\n return debt;\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int debt = 100000;\n final int n = scanner.nextInt();\n\n debt = calculateDebt(debt, n);\n\n System.out.println(debt);\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int debt = 100000;\n final int n = scanner.nextInt();\n\n debt = calculateDebt(debt, n);\n\n System.out.println(debt);\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int debt = 100000;",
"debt",
"100000",
"final int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"debt = calculateDebt(debt, n)",
"debt",
"calculateDebt(debt, n)",
"calculateDebt",
"debt",
"n",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"static int calculateDebt (int debt) {\n final double INTEREST = 0.05;\n final int ROUNUD_UP_MONEY = 1000;\n\n debt *= 1 + INTEREST;\n final int fraction = debt % ROUNUD_UP_MONEY;\n if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }\n\n return debt;\n }",
"calculateDebt",
"{\n final double INTEREST = 0.05;\n final int ROUNUD_UP_MONEY = 1000;\n\n debt *= 1 + INTEREST;\n final int fraction = debt % ROUNUD_UP_MONEY;\n if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }\n\n return debt;\n }",
"final double INTEREST = 0.05;",
"INTEREST",
"0.05",
"final int ROUNUD_UP_MONEY = 1000;",
"ROUNUD_UP_MONEY",
"1000",
"debt *= 1 + INTEREST",
"debt",
"1 + INTEREST",
"1",
"INTEREST",
"final int fraction = debt % ROUNUD_UP_MONEY;",
"fraction",
"debt % ROUNUD_UP_MONEY",
"debt",
"ROUNUD_UP_MONEY",
"if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }",
"fraction > 0",
"fraction",
"0",
"{\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }",
"debt = debt - fraction + ROUNUD_UP_MONEY",
"debt",
"debt - fraction + ROUNUD_UP_MONEY",
"debt - fraction",
"debt",
"fraction",
"ROUNUD_UP_MONEY",
"return debt;",
"debt",
"int debt",
"debt",
"static int calculateDebt (int debt, int time) {\n for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }\n\n return debt;\n }",
"calculateDebt",
"{\n for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }\n\n return debt;\n }",
"for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < time",
"i",
"time",
"i++",
"i++",
"i",
"{\n debt = calculateDebt(debt);\n }",
"{\n debt = calculateDebt(debt);\n }",
"debt = calculateDebt(debt)",
"debt",
"calculateDebt(debt)",
"calculateDebt",
"debt",
"return debt;",
"debt",
"int debt",
"debt",
"int time",
"time",
"public class Main{\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int debt = 100000;\n final int n = scanner.nextInt();\n\n debt = calculateDebt(debt, n);\n\n System.out.println(debt);\n }\n\n static int calculateDebt (int debt) {\n final double INTEREST = 0.05;\n final int ROUNUD_UP_MONEY = 1000;\n\n debt *= 1 + INTEREST;\n final int fraction = debt % ROUNUD_UP_MONEY;\n if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }\n\n return debt;\n }\n\n static int calculateDebt (int debt, int time) {\n for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }\n\n return debt;\n }\n\n}",
"public class Main{\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int debt = 100000;\n final int n = scanner.nextInt();\n\n debt = calculateDebt(debt, n);\n\n System.out.println(debt);\n }\n\n static int calculateDebt (int debt) {\n final double INTEREST = 0.05;\n final int ROUNUD_UP_MONEY = 1000;\n\n debt *= 1 + INTEREST;\n final int fraction = debt % ROUNUD_UP_MONEY;\n if (fraction > 0) {\n debt = debt - fraction + ROUNUD_UP_MONEY ;\n }\n\n return debt;\n }\n\n static int calculateDebt (int debt, int time) {\n for (int i = 0; i < time; i++) {\n debt = calculateDebt(debt);\n }\n\n return debt;\n }\n\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int debt = 100000;
final int n = scanner.nextInt();
debt = calculateDebt(debt, n);
System.out.println(debt);
}
static int calculateDebt (int debt) {
final double INTEREST = 0.05;
final int ROUNUD_UP_MONEY = 1000;
debt *= 1 + INTEREST;
final int fraction = debt % ROUNUD_UP_MONEY;
if (fraction > 0) {
debt = debt - fraction + ROUNUD_UP_MONEY ;
}
return debt;
}
static int calculateDebt (int debt, int time) {
for (int i = 0; i < time; i++) {
debt = calculateDebt(debt);
}
return debt;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
17,
0,
13,
4,
13,
13,
0,
13,
17,
4,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
69,
11
],
[
69,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
44,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
56,
57
],
[
56,
58
],
[
14,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
14,
63
],
[
63,
64
],
[
64,
65
],
[
12,
66
],
[
66,
67
],
[
0,
68
],
[
68,
69
],
[
68,
70
]
] | [
"import java.io.PrintWriter;\nimport java.util.*;\n\nimport static java.lang.Math.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in); \n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tdouble money = 100000;\n\t\tfinal double tax = 1.05;\n\t\tint n= sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}\n\t\tout.println((int)money);\n\t\tout.flush();\n\t}\n\n}\n\n\n\t",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in); \n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tdouble money = 100000;\n\t\tfinal double tax = 1.05;\n\t\tint n= sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}\n\t\tout.println((int)money);\n\t\tout.flush();\n\t}\n\n}",
"Main",
"public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in); \n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tdouble money = 100000;\n\t\tfinal double tax = 1.05;\n\t\tint n= sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}\n\t\tout.println((int)money);\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in); \n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tdouble money = 100000;\n\t\tfinal double tax = 1.05;\n\t\tint n= sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}\n\t\tout.println((int)money);\n\t\tout.flush();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"PrintWriter out=new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"double money = 100000;",
"money",
"100000",
"final double tax = 1.05;",
"tax",
"1.05",
"int n= sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}",
"{\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}",
"money*=tax",
"money",
"tax",
"money/=1000",
"money",
"1000",
"money=ceil(money)",
"money",
"ceil(money)",
"ceil",
"money",
"money*=1000",
"money",
"1000",
"out.println((int)money)",
"out.println",
"out",
"(int)money",
"out.flush()",
"out.flush",
"out",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in); \n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tdouble money = 100000;\n\t\tfinal double tax = 1.05;\n\t\tint n= sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}\n\t\tout.println((int)money);\n\t\tout.flush();\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in); \n\t\tPrintWriter out=new PrintWriter(System.out);\n\t\tdouble money = 100000;\n\t\tfinal double tax = 1.05;\n\t\tint n= sc.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tmoney*=tax;\n\t\t\tmoney/=1000;\n\t\t\tmoney=ceil(money);\n\t\t\tmoney*=1000;\n\t\t}\n\t\tout.println((int)money);\n\t\tout.flush();\n\t}\n\n}",
"Main"
] | import java.io.PrintWriter;
import java.util.*;
import static java.lang.Math.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
PrintWriter out=new PrintWriter(System.out);
double money = 100000;
final double tax = 1.05;
int n= sc.nextInt();
for(int i=0;i<n;i++){
money*=tax;
money/=1000;
money=ceil(money);
money*=1000;
}
out.println((int)money);
out.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
56,
5
],
[
56,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
],
[
0,
55
],
[
55,
56
],
[
55,
57
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble result = 100000;\n\t\t\t\tfor(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}\n\t\t\tSystem.out.println((int)result);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble result = 100000;\n\t\t\t\tfor(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}\n\t\t\tSystem.out.println((int)result);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble result = 100000;\n\t\t\t\tfor(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}\n\t\t\tSystem.out.println((int)result);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble result = 100000;\n\t\t\t\tfor(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}\n\t\t\tSystem.out.println((int)result);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double result = 100000;",
"result",
"100000",
"for(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"n > i",
"n",
"i",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}",
"{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}",
"result = result * 1.05",
"result",
"result * 1.05",
"result",
"1.05",
"result = ((int)((result + 999)/1000))*1000",
"result",
"((int)((result + 999)/1000))*1000",
"((int)((result + 999)/1000))",
"(result + 999)",
"result",
"999",
"1000",
"1000",
"System.out.println((int)result)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)result",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble result = 100000;\n\t\t\t\tfor(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}\n\t\t\tSystem.out.println((int)result);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\tint n = sc.nextInt();\n\t\t\tdouble result = 100000;\n\t\t\t\tfor(int i = 0; n > i; i++)\n\t\t\t\t{\n\t\t\t\t\tresult = result * 1.05;\n\t\t\t\t\tresult = ((int)((result + 999)/1000))*1000;\n\t\t\t\t}\n\t\t\tSystem.out.println((int)result);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double result = 100000;
for(int i = 0; n > i; i++)
{
result = result * 1.05;
result = ((int)((result + 999)/1000))*1000;
}
System.out.println((int)result);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
17,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
9,
64
],
[
64,
65
]
] | [
"import java.util.*;\nimport java.lang.*;\n\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n \tScanner in = new Scanner(System.in);\n\t\tint week = in.nextInt();\n\t\tint dept = 100000;\n\t\t\n\t\tfor (int i = 0; i < week; i++) {\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dept);\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n \tScanner in = new Scanner(System.in);\n\t\tint week = in.nextInt();\n\t\tint dept = 100000;\n\t\t\n\t\tfor (int i = 0; i < week; i++) {\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dept);\n\t\t\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n \tScanner in = new Scanner(System.in);\n\t\tint week = in.nextInt();\n\t\tint dept = 100000;\n\t\t\n\t\tfor (int i = 0; i < week; i++) {\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dept);\n\t\t\n\t}",
"main",
"{\n \tScanner in = new Scanner(System.in);\n\t\tint week = in.nextInt();\n\t\tint dept = 100000;\n\t\t\n\t\tfor (int i = 0; i < week; i++) {\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dept);\n\t\t\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int week = in.nextInt();",
"week",
"in.nextInt()",
"in.nextInt",
"in",
"int dept = 100000;",
"dept",
"100000",
"for (int i = 0; i < week; i++) {\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\t// ๅฉๅญใฎ่จ็ฎ\n\t\t\tdept = (int)(dept * 1.05);\n\t\t\t// 1,000ๅๆชๆบใฏๅใไธใ\n\t\t\tif (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}\n\t\t}",
"dept = (int)(dept * 1.05)",
"dept",
"(int)(dept * 1.05)",
"dept",
"1.05",
"if (dept % 1000 != 0) {\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}",
"dept % 1000 != 0",
"dept % 1000",
"dept",
"1000",
"0",
"{\n\t\t\t\tdept = (dept / 1000) * 1000;\n\t\t\t\tdept += 1000;\n\t\t\t}",
"dept = (dept / 1000) * 1000",
"dept",
"(dept / 1000) * 1000",
"(dept / 1000)",
"dept",
"1000",
"1000",
"dept += 1000",
"dept",
"1000",
"System.out.println(dept)",
"System.out.println",
"System.out",
"System",
"System.out",
"dept",
"String[] args",
"args"
] | import java.util.*;
import java.lang.*;
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner in = new Scanner(System.in);
int week = in.nextInt();
int dept = 100000;
for (int i = 0; i < week; i++) {
// ๅฉๅญใฎ่จ็ฎ
dept = (int)(dept * 1.05);
// 1,000ๅๆชๆบใฏๅใไธใ
if (dept % 1000 != 0) {
dept = (dept / 1000) * 1000;
dept += 1000;
}
}
System.out.println(dept);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
17,
29,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
4,
18,
4,
18,
20,
40,
17,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
14,
31
],
[
31,
32
],
[
31,
33
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
12,
73
],
[
73,
74
]
] | [
"import java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input = scanner.nextInt();\n scanner.close();\n\t\tif (input > 100) return;\n\t\tlong loan = 100000;\n\t\tdouble interest = 0.05;\n\t\tfor (int i = 0; i < input; i++) {\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}\n\t\tSystem.out.println(loan);\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.math.RoundingMode;",
"RoundingMode",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input = scanner.nextInt();\n scanner.close();\n\t\tif (input > 100) return;\n\t\tlong loan = 100000;\n\t\tdouble interest = 0.05;\n\t\tfor (int i = 0; i < input; i++) {\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}\n\t\tSystem.out.println(loan);\n\t}\n}",
"Main",
"public static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input = scanner.nextInt();\n scanner.close();\n\t\tif (input > 100) return;\n\t\tlong loan = 100000;\n\t\tdouble interest = 0.05;\n\t\tfor (int i = 0; i < input; i++) {\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}\n\t\tSystem.out.println(loan);\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint input = scanner.nextInt();\n scanner.close();\n\t\tif (input > 100) return;\n\t\tlong loan = 100000;\n\t\tdouble interest = 0.05;\n\t\tfor (int i = 0; i < input; i++) {\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}\n\t\tSystem.out.println(loan);\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int input = scanner.nextInt();",
"input",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.close()",
"scanner.close",
"scanner",
"if (input > 100) return;",
"input > 100",
"input",
"100",
"return;",
"long loan = 100000;",
"loan",
"100000",
"double interest = 0.05;",
"interest",
"0.05",
"for (int i = 0; i < input; i++) {\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < input",
"i",
"input",
"i++",
"i++",
"i",
"{\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}",
"{\n\t\t\tloan += (loan*interest);\n\t\t\tloan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();\n\t\t}",
"loan += (loan*interest)",
"loan",
"(loan*interest)",
"loan",
"interest",
"loan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue()",
"loan",
"new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue()",
"new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue",
"new BigDecimal(loan).setScale(-3, RoundingMode.UP)",
"new BigDecimal(loan).setScale",
"new BigDecimal(loan)",
"-3",
"3",
"RoundingMode.UP",
"RoundingMode",
"RoundingMode.UP",
"System.out.println(loan)",
"System.out.println",
"System.out",
"System",
"System.out",
"loan",
"String[] a",
"a"
] | import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner scanner = new Scanner(System.in);
int input = scanner.nextInt();
scanner.close();
if (input > 100) return;
long loan = 100000;
double interest = 0.05;
for (int i = 0; i < input; i++) {
loan += (loan*interest);
loan = new BigDecimal(loan).setScale(-3, RoundingMode.UP).longValue();
}
System.out.println(loan);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
41,
13,
2,
13,
13,
41,
13,
20,
0,
13,
4,
18,
13,
40,
17,
18,
13,
13,
0,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
35,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
11,
70
],
[
70,
71
],
[
71,
72
],
[
9,
73
],
[
73,
74
]
] | [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\nclass Main{\n\n\n\tpublic static void main(String[] a){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint gankin = 100000;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}\n\n\t\tSystem.out.println(gankin);\n\n\t\tsc.close();\n\t}\n\n\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\n\n\tpublic static void main(String[] a){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint gankin = 100000;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}\n\n\t\tSystem.out.println(gankin);\n\n\t\tsc.close();\n\t}\n\n\n}",
"Main",
"public static void main(String[] a){\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint gankin = 100000;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}\n\n\t\tSystem.out.println(gankin);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\tint gankin = 100000;\n\n\t\tint n = sc.nextInt();\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}\n\n\t\tSystem.out.println(gankin);\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int gankin = 100000;",
"gankin",
"100000",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++) {\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}",
"{\n\n\t\t\tdouble rishi = gankin * 0.05;\n\n\t\t\tdouble newGankin = gankin + rishi;\n\n\t\t\tBigDecimal bd = new BigDecimal(newGankin);\n\t\t\tbd = bd.setScale(-3, BigDecimal.ROUND_UP);\n\n\t\t\tgankin = (int)bd.doubleValue();\n\t\t}",
"double rishi = gankin * 0.05;",
"rishi",
"gankin * 0.05",
"gankin",
"0.05",
"double newGankin = gankin + rishi;",
"newGankin",
"gankin + rishi",
"gankin",
"rishi",
"BigDecimal bd = new BigDecimal(newGankin);",
"bd",
"new BigDecimal(newGankin)",
"bd = bd.setScale(-3, BigDecimal.ROUND_UP)",
"bd",
"bd.setScale(-3, BigDecimal.ROUND_UP)",
"bd.setScale",
"bd",
"-3",
"3",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"gankin = (int)bd.doubleValue()",
"gankin",
"(int)bd.doubleValue()",
"bd.doubleValue",
"bd",
"System.out.println(gankin)",
"System.out.println",
"System.out",
"System",
"System.out",
"gankin",
"sc.close()",
"sc.close",
"sc",
"String[] a",
"a"
] | import java.math.BigDecimal;
import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner sc = new Scanner(System.in);
int gankin = 100000;
int n = sc.nextInt();
for(int i = 0; i < n; i++) {
double rishi = gankin * 0.05;
double newGankin = gankin + rishi;
BigDecimal bd = new BigDecimal(newGankin);
bd = bd.setScale(-3, BigDecimal.ROUND_UP);
gankin = (int)bd.doubleValue();
}
System.out.println(gankin);
sc.close();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
2,
13,
17,
41,
13,
2,
13,
17,
29,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
67,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
12,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
23,
24
],
[
9,
25
],
[
25,
26
],
[
67,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
54,
56
],
[
29,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
29,
62
],
[
62,
63
],
[
27,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println( calc_debt( sc.nextInt() ) );\n\t\tsc.close();\n\t}\n\n\tprivate static long calc_debt(int nextInt) {\n\t\tint n = nextInt;\n\t\tlong d = 100;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}\n\t\t\t\n\t\tlong debt = d * 1000;\n\t\treturn debt;\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println( calc_debt( sc.nextInt() ) );\n\t\tsc.close();\n\t}\n\n\tprivate static long calc_debt(int nextInt) {\n\t\tint n = nextInt;\n\t\tlong d = 100;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}\n\t\t\t\n\t\tlong debt = d * 1000;\n\t\treturn debt;\n\t}\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tSystem.out.println( calc_debt( sc.nextInt() ) );\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tSystem.out.println( calc_debt( sc.nextInt() ) );\n\t\tsc.close();\n\t}",
"System.out.println( calc_debt( sc.nextInt() ) )",
"System.out.println",
"System.out",
"System",
"System.out",
"calc_debt( sc.nextInt() )",
"calc_debt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"private static long calc_debt(int nextInt) {\n\t\tint n = nextInt;\n\t\tlong d = 100;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}\n\t\t\t\n\t\tlong debt = d * 1000;\n\t\treturn debt;\n\t}",
"calc_debt",
"{\n\t\tint n = nextInt;\n\t\tlong d = 100;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}\n\t\t\t\n\t\tlong debt = d * 1000;\n\t\treturn debt;\n\t}",
"int n = nextInt;",
"n",
"nextInt",
"long d = 100;",
"d",
"100",
"for (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}",
"{\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}",
"d = (long)Math.ceil( d * 1.05)",
"d",
"(long)Math.ceil( d * 1.05)",
"Math.ceil",
"Math",
"d * 1.05",
"d",
"1.05",
"long debt = d * 1000;",
"debt",
"d * 1000",
"d",
"1000",
"return debt;",
"debt",
"int nextInt",
"nextInt",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println( calc_debt( sc.nextInt() ) );\n\t\tsc.close();\n\t}\n\n\tprivate static long calc_debt(int nextInt) {\n\t\tint n = nextInt;\n\t\tlong d = 100;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}\n\t\t\t\n\t\tlong debt = d * 1000;\n\t\treturn debt;\n\t}\n\n}",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tSystem.out.println( calc_debt( sc.nextInt() ) );\n\t\tsc.close();\n\t}\n\n\tprivate static long calc_debt(int nextInt) {\n\t\tint n = nextInt;\n\t\tlong d = 100;\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\td = (long)Math.ceil( d * 1.05);\n\t\t\t}\n\t\t\t\n\t\tlong debt = d * 1000;\n\t\treturn debt;\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
System.out.println( calc_debt( sc.nextInt() ) );
sc.close();
}
private static long calc_debt(int nextInt) {
int n = nextInt;
long d = 100;
for (int i = 0; i < n; i++) {
d = (long)Math.ceil( d * 1.05);
}
long debt = d * 1000;
return debt;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
13,
29,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
64,
5
],
[
64,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
6,
25
],
[
25,
26
],
[
64,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
29,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
27,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint inputNum = in.nextInt();\n\t\tSystem.out.println(getNowShakkin(inputNum));\n\t}\n\n\tpublic static int getNowShakkin(int weekInterval) {\n\t\tdouble result = 100;\n\n\t\tfor (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}\n\n\t\treturn (int)result * 1000;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint inputNum = in.nextInt();\n\t\tSystem.out.println(getNowShakkin(inputNum));\n\t}\n\n\tpublic static int getNowShakkin(int weekInterval) {\n\t\tdouble result = 100;\n\n\t\tfor (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}\n\n\t\treturn (int)result * 1000;\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint inputNum = in.nextInt();\n\t\tSystem.out.println(getNowShakkin(inputNum));\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint inputNum = in.nextInt();\n\t\tSystem.out.println(getNowShakkin(inputNum));\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int inputNum = in.nextInt();",
"inputNum",
"in.nextInt()",
"in.nextInt",
"in",
"System.out.println(getNowShakkin(inputNum))",
"System.out.println",
"System.out",
"System",
"System.out",
"getNowShakkin(inputNum)",
"getNowShakkin",
"inputNum",
"String args[]",
"args",
"public static int getNowShakkin(int weekInterval) {\n\t\tdouble result = 100;\n\n\t\tfor (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}\n\n\t\treturn (int)result * 1000;\n\t}",
"getNowShakkin",
"{\n\t\tdouble result = 100;\n\n\t\tfor (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}\n\n\t\treturn (int)result * 1000;\n\t}",
"double result = 100;",
"result",
"100",
"for (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weekInterval",
"i",
"weekInterval",
"i++",
"i++",
"i",
"{\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}",
"{\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}",
"result = result*1.05",
"result",
"result*1.05",
"result",
"1.05",
"result = (Math.ceil((double) result))",
"result",
"(Math.ceil((double) result))",
"Math.ceil",
"Math",
"(double) result",
"return (int)result * 1000;",
"(int)result * 1000",
"(int)result",
"1000",
"int weekInterval",
"weekInterval",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint inputNum = in.nextInt();\n\t\tSystem.out.println(getNowShakkin(inputNum));\n\t}\n\n\tpublic static int getNowShakkin(int weekInterval) {\n\t\tdouble result = 100;\n\n\t\tfor (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}\n\n\t\treturn (int)result * 1000;\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint inputNum = in.nextInt();\n\t\tSystem.out.println(getNowShakkin(inputNum));\n\t}\n\n\tpublic static int getNowShakkin(int weekInterval) {\n\t\tdouble result = 100;\n\n\t\tfor (int i = 0; i < weekInterval; i++) {\n\t\t\tresult = result*1.05;\n\t\t\tresult = (Math.ceil((double) result));\n\t\t}\n\n\t\treturn (int)result * 1000;\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int inputNum = in.nextInt();
System.out.println(getNowShakkin(inputNum));
}
public static int getNowShakkin(int weekInterval) {
double result = 100;
for (int i = 0; i < weekInterval; i++) {
result = result*1.05;
result = (Math.ceil((double) result));
}
return (int)result * 1000;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
18,
13,
2,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
41,
42
],
[
41,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
6,
53
],
[
53,
54
]
] | [
"import java.util.*;\n\nclass Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double hensai = 100000;\n for(int i=0;i<n;i++){\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n } \n System.out.println((long)hensai);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double hensai = 100000;\n for(int i=0;i<n;i++){\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n } \n System.out.println((long)hensai);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double hensai = 100000;\n for(int i=0;i<n;i++){\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n } \n System.out.println((long)hensai);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double hensai = 100000;\n for(int i=0;i<n;i++){\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n } \n System.out.println((long)hensai);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double hensai = 100000;",
"hensai",
"100000",
"for(int i=0;i<n;i++){\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n }",
"{\n hensai *= 105;\n hensai = (long)Math.ceil((double)hensai/100000);\n hensai *=1000;\n }",
"hensai *= 105",
"hensai",
"105",
"hensai = (long)Math.ceil((double)hensai/100000)",
"hensai",
"(long)Math.ceil((double)hensai/100000)",
"Math.ceil",
"Math",
"(double)hensai/100000",
"(double)hensai",
"100000",
"hensai *=1000",
"hensai",
"1000",
"System.out.println((long)hensai)",
"System.out.println",
"System.out",
"System",
"System.out",
"(long)hensai",
"String[] args",
"args"
] | import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
double hensai = 100000;
for(int i=0;i<n;i++){
hensai *= 105;
hensai = (long)Math.ceil((double)hensai/100000);
hensai *=1000;
}
System.out.println((long)hensai);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
6,
60
],
[
60,
61
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint ans = 100000;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint ans = 100000;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint ans = 100000;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\t\n\t\tint ans = 100000;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int ans = 100000;",
"ans",
"100000",
"for(int i = 0; i < n; i++){\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tans += ans / 20;\n\t\t\tif(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}\n\t\t}",
"ans += ans / 20",
"ans",
"ans / 20",
"ans",
"20",
"if(ans % 1000 != 0){\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}",
"ans % 1000 != 0",
"ans % 1000",
"ans",
"1000",
"0",
"{\n\t\t\t\tans = ans / 1000 * 1000 + 1000;\n\t\t\t}",
"ans = ans / 1000 * 1000 + 1000",
"ans",
"ans / 1000 * 1000 + 1000",
"ans / 1000 * 1000",
"ans / 1000",
"ans",
"1000",
"1000",
"1000",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int ans = 100000;
for(int i = 0; i < n; i++){
ans += ans / 20;
if(ans % 1000 != 0){
ans = ans / 1000 * 1000 + 1000;
}
}
System.out.println(ans);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] | [
"import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint m = 100000;\n\t\tint n = cin.nextInt();\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint m = 100000;\n\t\tint n = cin.nextInt();\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint m = 100000;\n\t\tint n = cin.nextInt();\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t}",
"main",
"{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint m = 100000;\n\t\tint n = cin.nextInt();\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t}",
"Scanner cin = new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int m = 100000;",
"m",
"100000",
"int n = cin.nextInt();",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"for(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}",
"{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}",
"m *= 1.05",
"m",
"1.05",
"m = (m+999)/1000*1000",
"m",
"(m+999)/1000*1000",
"(m+999)/1000",
"(m+999)",
"m",
"999",
"1000",
"1000",
"System.out.println(m)",
"System.out.println",
"System.out",
"System",
"System.out",
"m",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint m = 100000;\n\t\tint n = cin.nextInt();\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint m = 100000;\n\t\tint n = cin.nextInt();\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tm *= 1.05;\n\t\t\tm = (m+999)/1000*1000;\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
int m = 100000;
int n = cin.nextInt();
for(int i=0; i<n; i++)
{
m *= 1.05;
m = (m+999)/1000*1000;
}
System.out.println(m);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
20,
41,
13,
17,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
14,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
12,
73
],
[
73,
74
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\t//็ต้้ฑๆฐ\n\t\tint n = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine()); \n\t\t//่จ็ฎ็ตๆ\n\t\tint result = 100000;\n\t\t\n\t\t//n้ฑ้ๅพใฎๅ้ใ่จ็ฎ\n\t\t//0้ฑ้ใชใ่จ็ฎใใ่กจ็คบ\n\t\tif (n != 0) {\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\t//็ต้้ฑๆฐ\n\t\tint n = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine()); \n\t\t//่จ็ฎ็ตๆ\n\t\tint result = 100000;\n\t\t\n\t\t//n้ฑ้ๅพใฎๅ้ใ่จ็ฎ\n\t\t//0้ฑ้ใชใ่จ็ฎใใ่กจ็คบ\n\t\tif (n != 0) {\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException {\n\t\t//็ต้้ฑๆฐ\n\t\tint n = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine()); \n\t\t//่จ็ฎ็ตๆ\n\t\tint result = 100000;\n\t\t\n\t\t//n้ฑ้ๅพใฎๅ้ใ่จ็ฎ\n\t\t//0้ฑ้ใชใ่จ็ฎใใ่กจ็คบ\n\t\tif (n != 0) {\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"main",
"{\n\t\t//็ต้้ฑๆฐ\n\t\tint n = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine()); \n\t\t//่จ็ฎ็ตๆ\n\t\tint result = 100000;\n\t\t\n\t\t//n้ฑ้ๅพใฎๅ้ใ่จ็ฎ\n\t\t//0้ฑ้ใชใ่จ็ฎใใ่กจ็คบ\n\t\tif (n != 0) {\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"int n = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine());",
"n",
"Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine())",
"Integer.parseInt",
"Integer",
"new BufferedReader(new InputStreamReader(System.in), 64).readLine()",
"new BufferedReader(new InputStreamReader(System.in), 64).readLine",
"new BufferedReader(new InputStreamReader(System.in), 64)",
"int result = 100000;",
"result",
"100000",
"if (n != 0) {\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tfor(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int i = 0; i < n;i++){\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tresult =(int)(result + (result * 0.05));\n\t\t\t\tif((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}\n\t\t\t}",
"result =(int)(result + (result * 0.05))",
"result",
"(int)(result + (result * 0.05))",
"result",
"(result * 0.05)",
"result",
"0.05",
"if((result % 1000) != 0 ){\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}",
"(result % 1000) != 0",
"(result % 1000)",
"result",
"1000",
"0",
"{\n\t\t\t\t\tresult = ((int)(result / 1000) + 1) * 1000;\n\t\t\t\t}",
"result = ((int)(result / 1000) + 1) * 1000",
"result",
"((int)(result / 1000) + 1) * 1000",
"((int)(result / 1000) + 1)",
"(int)(result / 1000)",
"result",
"1000",
"1",
"1000",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args)throws IOException {
//็ต้้ฑๆฐ
int n = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in), 64).readLine());
//่จ็ฎ็ตๆ
int result = 100000;
//n้ฑ้ๅพใฎๅ้ใ่จ็ฎ
//0้ฑ้ใชใ่จ็ฎใใ่กจ็คบ
if (n != 0) {
for(int i = 0; i < n;i++){
result =(int)(result + (result * 0.05));
if((result % 1000) != 0 ){
result = ((int)(result / 1000) + 1) * 1000;
}
}
}
System.out.println(result);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
14,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
14,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
42,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
42,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
14,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
12,
74
],
[
74,
75
]
] | [
"/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint num = 100000;\n\t\tint nums,numc;\n\t\tScanner s = new Scanner(System.in);\n\t\tint weeks = s.nextInt();\n\t\tfor(int i = 0;i < weeks;i++){\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(num);\n\t\t\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint num = 100000;\n\t\tint nums,numc;\n\t\tScanner s = new Scanner(System.in);\n\t\tint weeks = s.nextInt();\n\t\tfor(int i = 0;i < weeks;i++){\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(num);\n\t\t\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tint num = 100000;\n\t\tint nums,numc;\n\t\tScanner s = new Scanner(System.in);\n\t\tint weeks = s.nextInt();\n\t\tfor(int i = 0;i < weeks;i++){\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(num);\n\t\t\n\t}",
"main",
"{\n\t\tint num = 100000;\n\t\tint nums,numc;\n\t\tScanner s = new Scanner(System.in);\n\t\tint weeks = s.nextInt();\n\t\tfor(int i = 0;i < weeks;i++){\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(num);\n\t\t\n\t}",
"int num = 100000;",
"num",
"100000",
"int nums",
"nums",
"numc;",
"numc",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int weeks = s.nextInt();",
"weeks",
"s.nextInt()",
"s.nextInt",
"s",
"for(int i = 0;i < weeks;i++){\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tnum *= 1.05; \n\t\t\tnums = num % 1000;\n\t\t\tnumc = num / 1000;\n\t\t\t\n\t\t\tif(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}\n\t\t}",
"num *= 1.05",
"num",
"1.05",
"nums = num % 1000",
"nums",
"num % 1000",
"num",
"1000",
"numc = num / 1000",
"numc",
"num / 1000",
"num",
"1000",
"if(nums > 0){\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}",
"nums > 0",
"nums",
"0",
"{\n\t\t\t\tnum = numc * 1000 + 1000;\n\t\t\t}",
"num = numc * 1000 + 1000",
"num",
"numc * 1000 + 1000",
"numc * 1000",
"numc",
"1000",
"1000",
"System.out.println(num)",
"System.out.println",
"System.out",
"System",
"System.out",
"num",
"String[] args",
"args"
] | /* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
int num = 100000;
int nums,numc;
Scanner s = new Scanner(System.in);
int weeks = s.nextInt();
for(int i = 0;i < weeks;i++){
num *= 1.05;
nums = num % 1000;
numc = num / 1000;
if(nums > 0){
num = numc * 1000 + 1000;
}
}
System.out.println(num);
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
11,
1,
2,
0,
13,
4,
18,
18,
13,
13,
17,
1,
0,
13,
2,
2,
2,
13,
17,
13,
17,
30,
11,
1,
0,
13,
17,
2,
40,
13,
17,
1,
0,
13,
8,
2,
2,
13,
13,
17,
2,
13,
2,
13,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
5,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
14,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
14,
35
],
[
5,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
48,
59
],
[
36,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
5,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
3,
70
],
[
70,
71
]
] | [
"class Main{public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}}",
"class Main{public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}}",
"Main",
"public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}",
"main",
"{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}",
"double y=1e5;",
"y",
"1e5",
"int n=0",
"n",
"0",
"i;",
"i",
"for(;(i=System.in.read())>32;n=n*10+i-48);",
";",
"(i=System.in.read())>32",
"(i=System.in.read())",
"i",
"System.in.read()",
"System.in.read",
"System.in",
"System",
"System.in",
"32",
"n=n*10+i-48",
"n=n*10+i-48",
"n",
"n*10+i-48",
"n*10+i",
"n*10",
"n",
"10",
"i",
"48",
";",
"for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;",
"i=1000;",
"i=1000",
"i",
"1000",
"n-->0",
"n--",
"n",
"0",
"y+=y%i>0?i-y%i:0",
"y+=y%i>0?i-y%i:0",
"y",
"y%i>0?i-y%i:0",
"y%i>0",
"y%i",
"y",
"i",
"0",
"i-y%i",
"i",
"y%i",
"y",
"i",
"0",
"y*=1.05;",
"y*=1.05",
"y",
"1.05",
"System.out.println((int)y)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int)y",
"String[]g",
"g"
] | class Main{public static void main(String[]g)throws Exception{double y=1e5;int n=0,i;for(;(i=System.in.read())>32;n=n*10+i-48);for(i=1000;n-->0;y+=y%i>0?i-y%i:0)y*=1.05;System.out.println((int)y);}}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
17,
30,
0,
13,
2,
2,
2,
2,
13,
17,
17,
17,
17,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
6
],
[
6,
7
],
[
6,
8
],
[
74,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
44,
52
],
[
33,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
56,
58
],
[
11,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
74,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\tint w = sc.nextInt();\n\t\tint p = 100000;\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\tint w = sc.nextInt();\n\t\tint p = 100000;\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"void run(){\n\t\tint w = sc.nextInt();\n\t\tint p = 100000;\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}",
"run",
"{\n\t\tint w = sc.nextInt();\n\t\tint p = 100000;\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}",
"int w = sc.nextInt();",
"w",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int p = 100000;",
"p",
"100000",
"for(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < w",
"i",
"w",
"i++",
"i++",
"i",
"{\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}",
"if((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}",
"(p*1.05)%1000 > 0",
"(p*1.05)%1000",
"(p*1.05)",
"p",
"1.05",
"1000",
"0",
"{\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}",
"p = ((int)(p * 1.05)/1000+1)*1000",
"p",
"((int)(p * 1.05)/1000+1)*1000",
"((int)(p * 1.05)/1000+1)",
"(int)(p * 1.05)/1000",
"(int)(p * 1.05)",
"p",
"1.05",
"1000",
"1",
"1000",
"{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}",
"p = (int)(p * 1.05)",
"p",
"(int)(p * 1.05)",
"p",
"1.05",
"System.out.println(p)",
"System.out.println",
"System.out",
"System",
"System.out",
"p",
"public static void main(String[] args) {\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\tint w = sc.nextInt();\n\t\tint p = 100000;\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\tint w = sc.nextInt();\n\t\tint p = 100000;\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif((p*1.05)%1000 > 0){\n\t\t\t\tp = ((int)(p * 1.05)/1000+1)*1000;\n\t\t\t}else{\n\t\t\t\tp = (int)(p * 1.05);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(p);\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
Scanner sc = new Scanner(System.in);
void run(){
int w = sc.nextInt();
int p = 100000;
for(int i = 0; i < w; i++){
if((p*1.05)%1000 > 0){
p = ((int)(p * 1.05)/1000+1)*1000;
}else{
p = (int)(p * 1.05);
}
}
System.out.println(p);
}
public static void main(String[] args) {
new Main().run();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
20,
41,
13,
17,
41,
13,
11,
1,
2,
17,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
8,
2,
2,
13,
13,
17,
2,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
66,
11
],
[
66,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
28,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
40,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
45,
54
],
[
14,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
12,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());\n\t\tint val = 100;//ๅฃฑ็พๅๅ\n\t\tdouble exactVal;\n\t\tfor (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}\n\t\tSystem.out.println(val * 1000);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());\n\t\tint val = 100;//ๅฃฑ็พๅๅ\n\t\tdouble exactVal;\n\t\tfor (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}\n\t\tSystem.out.println(val * 1000);\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());\n\t\tint val = 100;//ๅฃฑ็พๅๅ\n\t\tdouble exactVal;\n\t\tfor (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}\n\t\tSystem.out.println(val * 1000);\n\t}",
"main",
"{\n\t\tint period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());\n\t\tint val = 100;//ๅฃฑ็พๅๅ\n\t\tdouble exactVal;\n\t\tfor (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}\n\t\tSystem.out.println(val * 1000);\n\t}",
"int period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());",
"period",
"Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine())",
"Integer.parseInt",
"Integer",
"new BufferedReader(new InputStreamReader(System.in)).readLine()",
"new BufferedReader(new InputStreamReader(System.in)).readLine",
"new BufferedReader(new InputStreamReader(System.in))",
"int val = 100;",
"val",
"100",
"double exactVal;",
"exactVal",
"for (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}",
";",
"0 < period",
"0",
"period",
"period--",
"period--",
"period",
"{\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}",
"{\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}",
"exactVal = val * 1.05",
"exactVal",
"val * 1.05",
"val",
"1.05",
"val = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal)",
"val",
"(int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal)",
"exactVal - (int) exactVal > 0",
"exactVal - (int) exactVal",
"exactVal",
"(int) exactVal",
"0",
"exactVal + 1",
"exactVal",
"1",
"exactVal",
"System.out.println(val * 1000)",
"System.out.println",
"System.out",
"System",
"System.out",
"val * 1000",
"val",
"1000",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());\n\t\tint val = 100;//ๅฃฑ็พๅๅ\n\t\tdouble exactVal;\n\t\tfor (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}\n\t\tSystem.out.println(val * 1000);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());\n\t\tint val = 100;//ๅฃฑ็พๅๅ\n\t\tdouble exactVal;\n\t\tfor (; 0 < period; period--) {\n\t\t\texactVal = val * 1.05;\n\t\t\tval = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);\n\t\t}\n\t\tSystem.out.println(val * 1000);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws NumberFormatException, IOException {
int period = Integer.parseInt(new BufferedReader(new InputStreamReader(System.in)).readLine());
int val = 100;//ๅฃฑ็พๅๅ
double exactVal;
for (; 0 < period; period--) {
exactVal = val * 1.05;
val = (int) (exactVal - (int) exactVal > 0 ? exactVal + 1 : exactVal);
}
System.out.println(val * 1000);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
2,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
17,
18,
13,
13,
0,
13,
2,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
76,
8
],
[
76,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
9,
14
],
[
14,
15
],
[
76,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
18,
27
],
[
27,
28
],
[
27,
29
],
[
18,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
50,
52
],
[
42,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
42,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
64,
68
],
[
18,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] | [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main{\n\n public static void main(String[] args) {\n\n exec();\n }\n\n private static void exec() {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n // ๅ้้ก\n float debt = 100000;\n\n // n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ\n for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }\n\n System.out.println((int) debt);\n }\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n public static void main(String[] args) {\n\n exec();\n }\n\n private static void exec() {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n // ๅ้้ก\n float debt = 100000;\n\n // n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ\n for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }\n\n System.out.println((int) debt);\n }\n}",
"Main",
"public static void main(String[] args) {\n\n exec();\n }",
"main",
"{\n\n exec();\n }",
"exec()",
"exec",
"String[] args",
"args",
"private static void exec() {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n // ๅ้้ก\n float debt = 100000;\n\n // n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ\n for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }\n\n System.out.println((int) debt);\n }",
"exec",
"{\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n // ๅ้้ก\n float debt = 100000;\n\n // n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ\n for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }\n\n System.out.println((int) debt);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"float debt = 100000;",
"debt",
"100000",
"for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }",
"{\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }",
"debt = debt + (debt / 20)",
"debt",
"debt + (debt / 20)",
"debt",
"(debt / 20)",
"debt",
"20",
"BigDecimal bd1 = new BigDecimal(debt / 1000);",
"bd1",
"new BigDecimal(debt / 1000)",
"BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);",
"bd2",
"bd1.setScale(0, BigDecimal.ROUND_UP)",
"bd1.setScale",
"bd1",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"debt = bd2.intValue() * 1000",
"debt",
"bd2.intValue() * 1000",
"bd2.intValue()",
"bd2.intValue",
"bd2",
"1000",
"System.out.println((int) debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) debt",
"public class Main{\n\n public static void main(String[] args) {\n\n exec();\n }\n\n private static void exec() {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n // ๅ้้ก\n float debt = 100000;\n\n // n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ\n for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }\n\n System.out.println((int) debt);\n }\n}",
"public class Main{\n\n public static void main(String[] args) {\n\n exec();\n }\n\n private static void exec() {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n // ๅ้้ก\n float debt = 100000;\n\n // n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ\n for (int i = 0; i < n; i++) {\n\n // ๅฉๅญ5%ใ่ฟฝๅ \n debt = debt + (debt / 20);\n\n // ๅ้ใฎ1000ๅๆชๆบๅใไธใ\n BigDecimal bd1 = new BigDecimal(debt / 1000);\n BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);\n debt = bd2.intValue() * 1000;\n }\n\n System.out.println((int) debt);\n }\n}",
"Main"
] | import java.math.BigDecimal;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
exec();
}
private static void exec() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
// ๅ้้ก
float debt = 100000;
// n้ฑ้ๅพใฎๅ้ๆฎ้ซ่จ็ฎ
for (int i = 0; i < n; i++) {
// ๅฉๅญ5%ใ่ฟฝๅ
debt = debt + (debt / 20);
// ๅ้ใฎ1000ๅๆชๆบๅใไธใ
BigDecimal bd1 = new BigDecimal(debt / 1000);
BigDecimal bd2 = bd1.setScale(0, BigDecimal.ROUND_UP);
debt = bd2.intValue() * 1000;
}
System.out.println((int) debt);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
92,
11
],
[
92,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
18,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
26,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
18,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
37,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
49,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
37,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
12,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"main",
"{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n in.close();\n }",
"in.close()",
"in.close",
"in",
"{\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n }",
"int week = Integer.valueOf(in.readLine());",
"week",
"Integer.valueOf(in.readLine())",
"Integer.valueOf",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"int debt = 100000;",
"debt",
"100000",
"for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }",
"{\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }",
"debt = (int) (debt * 1.05)",
"debt",
"(int) (debt * 1.05)",
"debt",
"1.05",
"if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }",
"debt % 1000 > 0",
"debt % 1000",
"debt",
"1000",
"0",
"{\n debt = (debt / 1000 + 1) * 1000;\n }",
"debt = (debt / 1000 + 1) * 1000",
"debt",
"(debt / 1000 + 1) * 1000",
"(debt / 1000 + 1)",
"debt / 1000",
"debt",
"1000",
"1",
"1000",
"System.out.println(debt)",
"System.out.println",
"System.out",
"System",
"System.out",
"debt",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n int week = Integer.valueOf(in.readLine());\n int debt = 100000;\n\n for (int i = 0; i < week; i++) {\n\n debt = (int) (debt * 1.05);\n\n if (debt % 1000 > 0) {\n debt = (debt / 1000 + 1) * 1000;\n }\n }\n\n System.out.println(debt);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try {
int week = Integer.valueOf(in.readLine());
int debt = 100000;
for (int i = 0; i < week; i++) {
debt = (int) (debt * 1.05);
if (debt % 1000 > 0) {
debt = (debt / 1000 + 1) * 1000;
}
}
System.out.println(debt);
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
41,
13,
20,
0,
13,
2,
4,
18,
4,
18,
13,
17,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
81,
8
],
[
81,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
30,
31
],
[
31,
32
],
[
24,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
45,
56
],
[
56,
57
],
[
56,
58
],
[
45,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
61,
71
],
[
24,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
9,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble loan = 100000;\n\t\tint week;\n\n\t\twhile ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}\n\t}\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble loan = 100000;\n\t\tint week;\n\n\t\twhile ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble loan = 100000;\n\t\tint week;\n\n\t\twhile ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble loan = 100000;\n\t\tint week;\n\n\t\twhile ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"double loan = 100000;",
"loan",
"100000",
"int week;",
"week",
"while ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}",
"(scan.hasNext())",
"scan.hasNext",
"scan",
"{\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}",
"week = Integer.parseInt(scan.next())",
"week",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"for (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}",
"{\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}",
"loan = loan * 1.05",
"loan",
"loan * 1.05",
"loan",
"1.05",
"loan = loan / 1000.0",
"loan",
"loan / 1000.0",
"loan",
"1000.0",
"BigDecimal bi = new BigDecimal(String.valueOf(loan));",
"bi",
"new BigDecimal(String.valueOf(loan))",
"loan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0",
"loan",
"(bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0",
"(bi.setScale(0, BigDecimal.ROUND_UP).doubleValue())",
"bi.setScale(0, BigDecimal.ROUND_UP).doubleValue",
"bi.setScale(0, BigDecimal.ROUND_UP)",
"bi.setScale",
"bi",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"1000.0",
"System.out.println((int) loan)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) loan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble loan = 100000;\n\t\tint week;\n\n\t\twhile ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble loan = 100000;\n\t\tint week;\n\n\t\twhile ((scan.hasNext())) {\n\t\t\tweek = Integer.parseInt(scan.next());\n\t\t\tfor (int i = 0; i < week; i++) {\n\t\t\t\tloan = loan * 1.05;\n\n\t\t\t\tloan = loan / 1000.0;\n\t\t\t\tBigDecimal bi = new BigDecimal(String.valueOf(loan));\n\t\t\t\tloan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;\n\t\t\t}\n\t\t\tSystem.out.println((int) loan);\n\n\t\t}\n\t}\n}",
"Main"
] | import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double loan = 100000;
int week;
while ((scan.hasNext())) {
week = Integer.parseInt(scan.next());
for (int i = 0; i < week; i++) {
loan = loan * 1.05;
loan = loan / 1000.0;
BigDecimal bi = new BigDecimal(String.valueOf(loan));
loan = (bi.setScale(0, BigDecimal.ROUND_UP).doubleValue()) * 1000.0;
}
System.out.println((int) loan);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
17,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
2,
13,
17,
17,
40,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
19,
21
],
[
16,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
31,
37
],
[
16,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
6,
42
],
[
42,
43
],
[
66,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
46,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
44,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tstatic int debt(int n){\n\t\tint x = 100000;\n\t\twhile( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\n\t\tSystem.out.println(debt(n));\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tstatic int debt(int n){\n\t\tint x = 100000;\n\t\twhile( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\n\t\tSystem.out.println(debt(n));\n\t}\n}",
"Main",
"static int debt(int n){\n\t\tint x = 100000;\n\t\twhile( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\treturn x;\n\t}",
"debt",
"{\n\t\tint x = 100000;\n\t\twhile( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\treturn x;\n\t}",
"int x = 100000;",
"x",
"100000",
"while( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}",
"n > 0",
"n",
"0",
"{\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}",
"x *= (1 + 0.05)",
"x",
"(1 + 0.05)",
"1",
"0.05",
"if( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}",
"x%1000 != 0",
"x%1000",
"x",
"1000",
"0",
"{\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}",
"x = x - x%1000 + 1000",
"x",
"x - x%1000 + 1000",
"x - x%1000",
"x",
"x%1000",
"x",
"1000",
"1000",
"n--",
"n",
"return x;",
"x",
"int n",
"n",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\n\t\tSystem.out.println(debt(n));\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\n\t\tSystem.out.println(debt(n));\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"System.out.println(debt(n))",
"System.out.println",
"System.out",
"System",
"System.out",
"debt(n)",
"debt",
"n",
"String[] args",
"args",
"public class Main{\n\tstatic int debt(int n){\n\t\tint x = 100000;\n\t\twhile( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\n\t\tSystem.out.println(debt(n));\n\t}\n}",
"public class Main{\n\tstatic int debt(int n){\n\t\tint x = 100000;\n\t\twhile( n > 0 ){\n\t\t\tx *= (1 + 0.05);\n\t\t\tif( x%1000 != 0 ){\n\t\t\t\tx = x - x%1000 + 1000;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\n\t\tSystem.out.println(debt(n));\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
static int debt(int n){
int x = 100000;
while( n > 0 ){
x *= (1 + 0.05);
if( x%1000 != 0 ){
x = x - x%1000 + 1000;
}
n--;
}
return x;
}
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
System.out.println(debt(n));
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
2,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
17,
0,
13,
17,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
73,
5
],
[
73,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
40,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] | [
"import java.io.*;\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 100000;\n\t\tdouble debt = sum * 0.05;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 100000;\n\t\tdouble debt = sum * 0.05;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 100000;\n\t\tdouble debt = sum * 0.05;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"main",
"{\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 100000;\n\t\tdouble debt = sum * 0.05;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}",
"BufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int sum = 100000;",
"sum",
"100000",
"double debt = sum * 0.05;",
"debt",
"sum * 0.05",
"sum",
"0.05",
"for (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}",
"{\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}",
"sum += debt",
"sum",
"debt",
"if (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}",
"sum % 1000 != 0",
"sum % 1000",
"sum",
"1000",
"0",
"{\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}",
"sum -= sum % 1000",
"sum",
"sum % 1000",
"sum",
"1000",
"sum += 1000",
"sum",
"1000",
"debt = sum * 0.05",
"debt",
"sum * 0.05",
"sum",
"0.05",
"System.out.println(sum)",
"System.out.println",
"System.out",
"System",
"System.out",
"sum",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 100000;\n\t\tdouble debt = sum * 0.05;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tint sum = 100000;\n\t\tdouble debt = sum * 0.05;\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsum += debt;\n\t\t\tif (sum % 1000 != 0) {\n\t\t\t\tsum -= sum % 1000;\n\t\t\t\tsum += 1000;\n\t\t\t}\n\t\t\tdebt = sum * 0.05;\n\t\t}\n\t\tSystem.out.println(sum);\n\t}\n\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int sum = 100000;
double debt = sum * 0.05;
for (int i = 0; i < n; i++) {
sum += debt;
if (sum % 1000 != 0) {
sum -= sum % 1000;
sum += 1000;
}
debt = sum * 0.05;
}
System.out.println(sum);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
13,
0,
13,
2,
4,
18,
13,
2,
13,
17,
17,
29,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
75,
5
],
[
75,
6
],
[
6,
7
],
[
6,
8
],
[
75,
9
],
[
9,
10
],
[
9,
11
],
[
75,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
12,
34
],
[
34,
35
],
[
75,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
54,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
38,
70
],
[
70,
71
],
[
36,
72
],
[
72,
73
],
[
0,
74
],
[
74,
75
],
[
74,
76
]
] | [
"import java.util.Scanner;\n\n/**\n * \n * @author hiranoi\n *\n * ?????????????????ยง??????????????????????????ยฐ??ยฃ?????? ???????????????????\\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????\n * ???????\\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????\n * \n * ??ยด??ยฐ n ?????\\?????????n??ยฑ???????????????????????????????????????????????ยฐ?????????????????????????????????\n *\n */\npublic class Main {\n static final int DEBT = 100000;\n static final double PER = 1.05;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int week = Integer.parseInt(sc.nextLine());\n System.out.println(calcDebt(week));\n }\n\n private static int calcDebt(int week) {\n double nowDebt = DEBT; // ??ยจ??????????????????\n for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }\n return (int) nowDebt;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n static final int DEBT = 100000;\n static final double PER = 1.05;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int week = Integer.parseInt(sc.nextLine());\n System.out.println(calcDebt(week));\n }\n\n private static int calcDebt(int week) {\n double nowDebt = DEBT; // ??ยจ??????????????????\n for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }\n return (int) nowDebt;\n }\n}",
"Main",
"static final int DEBT = 100000;",
"DEBT",
"100000",
"static final double PER = 1.05;",
"PER",
"1.05",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int week = Integer.parseInt(sc.nextLine());\n System.out.println(calcDebt(week));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int week = Integer.parseInt(sc.nextLine());\n System.out.println(calcDebt(week));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int week = Integer.parseInt(sc.nextLine());",
"week",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"System.out.println(calcDebt(week))",
"System.out.println",
"System.out",
"System",
"System.out",
"calcDebt(week)",
"calcDebt",
"week",
"String[] args",
"args",
"private static int calcDebt(int week) {\n double nowDebt = DEBT; // ??ยจ??????????????????\n for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }\n return (int) nowDebt;\n }",
"calcDebt",
"{\n double nowDebt = DEBT; // ??ยจ??????????????????\n for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }\n return (int) nowDebt;\n }",
"double nowDebt = DEBT;",
"nowDebt",
"DEBT",
"for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }",
"{\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }",
"nowDebt = nowDebt * PER",
"nowDebt",
"nowDebt * PER",
"nowDebt",
"PER",
"nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000",
"nowDebt",
"(int) Math.ceil((double) nowDebt / 1000) * 1000",
"(int) Math.ceil((double) nowDebt / 1000)",
"Math.ceil",
"Math",
"(double) nowDebt / 1000",
"(double) nowDebt",
"1000",
"1000",
"return (int) nowDebt;",
"(int) nowDebt",
"int week",
"week",
"public class Main {\n static final int DEBT = 100000;\n static final double PER = 1.05;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int week = Integer.parseInt(sc.nextLine());\n System.out.println(calcDebt(week));\n }\n\n private static int calcDebt(int week) {\n double nowDebt = DEBT; // ??ยจ??????????????????\n for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }\n return (int) nowDebt;\n }\n}",
"public class Main {\n static final int DEBT = 100000;\n static final double PER = 1.05;\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int week = Integer.parseInt(sc.nextLine());\n System.out.println(calcDebt(week));\n }\n\n private static int calcDebt(int week) {\n double nowDebt = DEBT; // ??ยจ??????????????????\n for (int i = 0; i < week; i++) {\n nowDebt = nowDebt * PER;\n nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;\n }\n return (int) nowDebt;\n }\n}",
"Main"
] | import java.util.Scanner;
/**
*
* @author hiranoi
*
* ?????????????????ยง??????????????????????????ยฐ??ยฃ?????? ???????????????????\?????????? 10 ???????????????????????????????????ยจ??????????????????????????ยจ???????????????
* ???????\???????????????ยฑ????????ยจ??? 5% ???????????????????????????????????????????????? 1,000 ?????????????????????????????????
*
* ??ยด??ยฐ n ?????\?????????n??ยฑ???????????????????????????????????????????????ยฐ?????????????????????????????????
*
*/
public class Main {
static final int DEBT = 100000;
static final double PER = 1.05;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int week = Integer.parseInt(sc.nextLine());
System.out.println(calcDebt(week));
}
private static int calcDebt(int week) {
double nowDebt = DEBT; // ??ยจ??????????????????
for (int i = 0; i < week; i++) {
nowDebt = nowDebt * PER;
nowDebt = (int) Math.ceil((double) nowDebt / 1000) * 1000;
}
return (int) nowDebt;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
17,
14,
2,
2,
13,
17,
17,
0,
13,
2,
2,
13,
2,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
25,
37
],
[
37,
38
],
[
37,
39
],
[
25,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
25,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint n = Integer.parseInt(buf);\n\n\t\t\tlong money = 100000;\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint n = Integer.parseInt(buf);\n\n\t\t\tlong money = 100000;\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint n = Integer.parseInt(buf);\n\n\t\t\tlong money = 100000;\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tString buf = br.readLine();\n\t\t\tint n = Integer.parseInt(buf);\n\n\t\t\tlong money = 100000;\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tString buf = br.readLine();\n\t\t\tint n = Integer.parseInt(buf);\n\n\t\t\tlong money = 100000;\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}",
"catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.out.println(\"Exception!\");\n\t\t}",
"System.out.println(\"Exception!\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Exception!\"",
"{\n\t\t\tString buf = br.readLine();\n\t\t\tint n = Integer.parseInt(buf);\n\n\t\t\tlong money = 100000;\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}\n\t\t\tSystem.out.println(money);\n\t\t}",
"String buf = br.readLine();",
"buf",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(buf);",
"n",
"Integer.parseInt(buf)",
"Integer.parseInt",
"Integer",
"buf",
"long money = 100000;",
"money",
"100000",
"for (int i=0;i<n;i++) {\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}",
"{\n\t\t\t\tmoney = (money/100)*105;\n\t\t\t\tif (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;\n\t\t\t}",
"money = (money/100)*105",
"money",
"(money/100)*105",
"(money/100)",
"money",
"100",
"105",
"if (money%1000>0)\n\t\t\t\t\tmoney = money-money%1000+1000;",
"money%1000>0",
"money%1000",
"money",
"1000",
"0",
"money = money-money%1000+1000",
"money",
"money-money%1000+1000",
"money-money%1000",
"money",
"money%1000",
"money",
"1000",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String args[]",
"args"
] | import java.io.*;
class Main {
public static void main(String args[]) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String buf = br.readLine();
int n = Integer.parseInt(buf);
long money = 100000;
for (int i=0;i<n;i++) {
money = (money/100)*105;
if (money%1000>0)
money = money-money%1000+1000;
}
System.out.println(money);
} catch (Exception e) {
System.out.println("Exception!");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
0,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
29,
2,
13,
8,
2,
2,
13,
13,
17,
17,
2,
13,
13,
23,
13,
23,
13,
12,
13,
30,
29,
2,
13,
8,
2,
2,
13,
13,
17,
17,
2,
13,
2,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
105,
11
],
[
105,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
14,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
12,
60
],
[
60,
61
],
[
105,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
68,
75
],
[
75,
76
],
[
75,
77
],
[
62,
78
],
[
78,
79
],
[
62,
80
],
[
80,
81
],
[
105,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
88,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
82,
100
],
[
100,
101
],
[
82,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int money = 100000; //่ฟใ้้ก\n int week = Integer.parseInt(reader.readLine());\n int roundingDigit = 1000; //ไฝๅใซไธธใใใ\n \n for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }\n System.out.println(money);\n }\n\n public static int ceil(int n, int digit) {\n return n - (n % digit == 0 ? 0 : n % digit);\n }\n \n public static int floor(int n, int digit) {\n return n + (n % digit == 0 ? 0 : digit - n % digit);\n }\n \n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int money = 100000; //่ฟใ้้ก\n int week = Integer.parseInt(reader.readLine());\n int roundingDigit = 1000; //ไฝๅใซไธธใใใ\n \n for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }\n System.out.println(money);\n }\n\n public static int ceil(int n, int digit) {\n return n - (n % digit == 0 ? 0 : n % digit);\n }\n \n public static int floor(int n, int digit) {\n return n + (n % digit == 0 ? 0 : digit - n % digit);\n }\n \n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int money = 100000; //่ฟใ้้ก\n int week = Integer.parseInt(reader.readLine());\n int roundingDigit = 1000; //ไฝๅใซไธธใใใ\n \n for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }\n System.out.println(money);\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int money = 100000; //่ฟใ้้ก\n int week = Integer.parseInt(reader.readLine());\n int roundingDigit = 1000; //ไฝๅใซไธธใใใ\n \n for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }\n System.out.println(money);\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int money = 100000;",
"money",
"100000",
"int week = Integer.parseInt(reader.readLine());",
"week",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int roundingDigit = 1000;",
"roundingDigit",
"1000",
"for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < week",
"i",
"week",
"i++",
"i++",
"i",
"{\n money *= 1.05;\n money = floor(money, roundingDigit);\n }",
"{\n money *= 1.05;\n money = floor(money, roundingDigit);\n }",
"money *= 1.05",
"money",
"1.05",
"money = floor(money, roundingDigit)",
"money",
"floor(money, roundingDigit)",
"floor",
"money",
"roundingDigit",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args",
"public static int ceil(int n, int digit) {\n return n - (n % digit == 0 ? 0 : n % digit);\n }",
"ceil",
"{\n return n - (n % digit == 0 ? 0 : n % digit);\n }",
"return n - (n % digit == 0 ? 0 : n % digit);",
"n - (n % digit == 0 ? 0 : n % digit)",
"n",
"(n % digit == 0 ? 0 : n % digit)",
"n % digit == 0",
"n % digit",
"n",
"digit",
"0",
"0",
"n % digit",
"n",
"digit",
"int n",
"n",
"int digit",
"digit",
"public static int floor(int n, int digit) {\n return n + (n % digit == 0 ? 0 : digit - n % digit);\n }",
"floor",
"{\n return n + (n % digit == 0 ? 0 : digit - n % digit);\n }",
"return n + (n % digit == 0 ? 0 : digit - n % digit);",
"n + (n % digit == 0 ? 0 : digit - n % digit)",
"n",
"(n % digit == 0 ? 0 : digit - n % digit)",
"n % digit == 0",
"n % digit",
"n",
"digit",
"0",
"0",
"digit - n % digit",
"digit",
"n % digit",
"n",
"digit",
"int n",
"n",
"int digit",
"digit",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int money = 100000; //่ฟใ้้ก\n int week = Integer.parseInt(reader.readLine());\n int roundingDigit = 1000; //ไฝๅใซไธธใใใ\n \n for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }\n System.out.println(money);\n }\n\n public static int ceil(int n, int digit) {\n return n - (n % digit == 0 ? 0 : n % digit);\n }\n \n public static int floor(int n, int digit) {\n return n + (n % digit == 0 ? 0 : digit - n % digit);\n }\n \n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int money = 100000; //่ฟใ้้ก\n int week = Integer.parseInt(reader.readLine());\n int roundingDigit = 1000; //ไฝๅใซไธธใใใ\n \n for (int i = 0; i < week; i++) {\n money *= 1.05;\n money = floor(money, roundingDigit);\n }\n System.out.println(money);\n }\n\n public static int ceil(int n, int digit) {\n return n - (n % digit == 0 ? 0 : n % digit);\n }\n \n public static int floor(int n, int digit) {\n return n + (n % digit == 0 ? 0 : digit - n % digit);\n }\n \n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int money = 100000; //่ฟใ้้ก
int week = Integer.parseInt(reader.readLine());
int roundingDigit = 1000; //ไฝๅใซไธธใใใ
for (int i = 0; i < week; i++) {
money *= 1.05;
money = floor(money, roundingDigit);
}
System.out.println(money);
}
public static int ceil(int n, int digit) {
return n - (n % digit == 0 ? 0 : n % digit);
}
public static int floor(int n, int digit) {
return n + (n % digit == 0 ? 0 : digit - n % digit);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
2,
17,
17,
41,
13,
17,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
13,
17,
17,
17,
17,
0,
13,
2,
2,
2,
2,
2,
13,
17,
17,
17,
17,
17,
0,
13,
2,
2,
13,
17,
17,
4,
13,
2,
17,
13,
4,
18,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
127,
20
],
[
127,
21
],
[
21,
22
],
[
127,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
127,
28
],
[
28,
29
],
[
28,
30
],
[
127,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
42,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
59,
67
],
[
58,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
73,
78
],
[
71,
79
],
[
70,
80
],
[
58,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
33,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
33,
93
],
[
93,
94
],
[
94,
95
],
[
127,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
96,
105
],
[
105,
106
],
[
127,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
107,
116
],
[
116,
117
],
[
127,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
118,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.util.*;\nimport java.lang.*;\nimport java.math.*;\nimport java.io.*;\n\nimport static java.lang.Math.*;\nimport static java.util.Arrays.*;\n\npublic class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ans=100000;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}\n\t\tprintln(\"\"+ans);\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.util.Arrays.*;",
"import static java.util.Arrays.*;",
"import static java.util.Arrays.*;",
"public class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ans=100000;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}\n\t\tprintln(\"\"+ans);\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"Main",
"Scanner sc;",
"sc",
"static final int INF=1<<28;",
"INF",
"1<<28",
"1",
"28",
"static final double EPS=1e-9;",
"EPS",
"1e-9",
"void run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ans=100000;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}\n\t\tprintln(\"\"+ans);\n\t\tsc.close();\n\t}",
"run",
"{\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ans=100000;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}\n\t\tprintln(\"\"+ans);\n\t\tsc.close();\n\t}",
"sc=new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int ans=100000;",
"ans",
"100000",
"for(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}",
"{\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}",
"if((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;",
"(ans*105/100)%1000!=0",
"(ans*105/100)%1000",
"(ans*105/100)",
"ans*105",
"ans",
"105",
"100",
"1000",
"0",
"ans=(ans*105/100/1000+1)*1000",
"ans",
"(ans*105/100/1000+1)*1000",
"(ans*105/100/1000+1)",
"ans*105/100/1000",
"ans*105/100/1000",
"ans*105",
"ans",
"105",
"100",
"1000",
"1",
"1000",
"ans=ans*105/100",
"ans",
"ans*105/100",
"ans*105",
"ans",
"105",
"100",
"println(\"\"+ans)",
"println",
"\"\"+ans",
"\"\"",
"ans",
"sc.close()",
"sc.close",
"sc",
"void print(String s){\n\t\tSystem.out.print(s);\n\t}",
"print",
"{\n\t\tSystem.out.print(s);\n\t}",
"System.out.print(s)",
"System.out.print",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"void println(String s){\n\t\tSystem.out.println(s);\n\t}",
"println",
"{\n\t\tSystem.out.println(s);\n\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"public static void main(String[] args){\n\t\tnew Main().run();\n\t}",
"main",
"{\n\t\tnew Main().run();\n\t}",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ans=100000;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}\n\t\tprintln(\"\"+ans);\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"public class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint ans=100000;\n\t\tfor(int i=0; i<n; i++){\n\t\t\tif((ans*105/100)%1000!=0)\n\t\t\t\tans=(ans*105/100/1000+1)*1000;\n\t\t\telse\n\t\t\t\tans=ans*105/100;\n\t\t}\n\t\tprintln(\"\"+ans);\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
public class Main{
Scanner sc;
static final int INF=1<<28;
static final double EPS=1e-9;
void run(){
sc=new Scanner(System.in);
int n=sc.nextInt();
int ans=100000;
for(int i=0; i<n; i++){
if((ans*105/100)%1000!=0)
ans=(ans*105/100/1000+1)*1000;
else
ans=ans*105/100;
}
println(""+ans);
sc.close();
}
void print(String s){
System.out.print(s);
}
void println(String s){
System.out.println(s);
}
public static void main(String[] args){
new Main().run();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
29,
13,
0,
13,
2,
17,
13,
41,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
13,
17,
0,
13,
2,
2,
13,
13,
2,
13,
13,
29,
4,
13,
13,
40,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
97,
11
],
[
97,
12
],
[
12,
13
],
[
12,
14
],
[
97,
15
],
[
15,
16
],
[
15,
17
],
[
97,
18
],
[
18,
19
],
[
18,
20
],
[
97,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
23,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
21,
47
],
[
47,
48
],
[
97,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
51,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
51,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
51,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
51,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
90,
91
],
[
49,
92
],
[
92,
93
],
[
49,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n /** ้ฑๅฉ */\n private static final double INTEREST_WEEK = 0.05;\n\n /** ็นฐใไธใๅไฝ */\n private static final int ROUND_UP_UNIT = 1000;\n\n /** ๅ
้ */\n private static final int PRINCIPAL = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));\n int intInputWeek = Integer.parseInt(bufferedReader.readLine());\n\n // ๅ้่จ็ฎ\n double totalDebt = calcDebt(PRINCIPAL, intInputWeek);\n System.out.println((int) totalDebt);\n }\n\n /**\n * ๅ้่จ็ฎใกใฝใใ๏ผ้ฑๅฉ0.05%๏ผ\n * @param debt ็พๅจใฎๅ้\n * @param week ็พๅจใฎๆฎใ้ฑ\n * @return ๅ้้ก\n */\n private static double calcDebt(double debt, int week) {\n if (week == 0) {\n return debt;\n }\n debt *= 1 + INTEREST_WEEK;\n\n // 1000ๅๆชๆบใฏๅใไธใใ\n double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);\n if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;\n\n return calcDebt(debt, --week);\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n /** ้ฑๅฉ */\n private static final double INTEREST_WEEK = 0.05;\n\n /** ็นฐใไธใๅไฝ */\n private static final int ROUND_UP_UNIT = 1000;\n\n /** ๅ
้ */\n private static final int PRINCIPAL = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));\n int intInputWeek = Integer.parseInt(bufferedReader.readLine());\n\n // ๅ้่จ็ฎ\n double totalDebt = calcDebt(PRINCIPAL, intInputWeek);\n System.out.println((int) totalDebt);\n }\n\n /**\n * ๅ้่จ็ฎใกใฝใใ๏ผ้ฑๅฉ0.05%๏ผ\n * @param debt ็พๅจใฎๅ้\n * @param week ็พๅจใฎๆฎใ้ฑ\n * @return ๅ้้ก\n */\n private static double calcDebt(double debt, int week) {\n if (week == 0) {\n return debt;\n }\n debt *= 1 + INTEREST_WEEK;\n\n // 1000ๅๆชๆบใฏๅใไธใใ\n double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);\n if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;\n\n return calcDebt(debt, --week);\n }\n\n}",
"Main",
"/** ้ฑๅฉ */\n private static final double INTEREST_WEEK = 0.05;",
"INTEREST_WEEK",
"0.05",
"/** ็นฐใไธใๅไฝ */\n private static final int ROUND_UP_UNIT = 1000;",
"ROUND_UP_UNIT",
"1000",
"/** ๅ
้ */\n private static final int PRINCIPAL = 100000;",
"PRINCIPAL",
"100000",
"public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));\n int intInputWeek = Integer.parseInt(bufferedReader.readLine());\n\n // ๅ้่จ็ฎ\n double totalDebt = calcDebt(PRINCIPAL, intInputWeek);\n System.out.println((int) totalDebt);\n }",
"main",
"{\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));\n int intInputWeek = Integer.parseInt(bufferedReader.readLine());\n\n // ๅ้่จ็ฎ\n double totalDebt = calcDebt(PRINCIPAL, intInputWeek);\n System.out.println((int) totalDebt);\n }",
"BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));",
"bufferedReader",
"new BufferedReader(\n new InputStreamReader(System.in))",
"int intInputWeek = Integer.parseInt(bufferedReader.readLine());",
"intInputWeek",
"Integer.parseInt(bufferedReader.readLine())",
"Integer.parseInt",
"Integer",
"bufferedReader.readLine()",
"bufferedReader.readLine",
"bufferedReader",
"double totalDebt = calcDebt(PRINCIPAL, intInputWeek);",
"totalDebt",
"calcDebt(PRINCIPAL, intInputWeek)",
"calcDebt",
"PRINCIPAL",
"intInputWeek",
"System.out.println((int) totalDebt)",
"System.out.println",
"System.out",
"System",
"System.out",
"(int) totalDebt",
"String[] args",
"args",
"/**\n * ๅ้่จ็ฎใกใฝใใ๏ผ้ฑๅฉ0.05%๏ผ\n * @param debt ็พๅจใฎๅ้\n * @param week ็พๅจใฎๆฎใ้ฑ\n * @return ๅ้้ก\n */\n private static double calcDebt(double debt, int week) {\n if (week == 0) {\n return debt;\n }\n debt *= 1 + INTEREST_WEEK;\n\n // 1000ๅๆชๆบใฏๅใไธใใ\n double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);\n if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;\n\n return calcDebt(debt, --week);\n }",
"calcDebt",
"{\n if (week == 0) {\n return debt;\n }\n debt *= 1 + INTEREST_WEEK;\n\n // 1000ๅๆชๆบใฏๅใไธใใ\n double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);\n if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;\n\n return calcDebt(debt, --week);\n }",
"if (week == 0) {\n return debt;\n }",
"week == 0",
"week",
"0",
"{\n return debt;\n }",
"return debt;",
"debt",
"debt *= 1 + INTEREST_WEEK",
"debt",
"1 + INTEREST_WEEK",
"1",
"INTEREST_WEEK",
"double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);",
"debtPlus",
"debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT)",
"debt / ROUND_UP_UNIT",
"debt",
"ROUND_UP_UNIT",
"(int) (debt / ROUND_UP_UNIT)",
"debt",
"ROUND_UP_UNIT",
"if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;",
"debtPlus > 0",
"debtPlus",
"0",
"debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT",
"debt",
"debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT",
"debt + ROUND_UP_UNIT",
"debt",
"ROUND_UP_UNIT",
"debtPlus * ROUND_UP_UNIT",
"debtPlus",
"ROUND_UP_UNIT",
"return calcDebt(debt, --week);",
"calcDebt(debt, --week)",
"calcDebt",
"debt",
"--week",
"week",
"double debt",
"debt",
"int week",
"week",
"public class Main {\n\n /** ้ฑๅฉ */\n private static final double INTEREST_WEEK = 0.05;\n\n /** ็นฐใไธใๅไฝ */\n private static final int ROUND_UP_UNIT = 1000;\n\n /** ๅ
้ */\n private static final int PRINCIPAL = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));\n int intInputWeek = Integer.parseInt(bufferedReader.readLine());\n\n // ๅ้่จ็ฎ\n double totalDebt = calcDebt(PRINCIPAL, intInputWeek);\n System.out.println((int) totalDebt);\n }\n\n /**\n * ๅ้่จ็ฎใกใฝใใ๏ผ้ฑๅฉ0.05%๏ผ\n * @param debt ็พๅจใฎๅ้\n * @param week ็พๅจใฎๆฎใ้ฑ\n * @return ๅ้้ก\n */\n private static double calcDebt(double debt, int week) {\n if (week == 0) {\n return debt;\n }\n debt *= 1 + INTEREST_WEEK;\n\n // 1000ๅๆชๆบใฏๅใไธใใ\n double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);\n if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;\n\n return calcDebt(debt, --week);\n }\n\n}",
"public class Main {\n\n /** ้ฑๅฉ */\n private static final double INTEREST_WEEK = 0.05;\n\n /** ็นฐใไธใๅไฝ */\n private static final int ROUND_UP_UNIT = 1000;\n\n /** ๅ
้ */\n private static final int PRINCIPAL = 100000;\n\n public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(System.in));\n int intInputWeek = Integer.parseInt(bufferedReader.readLine());\n\n // ๅ้่จ็ฎ\n double totalDebt = calcDebt(PRINCIPAL, intInputWeek);\n System.out.println((int) totalDebt);\n }\n\n /**\n * ๅ้่จ็ฎใกใฝใใ๏ผ้ฑๅฉ0.05%๏ผ\n * @param debt ็พๅจใฎๅ้\n * @param week ็พๅจใฎๆฎใ้ฑ\n * @return ๅ้้ก\n */\n private static double calcDebt(double debt, int week) {\n if (week == 0) {\n return debt;\n }\n debt *= 1 + INTEREST_WEEK;\n\n // 1000ๅๆชๆบใฏๅใไธใใ\n double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);\n if (debtPlus > 0)\n debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;\n\n return calcDebt(debt, --week);\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
/** ้ฑๅฉ */
private static final double INTEREST_WEEK = 0.05;
/** ็นฐใไธใๅไฝ */
private static final int ROUND_UP_UNIT = 1000;
/** ๅ
้ */
private static final int PRINCIPAL = 100000;
public static void main(String[] args) throws IOException {
BufferedReader bufferedReader = new BufferedReader(
new InputStreamReader(System.in));
int intInputWeek = Integer.parseInt(bufferedReader.readLine());
// ๅ้่จ็ฎ
double totalDebt = calcDebt(PRINCIPAL, intInputWeek);
System.out.println((int) totalDebt);
}
/**
* ๅ้่จ็ฎใกใฝใใ๏ผ้ฑๅฉ0.05%๏ผ
* @param debt ็พๅจใฎๅ้
* @param week ็พๅจใฎๆฎใ้ฑ
* @return ๅ้้ก
*/
private static double calcDebt(double debt, int week) {
if (week == 0) {
return debt;
}
debt *= 1 + INTEREST_WEEK;
// 1000ๅๆชๆบใฏๅใไธใใ
double debtPlus = debt / ROUND_UP_UNIT - (int) (debt / ROUND_UP_UNIT);
if (debtPlus > 0)
debt = debt + ROUND_UP_UNIT - debtPlus * ROUND_UP_UNIT;
return calcDebt(debt, --week);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
67,
5
],
[
67,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
44,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
8,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
6,
64
],
[
64,
65
],
[
0,
66
],
[
66,
67
],
[
66,
68
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint years;\n\t\tint money=100000;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tyears = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint years;\n\t\tint money=100000;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tyears = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint years;\n\t\tint money=100000;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tyears = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"main",
"{\n\t\tint years;\n\t\tint money=100000;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tyears = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}",
"int years;",
"years",
"int money=100000;",
"money",
"100000",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"years = scanner.nextInt()",
"years",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<years",
"i",
"years",
"i++",
"i++",
"i",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}",
"{\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}",
"money *= 1.05",
"money",
"1.05",
"if(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}",
"money % 1000 != 0",
"money % 1000",
"money",
"1000",
"0",
"{\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}",
"money = money / 1000",
"money",
"money / 1000",
"money",
"1000",
"money = money * 1000",
"money",
"money * 1000",
"money",
"1000",
"money += 1000",
"money",
"1000",
"System.out.println(money)",
"System.out.println",
"System.out",
"System",
"System.out",
"money",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint years;\n\t\tint money=100000;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tyears = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint years;\n\t\tint money=100000;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tyears = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<years; i++){\n\t\t\tmoney *= 1.05;\n\t\t\tif(money % 1000 != 0){\n\t\t\t\tmoney = money / 1000;\n\t\t\t\tmoney = money * 1000;\n\t\t\t\tmoney += 1000;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(money);\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int years;
int money=100000;
Scanner scanner = new Scanner(System.in);
years = scanner.nextInt();
for(int i=0; i<years; i++){
money *= 1.05;
if(money % 1000 != 0){
money = money / 1000;
money = money * 1000;
money += 1000;
}
}
System.out.println(money);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
12,
13,
30,
41,
13,
4,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
29,
13,
12,
13,
30,
41,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
13,
13,
17,
18,
13,
13,
0,
13,
4,
18,
13,
4,
18,
13,
13,
29,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
112,
14
],
[
112,
15
],
[
15,
16
],
[
15,
17
],
[
112,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
112,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
112,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
30,
45
],
[
45,
46
],
[
112,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
49,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
49,
64
],
[
64,
65
],
[
112,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
72,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
87,
93
],
[
87,
94
],
[
87,
95
],
[
95,
96
],
[
95,
97
],
[
84,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
68,
107
],
[
107,
108
],
[
66,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\n/**\n * 0007:Debt Hellใฎ่งฃ็ญ\n * \n * @author MS14A\n * @version 2015/04/15\n */\npublic class Main {\n\n /** ๅๆๅ้้ก๏ผ10ไธๅ */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");\n\n /** ๅฉๅญ๏ผ5% */\n private static final BigDecimal INTEREST_RATE = BigDecimal.valueOf(0.05);\n\n /** \\1000ๆชๆบใฎ็นฐใไธใ่จ็ฎ็จ */\n private static final BigDecimal DIVISOR_FOR_ROUND_UP = BigDecimal.valueOf(1000);\n\n /**\n * n ้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ<br>\n * โปn ใฏ 100 ไปฅไธใจใใใ\n * \n * @param args\n * @throws IOException \n */\n public static void main(String[] args) throws IOException {\n // ๆจๆบๅ
ฅๅ่ชญใฟๅใ\n int weeks = getWeeks();\n\n // n้ฑ้ๅพใฎๅ้้ก่จ็ฎ\n System.out.println(calcDebt(weeks));\n }\n\n /**\n * ๆจๆบๅ
ฅๅใ่ชญใฟๅใใ\"n\"ใฎๅคใ่ฟใใ\n * \n * @return n๏ผๅ
ฅๅๅค\n * @throws IOException \n */\n private static int getWeeks() throws IOException {\n \n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n \n int n = Integer.parseInt(bufferedReader.readLine());\n \n/* Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();*/\n \n return n;\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้้กใ่จ็ฎใใใ\n * \n * @param weeks\n */\n private static BigDecimal calcDebt(int weeks) {\n BigDecimal finalDebt = INITIAL_DEBT;\n\n for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }\n\n return finalDebt;\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"public class Main {\n\n /** ๅๆๅ้้ก๏ผ10ไธๅ */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");\n\n /** ๅฉๅญ๏ผ5% */\n private static final BigDecimal INTEREST_RATE = BigDecimal.valueOf(0.05);\n\n /** \\1000ๆชๆบใฎ็นฐใไธใ่จ็ฎ็จ */\n private static final BigDecimal DIVISOR_FOR_ROUND_UP = BigDecimal.valueOf(1000);\n\n /**\n * n ้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ<br>\n * โปn ใฏ 100 ไปฅไธใจใใใ\n * \n * @param args\n * @throws IOException \n */\n public static void main(String[] args) throws IOException {\n // ๆจๆบๅ
ฅๅ่ชญใฟๅใ\n int weeks = getWeeks();\n\n // n้ฑ้ๅพใฎๅ้้ก่จ็ฎ\n System.out.println(calcDebt(weeks));\n }\n\n /**\n * ๆจๆบๅ
ฅๅใ่ชญใฟๅใใ\"n\"ใฎๅคใ่ฟใใ\n * \n * @return n๏ผๅ
ฅๅๅค\n * @throws IOException \n */\n private static int getWeeks() throws IOException {\n \n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n \n int n = Integer.parseInt(bufferedReader.readLine());\n \n/* Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();*/\n \n return n;\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้้กใ่จ็ฎใใใ\n * \n * @param weeks\n */\n private static BigDecimal calcDebt(int weeks) {\n BigDecimal finalDebt = INITIAL_DEBT;\n\n for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }\n\n return finalDebt;\n }\n\n}",
"Main",
"/** ๅๆๅ้้ก๏ผ10ไธๅ */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");",
"INITIAL_DEBT",
"new BigDecimal(\"100000\")",
"/** ๅฉๅญ๏ผ5% */\n private static final BigDecimal INTEREST_RATE = BigDecimal.valueOf(0.05);",
"INTEREST_RATE",
"BigDecimal.valueOf(0.05)",
"BigDecimal.valueOf",
"BigDecimal",
"0.05",
"/** \\1000ๆชๆบใฎ็นฐใไธใ่จ็ฎ็จ */\n private static final BigDecimal DIVISOR_FOR_ROUND_UP = BigDecimal.valueOf(1000);",
"DIVISOR_FOR_ROUND_UP",
"BigDecimal.valueOf(1000)",
"BigDecimal.valueOf",
"BigDecimal",
"1000",
"/**\n * n ้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ<br>\n * โปn ใฏ 100 ไปฅไธใจใใใ\n * \n * @param args\n * @throws IOException \n */\n public static void main(String[] args) throws IOException {\n // ๆจๆบๅ
ฅๅ่ชญใฟๅใ\n int weeks = getWeeks();\n\n // n้ฑ้ๅพใฎๅ้้ก่จ็ฎ\n System.out.println(calcDebt(weeks));\n }",
"main",
"{\n // ๆจๆบๅ
ฅๅ่ชญใฟๅใ\n int weeks = getWeeks();\n\n // n้ฑ้ๅพใฎๅ้้ก่จ็ฎ\n System.out.println(calcDebt(weeks));\n }",
"int weeks = getWeeks();",
"weeks",
"getWeeks()",
"getWeeks",
"System.out.println(calcDebt(weeks))",
"System.out.println",
"System.out",
"System",
"System.out",
"calcDebt(weeks)",
"calcDebt",
"weeks",
"String[] args",
"args",
"/**\n * ๆจๆบๅ
ฅๅใ่ชญใฟๅใใ\"n\"ใฎๅคใ่ฟใใ\n * \n * @return n๏ผๅ
ฅๅๅค\n * @throws IOException \n */\n private static int getWeeks() throws IOException {\n \n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n \n int n = Integer.parseInt(bufferedReader.readLine());\n \n/* Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();*/\n \n return n;\n }",
"getWeeks",
"{\n \n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n \n int n = Integer.parseInt(bufferedReader.readLine());\n \n/* Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();*/\n \n return n;\n }",
"InputStreamReader streamReader = new InputStreamReader(System.in);",
"streamReader",
"new InputStreamReader(System.in)",
"BufferedReader bufferedReader = new BufferedReader(streamReader);",
"bufferedReader",
"new BufferedReader(streamReader)",
"int n = Integer.parseInt(bufferedReader.readLine());",
"n",
"Integer.parseInt(bufferedReader.readLine())",
"Integer.parseInt",
"Integer",
"bufferedReader.readLine()",
"bufferedReader.readLine",
"bufferedReader",
"return n;",
"n",
"/**\n * n้ฑ้ๅพใฎๅ้้กใ่จ็ฎใใใ\n * \n * @param weeks\n */\n private static BigDecimal calcDebt(int weeks) {\n BigDecimal finalDebt = INITIAL_DEBT;\n\n for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }\n\n return finalDebt;\n }",
"calcDebt",
"{\n BigDecimal finalDebt = INITIAL_DEBT;\n\n for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }\n\n return finalDebt;\n }",
"BigDecimal finalDebt = INITIAL_DEBT;",
"finalDebt",
"INITIAL_DEBT",
"for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < weeks",
"i",
"weeks",
"i++",
"i++",
"i",
"{\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }",
"{\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }",
"BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);",
"interestAmount",
"finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP)",
"finalDebt.multiply(INTEREST_RATE)\n .divide",
"finalDebt.multiply(INTEREST_RATE)",
"finalDebt.multiply",
"finalDebt",
"INTEREST_RATE",
"DIVISOR_FOR_ROUND_UP",
"0",
"BigDecimal.ROUND_UP",
"BigDecimal",
"BigDecimal.ROUND_UP",
"finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP))",
"finalDebt",
"finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP))",
"finalDebt.add",
"finalDebt",
"interestAmount.multiply(DIVISOR_FOR_ROUND_UP)",
"interestAmount.multiply",
"interestAmount",
"DIVISOR_FOR_ROUND_UP",
"return finalDebt;",
"finalDebt",
"int weeks",
"weeks",
"public class Main {\n\n /** ๅๆๅ้้ก๏ผ10ไธๅ */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");\n\n /** ๅฉๅญ๏ผ5% */\n private static final BigDecimal INTEREST_RATE = BigDecimal.valueOf(0.05);\n\n /** \\1000ๆชๆบใฎ็นฐใไธใ่จ็ฎ็จ */\n private static final BigDecimal DIVISOR_FOR_ROUND_UP = BigDecimal.valueOf(1000);\n\n /**\n * n ้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ<br>\n * โปn ใฏ 100 ไปฅไธใจใใใ\n * \n * @param args\n * @throws IOException \n */\n public static void main(String[] args) throws IOException {\n // ๆจๆบๅ
ฅๅ่ชญใฟๅใ\n int weeks = getWeeks();\n\n // n้ฑ้ๅพใฎๅ้้ก่จ็ฎ\n System.out.println(calcDebt(weeks));\n }\n\n /**\n * ๆจๆบๅ
ฅๅใ่ชญใฟๅใใ\"n\"ใฎๅคใ่ฟใใ\n * \n * @return n๏ผๅ
ฅๅๅค\n * @throws IOException \n */\n private static int getWeeks() throws IOException {\n \n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n \n int n = Integer.parseInt(bufferedReader.readLine());\n \n/* Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();*/\n \n return n;\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้้กใ่จ็ฎใใใ\n * \n * @param weeks\n */\n private static BigDecimal calcDebt(int weeks) {\n BigDecimal finalDebt = INITIAL_DEBT;\n\n for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }\n\n return finalDebt;\n }\n\n}",
"public class Main {\n\n /** ๅๆๅ้้ก๏ผ10ไธๅ */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");\n\n /** ๅฉๅญ๏ผ5% */\n private static final BigDecimal INTEREST_RATE = BigDecimal.valueOf(0.05);\n\n /** \\1000ๆชๆบใฎ็นฐใไธใ่จ็ฎ็จ */\n private static final BigDecimal DIVISOR_FOR_ROUND_UP = BigDecimal.valueOf(1000);\n\n /**\n * n ้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ<br>\n * โปn ใฏ 100 ไปฅไธใจใใใ\n * \n * @param args\n * @throws IOException \n */\n public static void main(String[] args) throws IOException {\n // ๆจๆบๅ
ฅๅ่ชญใฟๅใ\n int weeks = getWeeks();\n\n // n้ฑ้ๅพใฎๅ้้ก่จ็ฎ\n System.out.println(calcDebt(weeks));\n }\n\n /**\n * ๆจๆบๅ
ฅๅใ่ชญใฟๅใใ\"n\"ใฎๅคใ่ฟใใ\n * \n * @return n๏ผๅ
ฅๅๅค\n * @throws IOException \n */\n private static int getWeeks() throws IOException {\n \n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n \n int n = Integer.parseInt(bufferedReader.readLine());\n \n/* Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();*/\n \n return n;\n }\n\n /**\n * n้ฑ้ๅพใฎๅ้้กใ่จ็ฎใใใ\n * \n * @param weeks\n */\n private static BigDecimal calcDebt(int weeks) {\n BigDecimal finalDebt = INITIAL_DEBT;\n\n for (int i = 0; i < weeks; i++) {\n // ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ\n BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)\n .divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);\n\n // ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก\n finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));\n }\n\n return finalDebt;\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
/**
* 0007:Debt Hellใฎ่งฃ็ญ
*
* @author MS14A
* @version 2015/04/15
*/
public class Main {
/** ๅๆๅ้้ก๏ผ10ไธๅ */
private static final BigDecimal INITIAL_DEBT = new BigDecimal("100000");
/** ๅฉๅญ๏ผ5% */
private static final BigDecimal INTEREST_RATE = BigDecimal.valueOf(0.05);
/** \1000ๆชๆบใฎ็นฐใไธใ่จ็ฎ็จ */
private static final BigDecimal DIVISOR_FOR_ROUND_UP = BigDecimal.valueOf(1000);
/**
* n ้ฑ้ๅพใฎๅ้ใฎๆฎ้ซใๅบๅใใใ<br>
* โปn ใฏ 100 ไปฅไธใจใใใ
*
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
// ๆจๆบๅ
ฅๅ่ชญใฟๅใ
int weeks = getWeeks();
// n้ฑ้ๅพใฎๅ้้ก่จ็ฎ
System.out.println(calcDebt(weeks));
}
/**
* ๆจๆบๅ
ฅๅใ่ชญใฟๅใใ"n"ใฎๅคใ่ฟใใ
*
* @return n๏ผๅ
ฅๅๅค
* @throws IOException
*/
private static int getWeeks() throws IOException {
InputStreamReader streamReader = new InputStreamReader(System.in);
BufferedReader bufferedReader = new BufferedReader(streamReader);
int n = Integer.parseInt(bufferedReader.readLine());
/* Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();*/
return n;
}
/**
* n้ฑ้ๅพใฎๅ้้กใ่จ็ฎใใใ
*
* @param weeks
*/
private static BigDecimal calcDebt(int weeks) {
BigDecimal finalDebt = INITIAL_DEBT;
for (int i = 0; i < weeks; i++) {
// ๅฉๅญ้ก่จ็ฎใ1000ใงๅฒใฃใๅฐๆฐ้จใ็นฐใไธใใใ
BigDecimal interestAmount = finalDebt.multiply(INTEREST_RATE)
.divide(DIVISOR_FOR_ROUND_UP, 0, BigDecimal.ROUND_UP);
// ๅ้้ก = ๅ้ฑใฎๅ้้ก + ๅฉๅญ้ก
finalDebt = finalDebt.add(interestAmount.multiply(DIVISOR_FOR_ROUND_UP));
}
return finalDebt;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
4,
18,
20,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
2,
13,
17,
17,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
2,
13,
13,
17,
0,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
117,
11
],
[
117,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
12,
24
],
[
24,
25
],
[
117,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
28,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
28,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
45,
49
],
[
28,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
26,
56
],
[
56,
57
],
[
117,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
60,
66
],
[
66,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
80,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
80,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
80,
105
],
[
105,
106
],
[
105,
107
],
[
60,
108
],
[
108,
109
],
[
58,
110
],
[
110,
111
],
[
58,
112
],
[
112,
113
],
[
58,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}\n\t}\n\n\tprivate void solution(BufferedReader br) throws IOException {\n\t\tint base = 100000;\n\t\tint ratio = 5;\n\t\tint term = Integer.parseInt(br.readLine());\n\n\t\tint ans = calc(base, ratio, term);\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate int calc(int base, int ratio, int term) {\n\t\tint result = base;\n\t\tint interest;\n\t\tint fraction;\n\n\t\tfor (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}\n\t\treturn result;\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}\n\t}\n\n\tprivate void solution(BufferedReader br) throws IOException {\n\t\tint base = 100000;\n\t\tint ratio = 5;\n\t\tint term = Integer.parseInt(br.readLine());\n\n\t\tint ans = calc(base, ratio, term);\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate int calc(int base, int ratio, int term) {\n\t\tint result = base;\n\t\tint interest;\n\t\tint fraction;\n\n\t\tfor (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}\n\t\treturn result;\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}\n\t}",
"main",
"{\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}\n\t}",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}",
"{\n\n\t\t\tnew Main().solution(br);\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))",
"new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))",
"new Main().solution(br)",
"new Main().solution",
"new Main()",
"br",
"String[] args",
"args",
"private void solution(BufferedReader br) throws IOException {\n\t\tint base = 100000;\n\t\tint ratio = 5;\n\t\tint term = Integer.parseInt(br.readLine());\n\n\t\tint ans = calc(base, ratio, term);\n\t\tSystem.out.println(ans);\n\t}",
"solution",
"{\n\t\tint base = 100000;\n\t\tint ratio = 5;\n\t\tint term = Integer.parseInt(br.readLine());\n\n\t\tint ans = calc(base, ratio, term);\n\t\tSystem.out.println(ans);\n\t}",
"int base = 100000;",
"base",
"100000",
"int ratio = 5;",
"ratio",
"5",
"int term = Integer.parseInt(br.readLine());",
"term",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int ans = calc(base, ratio, term);",
"ans",
"calc(base, ratio, term)",
"calc",
"base",
"ratio",
"term",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"BufferedReader br",
"br",
"private int calc(int base, int ratio, int term) {\n\t\tint result = base;\n\t\tint interest;\n\t\tint fraction;\n\n\t\tfor (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}\n\t\treturn result;\n\t}",
"calc",
"{\n\t\tint result = base;\n\t\tint interest;\n\t\tint fraction;\n\n\t\tfor (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}\n\t\treturn result;\n\t}",
"int result = base;",
"result",
"base",
"int interest;",
"interest",
"int fraction;",
"fraction",
"for (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= term",
"i",
"term",
"i++",
"i++",
"i",
"{\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}",
"{\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}",
"interest = result / 100 * 5",
"interest",
"result / 100 * 5",
"result / 100",
"result",
"100",
"5",
"fraction = interest % 1000",
"fraction",
"interest % 1000",
"interest",
"1000",
"if (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}",
"fraction != 0",
"fraction",
"0",
"{\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}",
"interest = interest - fraction + 1000",
"interest",
"interest - fraction + 1000",
"interest - fraction",
"interest",
"fraction",
"1000",
"result += interest",
"result",
"interest",
"return result;",
"result",
"int base",
"base",
"int ratio",
"ratio",
"int term",
"term",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}\n\t}\n\n\tprivate void solution(BufferedReader br) throws IOException {\n\t\tint base = 100000;\n\t\tint ratio = 5;\n\t\tint term = Integer.parseInt(br.readLine());\n\n\t\tint ans = calc(base, ratio, term);\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate int calc(int base, int ratio, int term) {\n\t\tint result = base;\n\t\tint interest;\n\t\tint fraction;\n\n\t\tfor (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}\n\t\treturn result;\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))) {\n\n\t\t\tnew Main().solution(br);\n\t\t}\n\t}\n\n\tprivate void solution(BufferedReader br) throws IOException {\n\t\tint base = 100000;\n\t\tint ratio = 5;\n\t\tint term = Integer.parseInt(br.readLine());\n\n\t\tint ans = calc(base, ratio, term);\n\t\tSystem.out.println(ans);\n\t}\n\n\tprivate int calc(int base, int ratio, int term) {\n\t\tint result = base;\n\t\tint interest;\n\t\tint fraction;\n\n\t\tfor (int i = 1; i <= term; i++) {\n\t\t\tinterest = result / 100 * 5;// ??????\n\t\t\tfraction = interest % 1000;// ?????ยฐ\n\t\t\tif (fraction != 0) {\n\t\t\t\tinterest = interest - fraction + 1000;// ??????????????????\n\t\t\t}\n\t\t\t// if(fraction > 500){\n\t\t\t// interest = interest - fraction + 1000;\n\t\t\t// }else{\n\t\t\t// interest = interest - fraction;\n\t\t\t// }\n\t\t\tresult += interest;\n\t\t}\n\t\treturn result;\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
try (BufferedReader br = new BufferedReader(new InputStreamReader(
System.in))) {
new Main().solution(br);
}
}
private void solution(BufferedReader br) throws IOException {
int base = 100000;
int ratio = 5;
int term = Integer.parseInt(br.readLine());
int ans = calc(base, ratio, term);
System.out.println(ans);
}
private int calc(int base, int ratio, int term) {
int result = base;
int interest;
int fraction;
for (int i = 1; i <= term; i++) {
interest = result / 100 * 5;// ??????
fraction = interest % 1000;// ?????ยฐ
if (fraction != 0) {
interest = interest - fraction + 1000;// ??????????????????
}
// if(fraction > 500){
// interest = interest - fraction + 1000;
// }else{
// interest = interest - fraction;
// }
result += interest;
}
return result;
}
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.