結果
問題 | No.428 小数から逃げる夢 |
ユーザー | tenten |
提出日時 | 2020-09-11 17:00:00 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 137 ms / 1,000 ms |
コード長 | 954 bytes |
コンパイル時間 | 2,705 ms |
コンパイル使用メモリ | 81,056 KB |
実行使用メモリ | 41,656 KB |
最終ジャッジ日時 | 2024-06-07 20:02:55 |
合計ジャッジ時間 | 18,682 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 132 ms
40,956 KB |
testcase_01 | AC | 134 ms
41,300 KB |
testcase_02 | AC | 136 ms
41,132 KB |
testcase_03 | AC | 132 ms
41,572 KB |
testcase_04 | AC | 135 ms
41,100 KB |
testcase_05 | AC | 133 ms
41,360 KB |
testcase_06 | AC | 118 ms
41,420 KB |
testcase_07 | AC | 133 ms
41,124 KB |
testcase_08 | AC | 134 ms
41,316 KB |
testcase_09 | AC | 134 ms
41,384 KB |
testcase_10 | AC | 133 ms
41,308 KB |
testcase_11 | AC | 133 ms
41,172 KB |
testcase_12 | AC | 134 ms
41,284 KB |
testcase_13 | AC | 129 ms
41,152 KB |
testcase_14 | AC | 134 ms
41,528 KB |
testcase_15 | AC | 129 ms
41,180 KB |
testcase_16 | AC | 131 ms
41,300 KB |
testcase_17 | AC | 131 ms
41,392 KB |
testcase_18 | AC | 132 ms
41,284 KB |
testcase_19 | AC | 137 ms
41,492 KB |
testcase_20 | AC | 135 ms
41,448 KB |
testcase_21 | AC | 133 ms
41,328 KB |
testcase_22 | AC | 134 ms
41,356 KB |
testcase_23 | AC | 134 ms
41,092 KB |
testcase_24 | AC | 122 ms
40,144 KB |
testcase_25 | AC | 131 ms
41,168 KB |
testcase_26 | AC | 128 ms
41,400 KB |
testcase_27 | AC | 130 ms
41,180 KB |
testcase_28 | AC | 130 ms
41,424 KB |
testcase_29 | AC | 132 ms
41,404 KB |
testcase_30 | AC | 133 ms
41,656 KB |
testcase_31 | AC | 118 ms
41,448 KB |
testcase_32 | AC | 132 ms
41,656 KB |
testcase_33 | AC | 130 ms
41,288 KB |
testcase_34 | AC | 129 ms
41,152 KB |
testcase_35 | AC | 130 ms
41,284 KB |
testcase_36 | AC | 134 ms
41,228 KB |
testcase_37 | AC | 123 ms
40,032 KB |
testcase_38 | AC | 136 ms
41,472 KB |
testcase_39 | AC | 132 ms
41,208 KB |
testcase_40 | AC | 132 ms
41,336 KB |
testcase_41 | AC | 133 ms
41,212 KB |
testcase_42 | AC | 135 ms
41,168 KB |
testcase_43 | AC | 133 ms
41,316 KB |
testcase_44 | AC | 137 ms
41,464 KB |
testcase_45 | AC | 133 ms
41,268 KB |
testcase_46 | AC | 132 ms
41,540 KB |
testcase_47 | AC | 134 ms
41,168 KB |
testcase_48 | AC | 133 ms
41,444 KB |
testcase_49 | AC | 133 ms
41,248 KB |
testcase_50 | AC | 130 ms
41,420 KB |
testcase_51 | AC | 132 ms
41,272 KB |
testcase_52 | AC | 134 ms
41,120 KB |
testcase_53 | AC | 132 ms
41,148 KB |
testcase_54 | AC | 131 ms
41,424 KB |
testcase_55 | AC | 134 ms
41,412 KB |
testcase_56 | AC | 136 ms
41,328 KB |
testcase_57 | AC | 124 ms
40,268 KB |
testcase_58 | AC | 134 ms
41,144 KB |
testcase_59 | AC | 132 ms
41,536 KB |
testcase_60 | AC | 131 ms
41,448 KB |
testcase_61 | AC | 131 ms
41,420 KB |
testcase_62 | AC | 133 ms
41,268 KB |
testcase_63 | AC | 135 ms
40,992 KB |
testcase_64 | AC | 133 ms
41,124 KB |
testcase_65 | AC | 132 ms
41,296 KB |
testcase_66 | AC | 132 ms
41,284 KB |
testcase_67 | AC | 122 ms
40,036 KB |
testcase_68 | AC | 130 ms
41,340 KB |
testcase_69 | AC | 134 ms
41,292 KB |
testcase_70 | AC | 131 ms
41,072 KB |
testcase_71 | AC | 136 ms
41,344 KB |
testcase_72 | AC | 136 ms
41,316 KB |
testcase_73 | AC | 116 ms
41,124 KB |
testcase_74 | AC | 132 ms
41,144 KB |
testcase_75 | AC | 132 ms
41,468 KB |
testcase_76 | AC | 133 ms
41,400 KB |
testcase_77 | AC | 133 ms
41,296 KB |
testcase_78 | AC | 134 ms
41,444 KB |
testcase_79 | AC | 134 ms
41,008 KB |
testcase_80 | AC | 132 ms
41,428 KB |
testcase_81 | AC | 133 ms
41,520 KB |
testcase_82 | AC | 134 ms
41,444 KB |
testcase_83 | AC | 134 ms
41,252 KB |
testcase_84 | AC | 131 ms
41,104 KB |
testcase_85 | AC | 122 ms
40,100 KB |
testcase_86 | AC | 136 ms
41,304 KB |
testcase_87 | AC | 135 ms
41,328 KB |
testcase_88 | AC | 122 ms
40,016 KB |
testcase_89 | AC | 132 ms
41,380 KB |
testcase_90 | AC | 134 ms
41,044 KB |
testcase_91 | AC | 134 ms
41,612 KB |
testcase_92 | AC | 134 ms
41,108 KB |
testcase_93 | AC | 131 ms
41,468 KB |
testcase_94 | AC | 131 ms
41,412 KB |
testcase_95 | AC | 131 ms
41,116 KB |
testcase_96 | AC | 130 ms
41,296 KB |
testcase_97 | AC | 130 ms
41,444 KB |
testcase_98 | AC | 128 ms
41,444 KB |
testcase_99 | AC | 131 ms
41,012 KB |
ソースコード
import java.util.*; public class Main { static final long MOD = 10000000000L; public static void main (String[] args) { Scanner sc = new Scanner(System.in); String BASE = "1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991"; String[] arr = new String[19]; for (int i = 0; i < 19; i++) { arr[i] = BASE.substring(i * 10, (i + 1) * 10); } int n = sc.nextInt(); String[] ans = new String[19]; long next = 0; for (int i = 18; i >= 0; i--) { long value = Long.parseLong(arr[i]) * n + next; ans[i] = String.format("%010d", value % MOD); next = value / MOD; } StringBuilder sb = new StringBuilder(); sb.append(next).append("."); for (String s : ans) { sb.append(s); } System.out.println(sb); } }