node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 29, 30, 38, 5, 13, 30, 29, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 17, 13, 23, 13, 12, 1...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass 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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttr...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ int week = Integer.pa...
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 63, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t// ????????????10??????\n\tpublic static int LOAN = 100000;\n\n\tpublic static void main(String[] args) {\n\n\t\t// ???????????????\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tdouble result ...
import java.util.Scanner; public class Main { // ????????????10?????? public static int LOAN = 100000; public static void main(String[] args) { // ??????????????? @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); int input = sc.nextInt(); double result = LOAN; // ?????±??????????¨??...
[ 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, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 72, 11 ], [ 72, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "\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(S...
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...
[ 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, 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, 17, ...
[ [ 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 ], ...
[ "import java.io.*;\n\npublic class Main{\n\tpublic static void main(String argv[]) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\t\tint weeks = Integer.parseInt(line);\n\t\tfloat debt = 100000;\n\t\tfor(int i=0; i<weeks; i++){\...
import java.io.*; public class Main{ public static void main(String argv[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int weeks = Integer.parseInt(line); float debt = 100000; for(int i=0; i<weeks; i++){ debt *= 1.05f; if(...
[ 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, 2, 17, 4, 18, 13, 2, 2, 13, 17, 17, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 63, 11 ], [ 63, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\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 dou...
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; 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()); double sum = 100...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 14, 2, 0, 13, 4, 18, 13, 17, 29, 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, 14, 2, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tString str = \"\";\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tif((str=bf.readLine())==null)return;\n\t\tbf.close();\n\t\tint n=Integer.parseInt(str);\n\t\tint c=1000...
import java.io.*; public class Main { public static void main(String[] args) throws IOException { String str = ""; BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); if((str=bf.readLine())==null)return; bf.close(); int n=Integer.parseInt(str); int c=100000; for(int i=0;i<n;i++){ ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 18, 20, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 1...
[ [ 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 ], [ 77, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\npublic class Main {\n\n private static final double TAX = 1.05;\n\n /**\n * <p> [??????] n ?????\\???????????¨??????n ??±????????????????????????????????????????????????????????...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main { private static final double TAX = 1.05; /** * <p> [??????] n ?????\???????????¨??????n ??±????????????????????????????????????????????????????????°?????????n ??? ...
[ 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, 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 ], [...
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n int debt=100;\n \n \n \n for(int i=1; i<=n; i++){\n \n debt=(int)Math.ceil(debt*1.05);\n \n }\n \n System.out.println(debt*1000);...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int debt=100; for(int i=1; i<=n; i++){ debt=(int)Math.ceil(debt*1.05); } System.out.println(debt*1000); } }
[ 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, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 2, 13, 17, ...
[ [ 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 ], ...
[ "import java.io.*;\npublic class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tdouble interest = 1.05; \n\t\tdouble debt = 100;\n\t\t\n\t\tfor (int i = 0; i < n...
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()); double interest = 1.05; double debt = 100; for (int i = 0; i < n; i++) { debt = Math.cei...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 30, 14, 2, 13, 17, 4, 18, 13, 0, 13, 17, 30, 0, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 1...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Scanner;\n\npublic class Main {\n\t/**\n\t * ???????????¢??°\n\t * @param args ?????°\n\t * @throws IOException \n\t * @throws NumberFormatExcepti...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { /** * ???????????¢??° * @param args ?????° * @throws IOException * @throws NumberFormatException */ public stati...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 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,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 78, 8 ], [ 78, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n double debt = 100000;\n int x = Integer.p...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { double debt = 100000; int x = Integer.parseInt(br.re...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 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, 13, 14, 2, 2, 13, 17, 17, 30, 0, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.*;\n \npublic class Main {\n public static void main(String args[] ) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n double shakkin = 100000;\n double N = sc.nextInt();\n double totalShakkin = 0;\n \n for (int i=0; i<N; i++){\n ...
import java.util.*; public class Main { public static void main(String args[] ) throws Exception { Scanner sc = new Scanner(System.in); double shakkin = 100000; double N = sc.nextInt(); double totalShakkin = 0; for (int i=0; i<N; i++){ totalShakki...
[ 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, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t throws IOException {\n\t\tBufferedReader br = new BufferedReader(\n\t\t new InputStreamReader(System.in));\n\t\tint v = Integer.parseInt(...
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 v = Integer.parseInt(br.readLine()); int ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 0, 13, 2, 4, 18, 13, 2, 2, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 66, 8 ], [ 66, 9 ], [ 9, 10 ], [ 9, 11 ], [ 66, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tprivate static final int debt = 100000;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint len = sc.nextInt();\n\t\tsc.close();\n\t\tint debtSum = debt;\n\t\tfor (int i = 0...
import java.io.IOException; import java.util.Scanner; public class Main { private static final int debt = 100000; public static void main(String[] a) throws IOException { Scanner sc = new Scanner(System.in); int len = sc.nextInt(); sc.close(); int debtSum = debt; for (int i = 0; i < len; i++) { int no ...
[ 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, 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, 13, 40, 17, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 71, 11 ], [ 71, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.math.BigDecimal;\nimport java.math.RoundingMode;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tdouble loan = 100_000.0...
import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double loan = 100_000.0; // BigDecimal bdl = ne...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 4, 18, 13, 40, 17, 30, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 0, 13, 4, 18, 13, 13, 11, 1, 41, 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] a) {\n\t String line = \"\";\n\t try {\n\t BufferedReader stdReader =\n\t new BufferedReader(new InputStreamReader(System.in));\n\t line = stdReader.readLine();\n...
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] a) { String line = ""; try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); line = stdReader.readLine(); stdReader.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, 4, 18, 4, 18, 13, 4, 18, 13, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, ...
[ [ 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 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint m = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm = Double.valueOf(Math.ceil((double) m * 1.05)).intValue();\n\t\t\tint r = m % 1000;\n\t\t\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); int m = 100000; for (int i = 0; i < n; i++) { m = Double.valueOf(Math.ceil((double) m * 1.05)).intValue(); int r = m % 1000; if (r > 0) { m += 1000 - r; ...
[ 7, 15, 13, 17, 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, 0, 13, 2, 4, 18, 13, 2, 2, 13, 17, 17, 17, 4, 18, 13, 13, 12, 13, 30, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 61, 8 ], [ 61, 9 ], [ 9, 10 ], [ 9, 11 ], [ 61, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.*;\nimport static java.lang.System.*;\n\npublic class Main {\n\n\tScanner sc = new Scanner(in);\n\t\n\tvoid run() {\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm += (int)Math.ceil(m*0.05/1000)*1000;\n\t\t}\n\t\tout.println(m);\n\t}\n\t\n\tpublic static...
import java.util.*; import static java.lang.System.*; public class Main { Scanner sc = new Scanner(in); void run() { int n = sc.nextInt(); int m = 100000; for (int i = 0; i < n; i++) { m += (int)Math.ceil(m*0.05/1000)*1000; } out.println(m); } public static void main(String[] args) { new Main()...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 17, 41, 13, 12, 13, 30, 42, 4, 13, 30, 4, 13, 23, 13, 12, 13, 30, 14, 40, 4, 18, 13, 29, 17, 0, 13, 4, 18, 13, 29, 17, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 82, 9 ], [ 9, 10 ], [ 9, 11 ], [ 82, 12 ], [ 12, 13 ], [ 82, 14 ],...
[ "import java.util.Scanner;\n\n\npublic class Main{\n\t\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tstatic int loan = 100000, week;\n\t\n\tpublic static void main(String[] args) {\n\t\t\n\t\twhile(read()){\n\t\t\tsolve();\n\t\t}\n\n\t}\n\t\n\tpublic static boolean read(){\n\t\tif(!sc.hasNext()) return false;...
import java.util.Scanner; public class Main{ static Scanner sc = new Scanner(System.in); static int loan = 100000, week; public static void main(String[] args) { while(read()){ solve(); } } public static boolean read(){ if(!sc.hasNext()) return false; week = sc.nextInt(); return tru...
[ 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, 2, 2, 2, 13, 17, 17, 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 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int debt = 100000;\n int day = in.nextInt();\n for(int i = 0; i < day; i++){\n debt = (debt * 105 / 100 + 999) / 1000 * 1000;\n }\n Sys...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int debt = 100000; int day = in.nextInt(); for(int i = 0; i < day; i++){ debt = (debt * 105 / 100 + 999) / 1000 * 1000; } System.out.println...
[ 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 13, 13, 4, 18, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 88, 11 ], [ 88, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String argv[]) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tint week = In...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String argv[]) throws IOException { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); int week = Integer.parseInt(br.readL...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 60, 8 ], [ 60, 9 ], [ 9, 10 ], [ 9, 11 ], [ 60, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tprivate static final int debt = 100000;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint len = sc.nextInt();\n\t\tint debtSum = debt;\n\t\tfor (int i = 0; i < len; i++) {...
import java.io.IOException; import java.util.Scanner; public class Main { private static final int debt = 100000; public static void main(String[] a) throws IOException { Scanner sc = new Scanner(System.in); int len = sc.nextInt(); int debtSum = debt; for (int i = 0; i < len; i++) { debtSum = (int) (Math...
[ 7, 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, 17, 0, 13, 2, 2, 13, 17, 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 ], [ 11, 12 ], [ 12, 13 ], [ 5, 14 ], [...
[ "class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tdouble money = 100000;\n\t\t\n\t\tfor( int i = 0 ; i < n ; i++ ){\n\t\t\tmoney *= ( 1.05 );\n\t\t\tmoney += 999;\n\t\t\tmoney = (int)(money/100...
class Main { public static void main( String[] args ) { java.util.Scanner sc = new java.util.Scanner( System.in ); int n = sc.nextInt(); double money = 100000; for( int i = 0 ; i < n ; i++ ){ money *= ( 1.05 ); money += 999; money = (int)(money/1000)*1000; } System.out.println( (int)mon...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 42, 4, 13, 30, 4, 13, 23, 13, 12, 13, 30, 14, 40, 4, 18, 13, 29, 17, 0, 13, 4, 18, 13, 29, 17, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 86, 5 ], [ 86, 6 ], [ 6, 7 ], [ 6, 8 ], [ 86, 9 ], [ 9, 10 ], [ 86, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ]...
[ "import java.util.*;\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int n;\n\n public static void main(String[] args){\n while(read()){\n slove();\n }\n }\n static boolean read(){\n if(!sc.hasNext())return false;\n n = sc.nextInt();\...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int n; public static void main(String[] args){ while(read()){ slove(); } } static boolean read(){ if(!sc.hasNext())return false; n = sc.nextInt(); return tr...
[ 7, 15, 13, 17, 15, 13, 17, 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,...
[ [ 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 ], [ 63, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.math.BigDecimal;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n int debt = 100000;\n int nWeeks = Integer.parseInt(new BufferedReader(new InputStreamR...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.math.BigDecimal; public class Main { public static void main(String args[]) throws IOException { int debt = 100000; int nWeeks = Integer.parseInt(new BufferedReader(new InputStreamReader(System....
[ 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, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 13, 13, 0, 13, 2, 13, 17, 40, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 64, 11 ], [ 64, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main\n{\n\tpublic static void main(String[] arg) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] arg) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int debt = 100000; in...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 13, 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, 13, 0, 13, 4, 18, 13, 2, 13, 17, 0, 13, 17, ...
[ [ 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 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tfinal int principal = 100000;\n\t\tfinal float interest = 0.05f;\n\t\tint debtBal = principal;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= week; i++...
import java.util.Scanner; public class Main { public static void main(String[] args) { final int principal = 100000; final float interest = 0.05f; int debtBal = principal; Scanner scan = new Scanner(System.in); int week = scan.nextInt(); for(int i = 1; i <= week; i++) { debtBal += debtBal * inter...
[ 7, 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, 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, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \t\n \tdouble money = 100;\n \tint week;\n \twhile (scan.hasNextInt()){\n \t\tweek = scan.nextInt();\n \t\tfor(int i = 0; i < week; i++){\n \t\t\tmoney = Math.c...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); double money = 100; int week; while (scan.hasNextInt()){ week = scan.nextInt(); for(int i = 0; i < week; i++){ money = Math.ceil(money*1.05); } ...
[ 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, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 18, ...
[ [ 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 ], [...
[ "import java.io.*;\n \nclass Main{\n public static void main(String[] args) throws Exception{\n \n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n double x = Double.parseDouble(br.readLine());\n double y = 100000;\n long z = 0;\n for (lo...
import java.io.*; class Main{ public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); double x = Double.parseDouble(br.readLine()); double y = 100000; long z = 0; for (long i=0; i<x; i...
[ 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, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 86, 11 ], [ 86, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tint syakkin = 100000;\n\t\tint wee...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args){ InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); int syakkin = 100000; int week = 0; try { week =...
[ 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, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 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 ], ...
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n\n\tvoid run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint m = 100000;\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tm += m * 5 / 100;\n\n\t\t\tint r = m % 1000;\n\t\t\tif(r != 0) {\n\t\t\t\tm += 1000 - r;\n\t\t\t}\n\t\t}\n\n\...
import java.util.Scanner; public class Main { void run() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = 100000; for(int i = 0; i < n; i++) { m += m * 5 / 100; int r = m % 1000; if(r != 0) { m += 1000 - r; } } System.out.println(m); sc.close(); } public st...
[ 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, 13, 17, 0, 13, 17, 4, 18, ...
[ [ 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 ], ...
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tdouble c = 100000;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tc += c*0.05;\n\t\t\tif(c % 1000 != 0) {\n\t\t\t\tc -= c % 1000;\n\t\t\t\tc += 1000;\n\t\t\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); double c = 100000; for(int i = 0; i < n; i++) { c += c*0.05; if(c % 1000 != 0) { c -= c % 1000; c += 1000; } } System.out.printf("%.0f\n",c);...
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 4, 18, 18, 13, 13, 4, 13, 13, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 4, 18,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 71, 5 ], [ 71, 6 ], [ 6, 7 ], [ 6, 8 ], [ 71, 9 ], [ 9, 10 ], [ 9, 11 ], [ 71, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n public static final double FIRST_DEBT = 100000.0;\n public static final double INTEREST = 0.05;\n public static final double CEIL_BASE = 1000.0;\n\n public static void main(String args[]) {\n System.out.println(\n calcDebt(FIRST_DEBT,...
import java.util.Scanner; public class Main { public static final double FIRST_DEBT = 100000.0; public static final double INTEREST = 0.05; public static final double CEIL_BASE = 1000.0; public static void main(String args[]) { System.out.println( calcDebt(FIRST_DEBT, new Scanner(S...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 39, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 138, 11 ], [ 138, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\n\npublic class Main {\n private static final int[] ary = {\n 100000,\n 105000,\n 111000,\n 117000,\n 123000,\n 130000,\n 137000,\n 144000,\n 152000,\n ...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { private static final int[] ary = { 100000, 105000, 111000, 117000, 123000, 130000, 137000, 144000, 152000, 160000, ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 4, 18, 13, 4, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\nclass Main {\n public static final BigDecimal DEPT = new BigDecimal(100000);\n public static final BigDecimal INTEREST = new BigDecimal(\"0.05\");\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int w...
import java.math.BigDecimal; import java.util.Scanner; class Main { public static final BigDecimal DEPT = new BigDecimal(100000); public static final BigDecimal INTEREST = new BigDecimal("0.05"); public static void main(String[] args) { Scanner s = new Scanner(System.in); int week = Integer....
[ 7, 15, 13, 17, 15, 13, 17, 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, 4, 18, 4, 18, 20, 40, 17, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 57, 11 ], [ 57, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Scanner;\nimport java.math.BigDecimal;\nimport java.math.RoundingMode;\n\npublic class Main {\n public static void main(String args[]) {\n int debt = 100000;\n int nWeeks = new Scanner(System.in).nextInt();\n for(int i = 0; i < nWeeks; i++) {\n debt = new BigDeci...
import java.util.Scanner; import java.math.BigDecimal; import java.math.RoundingMode; public class Main { public static void main(String args[]) { int debt = 100000; int nWeeks = new Scanner(System.in).nextInt(); for(int i = 0; i < nWeeks; i++) { debt = new BigDecimal(debt * 1.0...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 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, 2, 17, 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 ], [ 13, 14 ], ...
[ "import java.util.*;\nimport java.io.*;\nclass Main{\n public static void main(String[] args){\n\ttry{\n\t BufferedReader s = new BufferedReader(new InputStreamReader(System.in));\n\t int x = 100000, n = Integer.valueOf(s.readLine());\n\t for(int i=0; i<n; i++){\n\t\tx+=0.05*x;\n\t\tif(x%1000!=0)\n\t\t ...
import java.util.*; import java.io.*; class Main{ public static void main(String[] args){ try{ BufferedReader s = new BufferedReader(new InputStreamReader(System.in)); int x = 100000, n = Integer.valueOf(s.readLine()); for(int i=0; i<n; i++){ x+=0.05*x; if(x%1000!=0) x=1000*(x/1000+1); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 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, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 2, 2, 13, 17, 17, 17, 4, 18, 18, ...
[ [ 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 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] a){\n\t\tlong debt = 100000;\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tdebt *= 1.05f;\n\t\t\tif(debt % 1000 != 0){\n\t\t\t\tdebt = (debt/1000 + 1) * 1000;\n\t\t\t}...
import java.util.Scanner; public class Main { public static void main(String[] a){ long debt = 100000; Scanner scn = new Scanner(System.in); int n = scn.nextInt(); for(int i = 0;i < n;i++){ debt *= 1.05f; if(debt % 1000 != 0){ debt = (debt/1000 + 1) * 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, 4, 18, 18, 13, 13, 4, 18, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 13, 41, 13, 17, 0, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?¨??????\\???????????±??°?????????\n\t\tScanner stdId = new Scanner(System.in);\n\t\tint deptWeek = stdId.nextInt();\n\n\t\t// ??????\n\t\tint dept = 100000;\n\n\t\t// ????????????????????????\n\t\tSystem.out.p...
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\???????????±??°????????? Scanner stdId = new Scanner(System.in); int deptWeek = stdId.nextInt(); // ?????? int dept = 100000; // ???????????????????????? System.out.println(String.valueOf(deptCalc(dept...
[ 7, 15, 13, 17, 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, 0, 13, 2, 4, 18, 13, 2, 2, 13, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 301, 8 ], [ 301, 9 ], [ 9, 10 ], [ 9, 11 ], [ 301, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n static IO io = new IO();\n\n public static void main(String[] args) {\n\n int n = io.nextInt();\n double ans = 100000;\n for (int i = 0; i < n; i++) ans = Math.ceil((ans + ans * 0.05)/1000)*1000;\n System.out.println(...
import java.util.*; import java.io.*; public class Main { static IO io = new IO(); public static void main(String[] args) { int n = io.nextInt(); double ans = 100000; for (int i = 0; i < n; i++) ans = Math.ceil((ans + ans * 0.05)/1000)*1000; System.out.println((int)ans); ...
[ 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, ...
[ [ 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 ], ...
[ "import java.util.*;\npublic class Main \n{\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint sum = 100000;\n\t\tfor(int i = 0; i < n; ++i)\n\t\t{\n\t\t\tsum *= 1.05;\n\t\t\tint remainder = sum % 1000;\n\t\t\tif(remainder > 0)\n\t\t\t...
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int sum = 100000; for(int i = 0; i < n; ++i) { sum *= 1.05; int remainder = sum % 1000; if(remainder > 0) { sum = sum - remainder + 1000; } ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 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, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint n, money = 100000;\n\t\t\tn = Integer.parseInt(reader.readLine());\n\t\t\tfor(int i = 0;i < n;i++) {\n\t\t\t\tmoney = money + (mon...
import java.io.*; class Main { public static void main(String args[]) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n, money = 100000; n = Integer.parseInt(reader.readLine()); for(int i = 0;i < n;i++) { money = money + (money/20); int x = money%10, y =...
[ 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, 2, 13, 17, 0, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n public static void main (String args[]) {\n\tScanner scan = new Scanner(System.in);\n\tint n = scan.nextInt();\n\tdouble debt = 100; //100,000 / 1,000\n\tdouble interest = 0;\n\n\tfor (int i=0; i<n; i++) {\n\t interest = debt * 0.05;\n\t debt += interest;\n\t ...
import java.util.Scanner; class Main { public static void main (String args[]) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); double debt = 100; //100,000 / 1,000 double interest = 0; for (int i=0; i<n; i++) { interest = debt * 0.05; debt += interest; debt = Math.ceil(debt); ...
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 2, 13, 13, 17, 0, 13, 2, 4, 18, 13, 13, 17, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 63, 9 ], [ 9, 10 ], [ 9, 11 ], [ 63, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static final int origin = 100000;\n\tprivate static final double interest = 1.05;\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint num = sc.nextInt();\n\t\tdouble ans = origin;\n\n\t\tfor(int count = ...
import java.util.Scanner; public class Main { private static final int origin = 100000; private static final double interest = 1.05; static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int num = sc.nextInt(); double ans = origin; for(int count = 0; count < num; count++) { ...
[ 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, 4, 18, 13, 2, 2, 13, 17, 17, 17, 4, ...
[ [ 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 ], ...
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\nclass Main {\n public static void main (String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n\n int weeks = sc.nextInt();\n\n int debt = 100000...
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; class Main { public static void main (String[] args) throws IOException { Scanner sc = new Scanner(System.in); int weeks = sc.nextInt(); int debt = 100000; for (...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 17, 0, 13, 2, 13, 13, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\\????????????????????????\n String line = br.readLine();\n\n // ????????????????????´?????????\n ...
import java.io.*; class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\???????????????????????? String line = br.readLine(); // ????????????????????´????????? // String lin...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 11, 1, 0, 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, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint week = scan.nextInt();\n\t\tdouble num = 100000;\n\t\tdouble n=1000.0;\n\t\tint i;\n\t\t\n\t\tfor(i=0;i<week;i++){\n\t\t\tnum *= 1.05;\n\t\t\tnum = Math.ceil(num / n) * n;\n\t\t...
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int week = scan.nextInt(); double num = 100000; double n=1000.0; int i; for(i=0;i<week;i++){ num *= 1.05; num = Math.ceil(num / n) * n; } System.out.println((int)num); scan....
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 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, ...
[ [ 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 ], ...
[ "import java.util.*;\n\npublic class Main{\n \n public static void main(String[] args){\n\tScanner sc =new Scanner(System.in);\n\tint w = sc.nextInt();\n\tint det=100000;\n\tfor(;w>0;w--){\n\t det*=1.05;\n\t if(det%1000!=0){\n\t\tdet=((det/1000)+1)*1000;\n\t }\n\t}\n\tSystem.out.println(det);\n }\...
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int w = sc.nextInt(); int det=100000; for(;w>0;w--){ det*=1.05; if(det%1000!=0){ det=((det/1000)+1)*1000; } } System.out.println(det); } }
[ 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, 14, 2, 2, 13, 17, 17, 0, 13, 2, 2, 13, 17, 2, 13, 17, 4...
[ [ 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 ], ...
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tScanner s=new Scanner(System.in);\n\t\tint N=s.nextInt();\n\t\tint Debt=100000;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tDebt=Debt*105/100;\n\t\t\tif(Debt%1000!=0)Debt=Debt+1000-Debt%1000;\n\t\t}\n\t\tSystem.out.println(Debt);\n\t}\n...
import java.util.*; public class Main { public static void main(String args[]){ Scanner s=new Scanner(System.in); int N=s.nextInt(); int Debt=100000; for(int i=0;i<N;i++){ Debt=Debt*105/100; if(Debt%1000!=0)Debt=Debt+1000-Debt%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, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 17, 2, 13, 17, 4, 18, 18, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 59, 5 ], [ 59, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n double l = 100000;\n for (int i = 1; i <= n; i++) {\n l *= 1.05;\n if (l%1000 != 0) {\n ...
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double l = 100000; for (int i = 1; i <= n; i++) { l *= 1.05; if (l%1000 != 0) { ...
[ 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, 4, 18, 13, 13, 0, 13, 2, 13, 17, 4, 18, 18, ...
[ [ 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 ], ...
[ "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 double debt = 100000;\n\n for(int i = 0; i < n; i++){\n debt *= 1.05;\n double s = debt / 1000;\n ...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double debt = 100000; for(int i = 0; i < n; i++){ debt *= 1.05; double s = debt / 1000; s = Math.ceil(...
[ 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, 4, 18, 13, 2, 13, 17, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 55, 5 ], [ 55, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tdouble p = 100000;\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\tp *= 1.05;\n\t\t\tp = Math.ceil(p / 1000) * 1000;\n\t\t}\n\t\tSystem.out.println((int)p);\...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); double p = 100000; int n = s.nextInt(); for(int i = 0; i < n; ++i) { p *= 1.05; p = Math.ceil(p / 1000) * 1000; } System.out.println((int)p); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 13, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 40, 13, 4, 18, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 94, 11 ], [ 94, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint monthTerm = Integer.parseInt(input());\n\n\t\tint principal = 100000;\n\n\t\twhile (monthTerm != 0) {\n\t\t\tprincipal += principal * 0.05;\n\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { int monthTerm = Integer.parseInt(input()); int principal = 100000; while (monthTerm != 0) { principal += principal * 0.05; int fraction = principal %...
[ 7, 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, 13, 13, 23, 13, 12, 13, 30, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 3...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 96, 8 ], [ 96, 9 ], [ 9, 10 ], [ 9, 11 ], [ 96, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\n\n/**\n * 0007:Debt Hell\n * \n * @author MS14A\n * @version 2015/04/08\n */\npublic class Main {\n\n /** 初期借金額:10万円 */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");\n\n /** 利子:5% */\n private static final BigDecima...
import java.math.BigDecimal; import java.util.Scanner; /** * 0007:Debt Hell * * @author MS14A * @version 2015/04/08 */ public class Main { /** 初期借金額:10万円 */ private static final BigDecimal INITIAL_DEBT = new BigDecimal("100000"); /** 利子:5% */ private static final BigDecimal INTEREST_RATE = BigD...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n while(true) {\n String s = in.readLine();\n if (s == null) {\n ...
import java.io.*; public class Main { public static void main(String[] argv) throws IOException { //* BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); while(true) { String s = in.readLine(); if (s == null) { break; ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 79, 11 ], [ 79, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] a) throws IOException{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] a) throws IOException{ String strLine =""; BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); int week = 0; double lentMoney =...
[ 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, 11, 1, 2, 17, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 13, 17, 23, 13, 10, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 55, 11 ], [ 55, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "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), 128).readLine());\n\t\ts...
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), 128).readLine()); short val = 100;//...
[ 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, 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, 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 ], ...
[ "import java.io.*;\nimport java.util.*;\nclass 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 long debt=100000;\n for(int i=1;i<=n;i++){\n ...
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int n=Integer.parseInt(br.readLine()); long debt=100000; for(int i=1;i<=n;i++){ debt...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 17, 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, ...
[ [ 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 ], ...
[ "import java.text.DecimalFormat;\nimport java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tDecimalFormat df = new DecimalFormat(\"0\");\n\t\tdouble debt = 100000;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tdebt = debt...
import java.text.DecimalFormat; import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); DecimalFormat df = new DecimalFormat("0"); double debt = 100000; for(int i=0;i<n;i++){ debt = debt + (debt * 0.05); if(debt % ...
[ 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, 2, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 13, 17, 40, 13, 0, 13, 2, 13, 17, 40, 13, 4, 18, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 60, 5 ], [ 60, 6 ], [ 6, 7 ], [ 6, 8 ], [ 60, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main{\n static Scanner kbd = new Scanner(System.in);\n public static void main(String[] args){\n\tint n = kbd.nextInt();\n\tint d = 100000;\n\n\twhile(n>0) {\n\t d = (int)(d*1.05);\n\t if(d%1000 != 0){\n\t\td = d/1000;\n\t\td++;\n\t\td = d*1000;\n\t }\n\t n--;\n\...
import java.util.*; public class Main{ static Scanner kbd = new Scanner(System.in); public static void main(String[] args){ int n = kbd.nextInt(); int d = 100000; while(n>0) { d = (int)(d*1.05); if(d%1000 != 0){ d = d/1000; d++; d = d*1000; } n--; } System.out.println(d); } ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 75, 8 ], [ 75, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n//public class Problem0007_DebtHell {\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\t\n\t\t\twhile((line ...
import java.io.BufferedReader; import java.io.InputStreamReader; //public class Problem0007_DebtHell { public class Main { public static void main(String[] args) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String line; while((line = reader.readLine()) != null) ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 2, 17, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n // Round by 3 digits\n static float roundUp(float value) {\n float mod = value % 1000;\n if (mod > 0) {\n value = value + (1000 - mod);\n }\n return value;\n }\n\n public static void main(String[] args) {\n ...
import java.util.Scanner; public class Main { // Round by 3 digits static float roundUp(float value) { float mod = value % 1000; if (mod > 0) { value = value + (1000 - mod); } return value; } public static void main(String[] args) { float gankin = 10...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 38, 5, 13, 30, 30, 4, 18, 13, 30, 42, 2, 17, 0, 13, 4, 18, 13, 30, 41, 13, 4, 18, 13, 13, 41, 13, 17...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 80, 11 ], [ 80, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] a){\n\n\t\tString str;\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile(null != ( str = bf.readLine() )...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] a){ String str; BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); try { while(null != ( str = bf.readLine() )){ long n = Long.parseL...
[ 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, 13, 14, 2, 2, 13, 17, 17, 30, 30, 0, 13, 2, 2, 13, 2, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\n\nclass Main {\n\n\tpublic static void main(String[] args){\n\t\tdouble debt = 100000;\n\t\tdouble rate = 1.05;\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint numWeeks = in.nextInt();\n\t\t\n\t\tfor (int i=1; i<=numWeeks; i++){\n\t\t\tdebt = debt * rate;\n\t\t\tif(debt%1000 == 0)...
import java.util.Scanner; class Main { public static void main(String[] args){ double debt = 100000; double rate = 1.05; Scanner in = new Scanner(System.in); int numWeeks = in.nextInt(); for (int i=1; i<=numWeeks; i++){ debt = debt * rate; if(debt%1000 == 0){ //do nothing } else { deb...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 17, 11, 1, 41, 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 ], [ 82, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tprint();\n\t}\n\n\tpublic static void print() {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStre...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main { public static void main(String[] args) { print(); } public static void print() { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); St...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 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, 17, 41, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tint yen = 100000;\n\t\tint m;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\t//利子計算\n\t\t\tyen *= 1.05;\n\t\t\t//金額を文字列に変換\n\t\t\tString ...
import java.util.Scanner; public class Main { public static void main(String[] args){ int yen = 100000; int m; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); for(int i=0; i<n; i++){ //利子計算 yen *= 1.05; //金額を文字列に変換 String s = Integer.toString(yen); //後ろ三桁を抜き出してint型...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 20, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 0, 13, 2, 4, 18, 13, 2, 13, 17, 17, 40, 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 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [...
[ "import java.util.Scanner;\n\n\nclass Main{\n public static void main(String[] args){\n\n double debt = 100000;\n double mo = 0.05;\n int turm = new Scanner(System.in).nextInt();\n while(turm>0){\n debt = debt*1.05;\n debt = Math.ceil(debt/1000)*1000;\n turm--;\n }\n System.out.pri...
import java.util.Scanner; class Main{ public static void main(String[] args){ double debt = 100000; double mo = 0.05; int turm = new Scanner(System.in).nextInt(); while(turm>0){ debt = debt*1.05; debt = Math.ceil(debt/1000)*1000; turm--; } System.out.println((int)debt); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 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, 2, 13, 17, 0, 13, 2, 13, 13, 41, 13, 20,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 79, 8 ], [ 79, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], ...
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\t//??????????????°\n\t\tint nissuu;\n\t\tint shakkinn = 100000;\n\t\tdouble risoku;\n\t\tint newShakkinn;\n\n\t\tScanner sc = new Scanner(System.in);\t\t//?????????????????§??\\???\n\t\tnis...
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args){ //??????????????° int nissuu; int shakkinn = 100000; double risoku; int newShakkinn; Scanner sc = new Scanner(System.in); //?????????????????§??\??? nissuu = sc.nextInt(); //?????±??????...
[ 7, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 17, 40, 13, 30, 0, 13, 4, 18, 13, 2, 13, 17, 0, 13, 17, 4, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 51, 2 ], [ 51, 3 ], [ 3, 4 ], [ 3, 5 ], [ 51, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "public class Main {\n\tstatic java.util.Scanner scan = new java.util.Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint input = scan.nextInt();\n\t\tdouble total = 100;\n\t\twhile (0 < input--) {\n\t\t\ttotal = Math.ceil(total * 1.05);\n\t\t}\n\t\ttotal *= 1000;\n\t\tprint((int) total);\n\t}\...
public class Main { static java.util.Scanner scan = new java.util.Scanner(System.in); public static void main(String[] args) { int input = scan.nextInt(); double total = 100; while (0 < input--) { total = Math.ceil(total * 1.05); } total *= 1000; print((int) total); } public static void print(Objec...
[ 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, 11, 1, 2, 17, 13, 1, 40, 13, 30, 30, 0, 13, 8, 2, 2, 2, 13, 17, 17, 17, 2, 13, 17, 2, 2, 13, 17, 17, 4, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 65, 11 ], [ 65, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "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), 128).readLine());\n\t\ti...
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), 128).readLine()); int val = 100;//壱百...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 4, 18, 13, 4, 18, 13, 28, 13, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 13, 1...
[ [ 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 ], ...
[ "import java.util.Scanner;\nimport java.util.Vector;\n\nclass Main{\n public static void main(String[] av){\n Scanner sc = new Scanner(System.in);\n\n Vector<Integer> vec = new Vector<Integer>();\n while(sc.hasNextInt()){\n vec.add( sc.nextInt() );\n }\n\t\tfor ( Integer n : vec ){\n\t\t\tlong deb...
import java.util.Scanner; import java.util.Vector; class Main{ public static void main(String[] av){ Scanner sc = new Scanner(System.in); Vector<Integer> vec = new Vector<Integer>(); while(sc.hasNextInt()){ vec.add( sc.nextInt() ); } for ( Integer n : vec ){ long debt = 100000; for ( i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 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, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\\????????????????????????\n String line = br.readLine();\n int deptWeek = Integer.parseInt(line);\n ...
import java.io.*; class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\???????????????????????? String line = br.readLine(); int deptWeek = Integer.parseInt(line); int dept ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 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, 2, 13, 2, 13, 17, 0, 13, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 91, 8 ], [ 91, 9 ], [ 9, 10 ], [ 91, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ],...
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main{\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tdouble s = 100000;\n\t\tdouble sa = 0;\n\t\tfor(int i = 1;i <= n;i++){\n\t\t...
import java.math.BigDecimal; import java.util.Scanner; public class Main{ private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); int n = Integer.parseInt(scan.next()); double s = 100000; double sa = 0; for(int i = 1;i <= n;i++){ s = s + s*0.05; s = s / 10...
[ 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, 0, 13, 2, 4, 18, 13, 2, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, ...
[ [ 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 ],...
[ "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\tfor(int i = 0; i < n; i++){\n\t\t\tmon = (long) Math.ceil(mon * 1.05 / 1000.0) * 1000;\n\t\t}\n\t\tSystem....
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; for(int i = 0; i < n; i++){ mon = (long) Math.ceil(mon * 1.05 / 1000.0) * 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, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 2, 2, 13, 17, 17, 0, 13, 2, 13, 17, 0, 13, 13, 4, ...
[ [ 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 ], ...
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tdouble k = 100000;\n\t\tint T = 0;\n\t\tfor(int a = 0;a < n;a++){\n\t\t\tk = Math.ceil((k*1.05)/1000);\n\t\t\tk = k*100...
import java.util.Scanner; public class Main { public static void main(String[] args) throws java.io.IOException { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); double k = 100000; int T = 0; for(int a = 0;a < n;a++){ k = Math.ceil((k*1.05)/1000); k = k*1000; T = (int)k; } System....
[ 7, 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, 20, 41, 13, 4, 18, 13, 41, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 82, 8 ], [ 82, 9 ], [ 9, 10 ], [ 9, 11 ], [ 82, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.math.BigDecimal;\nimport java.util.Scanner;\n\n/**\n * 0007:Debt Hell\n * \n * @author MS14A\n * @version 2015/04/08\n */\npublic class Main {\n\n /** 初期借金額:10万円 */\n private static final BigDecimal INITIAL_DEBT = new BigDecimal(\"100000\");\n\n /** 利子:5% */\n private static final BigDecima...
import java.math.BigDecimal; import java.util.Scanner; /** * 0007:Debt Hell * * @author MS14A * @version 2015/04/08 */ public class Main { /** 初期借金額:10万円 */ private static final BigDecimal INITIAL_DEBT = new BigDecimal("100000"); /** 利子:5% */ private static final BigDecimal INTEREST_RATE = BigD...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 0, 13, 4, 18, 13, 42, 2, 13, 17, 30, 0, 13, 2, 2, 13, 17, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 17, 0, 13, 17, 0, 13, 17, 40, 13, 4, 18, 18, ...
[ [ 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 ], [ ...
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args){\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n;\n\t\tint ans = 100000;\n\t\t\n\t\tn = cin.nextInt();\n\t\t\n\t\twhile (n > 0){\n\t\t\tans += ans / 100 * 5;\n\t\t\tif (ans % 1000 != 0){\n\t\t\t\tans /= 1000;\n\t\t\t\ta...
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner cin = new Scanner(System.in); int n; int ans = 100000; n = cin.nextInt(); while (n > 0){ ans += ans / 100 * 5; if (ans % 1000 != 0){ ans /= 1000; ans *= 1000; ans += 1000; } n--; } ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 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, 13, 2, 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 ], [ 12, 14 ], ...
[ "import java.util.*;\npublic class Main{\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int gankin = 100000, week = sc.nextInt();\n double risoku = 0.05;\n for(int i = 0;i < week;i++){\n gankin *= (1 + risoku);\n if(gankin % 1000 != 0){\n gankin = g...
import java.util.*; public class Main{ public static void main(String [] args){ Scanner sc = new Scanner(System.in); int gankin = 100000, week = sc.nextInt(); double risoku = 0.05; for(int i = 0;i < week;i++){ gankin *= (1 + risoku); if(gankin % 1000 != 0){ gankin = gankin - (ganki...
[ 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, 17, 13, 4, 18, 18, 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 ], ...
[ "import java.util.*;\n\npublic class Main \n{\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tlong debt = 100000;\n\t\tfor(int i = 0; i < n; ++i)\n\t\t{\n\t\t\tdebt *= 1.05;\n\t\t\tlong lessThanThousand = debt % 1000;\n\t\t\tif(lessThan...
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); long debt = 100000; for(int i = 0; i < n; ++i) { debt *= 1.05; long lessThanThousand = debt % 1000; if(lessThanThousand > 0) { debt += 1000 - l...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 18, 13, 13, 2, 17, 4, 18, 13, 30, 0, 13, 4, 18, 13, 4, 18, 13, 41, 1...
[ [ 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 ], [ 102, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.math.BigDecimal;\n\npublic class Main {\n // 利子\n final static String INTEREST = \"0.05\";\n // 元金\n final static String INIT_LOAN = \"100000\";\n\n public static void main(String[] args) {\n ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main { // 利子 final static String INTEREST = "0.05"; // 元金 final static String INIT_LOAN = "100000"; public static void main(String[] args) { // 入力値を一行分取得する...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 2, 2, 13, 17, 17, 14, 2, 13, 13, 0, 13, 2, 13, 17, 4, ...
[ [ 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 ], [...
[ "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\tint ans = 100000;\n\t\tint temp;\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tans *= 1.05;\n\t\t\ttemp = ans / 1000 * 1000;\n\t\t\tif(ans != tem...
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; int temp; for(int i = 0; i < n; i++){ ans *= 1.05; temp = ans / 1000 * 1000; if(ans != temp)ans = temp + 1000; } System.out.prin...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 40, 13, 17, 30, 0, 13, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, ...
[ [ 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 ], ...
[ "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 debt = 100000;\n\t\twhile(n-- != 0) {\n\t\t\tdebt += debt*0.05;\n\t\t\tint a = debt%1000;\n\t\t\tif(a != 0) debt += 1000-a;\n\t\t}\n\t\tSystem.o...
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; while(n-- != 0) { debt += debt*0.05; int a = debt%1000; if(a != 0) debt += 1000-a; } System.out.println(debt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 13, 17, 30, 29, 4, 13, 13, 2, 13, 17, 30, 29, 4, 13, 2, 2, 2, 13, 17, 17, 17, 2, 13, 17, 23, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 85, 5 ], [ 85, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 9, 13 ], [ 13, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tprivate static int calcDebt(int debt,int n)\n\t{\n\t\tif(n==0){\n\t\t\treturn debt;\n\t\t}else{\n\t\t\tint nextdebt=(int)(debt*1.05);\n\t\t\tint rest=nextdebt%1000;\n\t\t\tif(rest==0){\n\t\t\t\treturn calcDebt(nextdebt,n-1);\n\t\t\t}else{\n\t\t\t\treturn calcDeb...
import java.util.Scanner; public class Main { private static int calcDebt(int debt,int n) { if(n==0){ return debt; }else{ int nextdebt=(int)(debt*1.05); int rest=nextdebt%1000; if(rest==0){ return calcDebt(nextdebt,n-1); }else{ return calcDebt((nextdebt/1000)*1000+1000,n-1); } } } ...
[ 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, 17, 41, 13, 14, 2, 0, 13, 2, 13, 17, 17, 0, 13, 2, 2, 13, 1...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint money = 100000;\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int i = 0; i < n ; i++)\n\t\t{\n\t\t\tmoney += money * 5 / 100;\n\t\t\tint a;\n\t\t\tif ((a = money % 1000) != 0) m...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int money = 100000; int n = sc.nextInt(); for (int i = 0; i < n ; i++) { money += money * 5 / 100; int a; if ((a = money % 1000) != 0) money = money - a + 1000; } System.out...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 40, 13, 4, 18, 18, 13, 13, 2, 13, 17, 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 ], ...
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int weeks = s.nextInt();\n double debt = 100;\n while(weeks>0){\n debt = debt*1.05;\n debt = (int)Math.ceil(debt);\n weeks-...
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int weeks = s.nextInt(); double debt = 100; while(weeks>0){ debt = debt*1.05; debt = (int)Math.ceil(debt); weeks--; } ...
[ 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, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 69, 8 ], [ 69, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.io.*;\nimport java.util.*;\npublic class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint in=Integer.parseInt(s);\n\t\tint out=100000;\n\t\tfor(int i=0;i<in;i++){...
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); String s=reader.readLine(); int in=Integer.parseInt(s); int out=100000; for(int i=0;i<in;i++){ out*=1.05; if(out...
[ 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, 13, 40, 17, 18, 13, 13, 0,...
[ [ 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 ], ...
[ "import java.util.Scanner;\nimport java.math.BigDecimal;\n\nclass Main{\npublic static void main(String[] args){\nScanner sc=new Scanner(System.in);\nint w=sc.nextInt();\nint a=100000;\nfor(int i=0;i<w;i++){\na+=a/20;\nBigDecimal x=new BigDecimal(a);\nx=x.setScale(-3,BigDecimal.ROUND_UP);\na=x.intValue();\n}\nSyste...
import java.util.Scanner; import java.math.BigDecimal; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int a=100000; for(int i=0;i<w;i++){ a+=a/20; BigDecimal x=new BigDecimal(a); x=x.setScale(-3,BigDecimal.ROUND_UP); a=x.intValue(); } System.out.println(a); }...
[ 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, 17, 40, 13, 0, 13, 17, 4, 18, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args){\n\tScanner stdin = new Scanner(System.in);\n\tint money = 100000;\n\tint n = stdin.nextInt();\n\tfor(int i = 0; i < n; i++){\n\t money = (int)(money * 1.05);\n\t if(money % 1000 > 0){\n\t\tmoney /= 1000;\n\t\tmoney++;\n\...
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner stdin = new Scanner(System.in); int money = 100000; int n = stdin.nextInt(); for(int i = 0; i < n; i++){ money = (int)(money * 1.05); if(money % 1000 > 0){ money /= 1000; money++; money *= 1000; } } S...
[ 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, 4, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 0, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\nclass Main{\n\tpublic static void main(String[] a){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.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 = up(debt);\n\t\t}\n\t\tSystem.out.println(debt);\n\t}\n\tstatic int...
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int debt = 100000; for(int i = 0; i < n; i++){ debt += debt / 20; debt = up(debt); } System.out.println(debt); } static int up(int money){ money += 999; mone...
[ 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, 4, 18, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 52, 5 ], [ 52, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "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 自動生成されたメソッド・スタブ\n\t\tScanner scn = new Scanner(System.in);\n\t\tint n = scn.nextInt();\n\t\tint debt = 100;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt = (int)Math.ceil(d...
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int debt = 100; for (int i = 0; i < n; i++) { debt = (int)Math.ceil(debt * 1.05); } System.out.printl...
[ 7, 15, 13, 17, 15, 13, 17, 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, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 4, 18, 18, 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 ], ...
[ "import java.util.*;\nimport java.lang.*;\nimport java.math.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tvoid run(){\n\t\tint x = sc.nextInt();\n\t\tint debt = 100000;\n\t\tfor(int i = 0; i < x; i++){\n\t\t\tdebt *= 1.05;\n\t\t\tdebt += 999;\n\t\t\tdebt /= 1000;\n\t\t\tdebt *= 1000;\n\t\t}\n...
import java.util.*; import java.lang.*; import java.math.*; public class Main { Scanner sc = new Scanner(System.in); void run(){ int x = sc.nextInt(); int debt = 100000; for(int i = 0; i < x; i++){ debt *= 1.05; debt += 999; debt /= 1000; debt *= 1000; } System.out.println(debt); } public sta...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2, 13, 17, 0, 13, 4, 18, 13, 13, 4, 18, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tint i;\n\t\t\tint cnt = sc.nextInt();\n\t\t\tdouble ret = 100;\n\t\t\tfor (i = 0; i < cnt; i++) {\n\t\t\t\tret = ret + ret * 0.05;\n\t\t\t\tret = Math.c...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int i; int cnt = sc.nextInt(); double ret = 100; for (i = 0; i < cnt; i++) { ret = ret + ret * 0.05; ret = Math.ceil(ret); } System.out.println((int...
[ 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, ...
[ [ 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 ], [ 118, 14 ], ...
[ "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 BigDeci...
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"); ...
[ 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, 4, 18, 13, 2, 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 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tdouble n = sc.nextInt();\n\t\tdouble x = 100;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx = Math.ceil(x + (x * 0.05));\n\t\t}\n\t\tSystem.out.println((int)x * 1000);\n\t}\n}", "import ...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double n = sc.nextInt(); double x = 100; for(int i = 0; i < n; i++){ x = Math.ceil(x + (x * 0.05)); } System.out.println((int)x * 1000); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 4, 18, 20, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 2,...
[ [ 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 ], ...
[ "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 result = 100000;\n\t\t// ?????????????¨??????¨???\n\t\tint roundup = 1000;\n\t\t// ??????\n\t\tdouble rate = 0....
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { // ?¨?????????? int result = 100000; // ?????????????¨??????¨??? int roundup = 1000; // ?????? double rate = 0.05; // ????????±??° int ...
[ 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, 0, 13, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 4, 18, 18, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 61, 5 ], [ 61, 6 ], [ 6, 7 ], [ 6, 8 ], [ 61, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "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\tfor(int i = 0; i < n; i++){\n\t\t\tmon *= 1.05;\n\t\t\tif(mon % 1000 > 0){\n\t\t\t\tmon += 1000;\n\t\t\t\t...
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; for(int i = 0; i < n; i++){ mon *= 1.05; if(mon % 1000 > 0){ mon += 1000; mon -= mon % 1000; } } System.ou...
[ 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, 4, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 88, 5 ], [ 88, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\t//??????10??????\n\t\tint debt = 100000;\n\n\t\t//n??±???\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i=0; i<n; i++){\n\t\t\tdebt *= 1.05;\n\t\t\tdebt = roundOff(d...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //??????10?????? int debt = 100000; //n??±??? int n = scanner.nextInt(); for(int i=0; i<n; i++){ debt *= 1.05; debt = roundOff(debt); } System.out.println(debt); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 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, 17, 14, 2, 2, 13, 17, 17, 30, 0, 13, 2, 2, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 67, 5 ], [ 67, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 6, 12 ], [ 12, 13 ], [ 67, 14 ], ...
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tprivate void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint debt = 100000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdebt *= 1.05;\n\t\t\tif (debt %...
import java.util.*; public class Main { public static void main(String[] args) { new Main().run(); } private void run() { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int debt = 100000; for (int i = 0; i < n; i++) { debt *= 1.05; if (debt % 1000 > 0) { debt = (int)(debt / 10...
[ 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, 41, 13, 2, 13, 17, 41, 13, 4, 18, 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 ], ...
[ "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);...
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); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 40, 13, 17, 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, 12, 13, 30, 4, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n private static void solve() {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int result = 100000;\n while (n-- > 0) {\n result *= 1.05;\n if (result % 1000 > 0) {\n result = (...
import java.util.Scanner; class Main { private static void solve() { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int result = 100000; while (n-- > 0) { result *= 1.05; if (result % 1000 > 0) { result = (result / 1000 +...