結果
問題 | No.428 小数から逃げる夢 |
ユーザー | tenten |
提出日時 | 2022-10-12 18:33:05 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 96 ms / 1,000 ms |
コード長 | 1,443 bytes |
コンパイル時間 | 3,914 ms |
コンパイル使用メモリ | 78,948 KB |
実行使用メモリ | 53,320 KB |
最終ジャッジ日時 | 2024-06-26 11:26:19 |
合計ジャッジ時間 | 13,758 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
51,132 KB |
testcase_01 | AC | 94 ms
52,708 KB |
testcase_02 | AC | 91 ms
51,188 KB |
testcase_03 | AC | 85 ms
51,168 KB |
testcase_04 | AC | 79 ms
51,188 KB |
testcase_05 | AC | 82 ms
51,056 KB |
testcase_06 | AC | 83 ms
51,272 KB |
testcase_07 | AC | 83 ms
51,300 KB |
testcase_08 | AC | 86 ms
51,332 KB |
testcase_09 | AC | 80 ms
51,052 KB |
testcase_10 | AC | 78 ms
51,056 KB |
testcase_11 | AC | 82 ms
51,328 KB |
testcase_12 | AC | 83 ms
51,232 KB |
testcase_13 | AC | 82 ms
51,228 KB |
testcase_14 | AC | 83 ms
51,240 KB |
testcase_15 | AC | 89 ms
51,176 KB |
testcase_16 | AC | 84 ms
51,236 KB |
testcase_17 | AC | 83 ms
51,088 KB |
testcase_18 | AC | 84 ms
51,156 KB |
testcase_19 | AC | 91 ms
51,252 KB |
testcase_20 | AC | 82 ms
51,308 KB |
testcase_21 | AC | 80 ms
51,292 KB |
testcase_22 | AC | 83 ms
51,324 KB |
testcase_23 | AC | 81 ms
51,024 KB |
testcase_24 | AC | 86 ms
51,252 KB |
testcase_25 | AC | 84 ms
51,052 KB |
testcase_26 | AC | 81 ms
51,400 KB |
testcase_27 | AC | 86 ms
51,236 KB |
testcase_28 | AC | 84 ms
51,028 KB |
testcase_29 | AC | 80 ms
51,212 KB |
testcase_30 | AC | 86 ms
50,980 KB |
testcase_31 | AC | 82 ms
51,160 KB |
testcase_32 | AC | 93 ms
51,328 KB |
testcase_33 | AC | 87 ms
50,872 KB |
testcase_34 | AC | 84 ms
51,396 KB |
testcase_35 | AC | 83 ms
51,156 KB |
testcase_36 | AC | 82 ms
51,260 KB |
testcase_37 | AC | 82 ms
51,492 KB |
testcase_38 | AC | 83 ms
51,604 KB |
testcase_39 | AC | 89 ms
51,348 KB |
testcase_40 | AC | 95 ms
52,880 KB |
testcase_41 | AC | 80 ms
51,284 KB |
testcase_42 | AC | 80 ms
51,324 KB |
testcase_43 | AC | 91 ms
51,272 KB |
testcase_44 | AC | 82 ms
51,028 KB |
testcase_45 | AC | 85 ms
51,332 KB |
testcase_46 | AC | 82 ms
51,320 KB |
testcase_47 | AC | 84 ms
51,256 KB |
testcase_48 | AC | 82 ms
51,456 KB |
testcase_49 | AC | 91 ms
51,260 KB |
testcase_50 | AC | 87 ms
51,032 KB |
testcase_51 | AC | 85 ms
51,272 KB |
testcase_52 | AC | 83 ms
51,208 KB |
testcase_53 | AC | 84 ms
51,188 KB |
testcase_54 | AC | 93 ms
51,344 KB |
testcase_55 | AC | 83 ms
51,092 KB |
testcase_56 | AC | 85 ms
51,176 KB |
testcase_57 | AC | 83 ms
51,296 KB |
testcase_58 | AC | 85 ms
51,320 KB |
testcase_59 | AC | 84 ms
52,856 KB |
testcase_60 | AC | 88 ms
50,904 KB |
testcase_61 | AC | 88 ms
51,328 KB |
testcase_62 | AC | 81 ms
51,192 KB |
testcase_63 | AC | 84 ms
51,072 KB |
testcase_64 | AC | 86 ms
51,204 KB |
testcase_65 | AC | 84 ms
50,988 KB |
testcase_66 | AC | 83 ms
51,260 KB |
testcase_67 | AC | 83 ms
51,112 KB |
testcase_68 | AC | 79 ms
51,272 KB |
testcase_69 | AC | 80 ms
51,220 KB |
testcase_70 | AC | 95 ms
52,400 KB |
testcase_71 | AC | 86 ms
52,804 KB |
testcase_72 | AC | 84 ms
51,436 KB |
testcase_73 | AC | 96 ms
52,728 KB |
testcase_74 | AC | 82 ms
50,944 KB |
testcase_75 | AC | 83 ms
51,280 KB |
testcase_76 | AC | 83 ms
51,068 KB |
testcase_77 | AC | 84 ms
51,036 KB |
testcase_78 | AC | 93 ms
51,236 KB |
testcase_79 | AC | 79 ms
51,260 KB |
testcase_80 | AC | 83 ms
51,212 KB |
testcase_81 | AC | 83 ms
51,324 KB |
testcase_82 | AC | 79 ms
50,972 KB |
testcase_83 | AC | 83 ms
51,164 KB |
testcase_84 | AC | 82 ms
51,276 KB |
testcase_85 | AC | 82 ms
51,044 KB |
testcase_86 | AC | 82 ms
51,068 KB |
testcase_87 | AC | 82 ms
51,348 KB |
testcase_88 | AC | 87 ms
53,320 KB |
testcase_89 | AC | 83 ms
51,316 KB |
testcase_90 | AC | 81 ms
51,212 KB |
testcase_91 | AC | 82 ms
51,304 KB |
testcase_92 | AC | 81 ms
51,048 KB |
testcase_93 | AC | 81 ms
51,364 KB |
testcase_94 | AC | 81 ms
51,316 KB |
testcase_95 | AC | 79 ms
51,256 KB |
testcase_96 | AC | 90 ms
51,212 KB |
testcase_97 | AC | 91 ms
51,288 KB |
testcase_98 | AC | 91 ms
51,336 KB |
testcase_99 | AC | 86 ms
51,024 KB |
ソースコード
import java.io.*; import java.util.*; public class Main { static char[] D = "1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991".toCharArray(); public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); int base = 0; StringBuilder sb = new StringBuilder(); for (int i = D.length - 1; i >= 0; i--) { base += n * (D[i] - '0'); sb.append(base % 10); base /= 10; } System.out.println(base + "." + sb.reverse()); } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); StringBuilder sb = new StringBuilder(); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public double nextDouble() throws Exception { return Double.parseDouble(next()); } public String next() throws Exception { while (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }