結果

問題 No.428 小数から逃げる夢
ユーザー htensaihtensai
提出日時 2019-11-19 20:37:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 1,000 ms
コード長 2,197 bytes
コンパイル時間 2,369 ms
コンパイル使用メモリ 75,036 KB
実行使用メモリ 56,096 KB
最終ジャッジ日時 2024-04-15 00:32:36
合計ジャッジ時間 18,594 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
53,984 KB
testcase_01 AC 133 ms
54,372 KB
testcase_02 AC 129 ms
54,168 KB
testcase_03 AC 131 ms
56,096 KB
testcase_04 AC 132 ms
54,068 KB
testcase_05 AC 134 ms
54,224 KB
testcase_06 AC 129 ms
53,816 KB
testcase_07 AC 137 ms
54,296 KB
testcase_08 AC 135 ms
54,180 KB
testcase_09 AC 135 ms
54,188 KB
testcase_10 AC 139 ms
54,296 KB
testcase_11 AC 135 ms
54,064 KB
testcase_12 AC 137 ms
53,940 KB
testcase_13 AC 135 ms
54,308 KB
testcase_14 AC 131 ms
53,988 KB
testcase_15 AC 137 ms
54,092 KB
testcase_16 AC 137 ms
54,072 KB
testcase_17 AC 135 ms
54,136 KB
testcase_18 AC 137 ms
54,136 KB
testcase_19 AC 136 ms
54,172 KB
testcase_20 AC 143 ms
53,876 KB
testcase_21 AC 136 ms
54,332 KB
testcase_22 AC 132 ms
54,220 KB
testcase_23 AC 136 ms
54,124 KB
testcase_24 AC 133 ms
53,996 KB
testcase_25 AC 126 ms
54,108 KB
testcase_26 AC 131 ms
54,040 KB
testcase_27 AC 128 ms
54,232 KB
testcase_28 AC 135 ms
54,008 KB
testcase_29 AC 137 ms
54,008 KB
testcase_30 AC 134 ms
53,824 KB
testcase_31 AC 131 ms
54,304 KB
testcase_32 AC 134 ms
54,188 KB
testcase_33 AC 131 ms
54,152 KB
testcase_34 AC 130 ms
54,120 KB
testcase_35 AC 132 ms
54,400 KB
testcase_36 AC 131 ms
54,116 KB
testcase_37 AC 128 ms
53,324 KB
testcase_38 AC 130 ms
53,216 KB
testcase_39 AC 137 ms
54,360 KB
testcase_40 AC 138 ms
54,144 KB
testcase_41 AC 133 ms
54,148 KB
testcase_42 AC 132 ms
54,056 KB
testcase_43 AC 133 ms
54,156 KB
testcase_44 AC 136 ms
54,456 KB
testcase_45 AC 131 ms
54,316 KB
testcase_46 AC 135 ms
54,328 KB
testcase_47 AC 136 ms
54,140 KB
testcase_48 AC 132 ms
54,068 KB
testcase_49 AC 137 ms
54,120 KB
testcase_50 AC 131 ms
54,196 KB
testcase_51 AC 125 ms
54,536 KB
testcase_52 AC 127 ms
53,288 KB
testcase_53 AC 125 ms
53,292 KB
testcase_54 AC 131 ms
54,104 KB
testcase_55 AC 131 ms
54,284 KB
testcase_56 AC 132 ms
54,140 KB
testcase_57 AC 134 ms
54,216 KB
testcase_58 AC 133 ms
54,304 KB
testcase_59 AC 139 ms
54,184 KB
testcase_60 AC 135 ms
54,364 KB
testcase_61 AC 135 ms
54,124 KB
testcase_62 AC 132 ms
54,288 KB
testcase_63 AC 135 ms
54,276 KB
testcase_64 AC 131 ms
54,452 KB
testcase_65 AC 125 ms
53,920 KB
testcase_66 AC 131 ms
54,124 KB
testcase_67 AC 127 ms
54,188 KB
testcase_68 AC 129 ms
54,208 KB
testcase_69 AC 128 ms
54,112 KB
testcase_70 AC 126 ms
53,888 KB
testcase_71 AC 132 ms
54,272 KB
testcase_72 AC 131 ms
54,316 KB
testcase_73 AC 126 ms
54,352 KB
testcase_74 AC 128 ms
54,016 KB
testcase_75 AC 130 ms
54,288 KB
testcase_76 AC 136 ms
54,148 KB
testcase_77 AC 135 ms
54,140 KB
testcase_78 AC 135 ms
54,124 KB
testcase_79 AC 136 ms
54,288 KB
testcase_80 AC 135 ms
54,324 KB
testcase_81 AC 135 ms
54,348 KB
testcase_82 AC 137 ms
54,228 KB
testcase_83 AC 136 ms
54,208 KB
testcase_84 AC 134 ms
54,064 KB
testcase_85 AC 137 ms
54,096 KB
testcase_86 AC 136 ms
54,236 KB
testcase_87 AC 134 ms
53,780 KB
testcase_88 AC 135 ms
54,376 KB
testcase_89 AC 131 ms
53,980 KB
testcase_90 AC 137 ms
54,376 KB
testcase_91 AC 135 ms
54,128 KB
testcase_92 AC 135 ms
54,300 KB
testcase_93 AC 125 ms
53,912 KB
testcase_94 AC 136 ms
54,168 KB
testcase_95 AC 135 ms
54,304 KB
testcase_96 AC 129 ms
54,152 KB
testcase_97 AC 130 ms
54,016 KB
testcase_98 AC 131 ms
54,144 KB
testcase_99 AC 135 ms
54,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] inputs = new int[] {0,
                                    12345,
                                    67891,
                                    1112,
                                    13141,
                                    51617,
                                    18192,
                                    2122,
                                    23242,
                                    52627,
                                    28293,
                                    3132,
                                    33343,
                                    53637,
                                    38394,
                                    4142,
                                    43444,
                                    54647,
                                    48495,
                                    5152,
                                    53545,
                                    55657,
                                    58596,
                                    6162,
                                    63646,
                                    56667,
                                    68697,
                                    7172,
                                    73747,
                                    57677,
                                    78798,
                                    8182,
                                    83848,
                                    58687,
                                    88899,
                                    9192,
                                    93949,
                                    59697,
                                    98991};
		int n = sc.nextInt();
		int length = inputs.length;
		int prev = 0;
		for (int i = length - 1; i >= 0; i--) {
		    inputs[i] = inputs[i] * n + prev;
		    prev = inputs[i] / 100000;
		    inputs[i] %= 100000;
		}
		StringBuilder sb = new StringBuilder();
		sb.append(inputs[0]).append(".");
		for (int i = 1; i < length; i++) {
		    sb.append(String.format("%05d", inputs[i]));
		}
		System.out.println(sb);
	}
}
0