結果
問題 | No.428 小数から逃げる夢 |
ユーザー | kohaku_kohaku |
提出日時 | 2016-11-16 03:06:25 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 153 ms / 1,000 ms |
コード長 | 817 bytes |
コンパイル時間 | 2,359 ms |
コンパイル使用メモリ | 76,608 KB |
実行使用メモリ | 42,252 KB |
最終ジャッジ日時 | 2024-05-04 14:09:20 |
合計ジャッジ時間 | 18,182 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 130 ms
41,512 KB |
testcase_01 | AC | 129 ms
41,492 KB |
testcase_02 | AC | 133 ms
41,712 KB |
testcase_03 | AC | 132 ms
41,532 KB |
testcase_04 | AC | 147 ms
41,636 KB |
testcase_05 | AC | 139 ms
41,452 KB |
testcase_06 | AC | 153 ms
41,752 KB |
testcase_07 | AC | 137 ms
41,712 KB |
testcase_08 | AC | 134 ms
41,372 KB |
testcase_09 | AC | 132 ms
41,408 KB |
testcase_10 | AC | 135 ms
41,492 KB |
testcase_11 | AC | 131 ms
41,108 KB |
testcase_12 | AC | 134 ms
41,504 KB |
testcase_13 | AC | 133 ms
41,380 KB |
testcase_14 | AC | 141 ms
41,584 KB |
testcase_15 | AC | 133 ms
41,424 KB |
testcase_16 | AC | 132 ms
41,456 KB |
testcase_17 | AC | 134 ms
42,056 KB |
testcase_18 | AC | 134 ms
41,840 KB |
testcase_19 | AC | 137 ms
42,252 KB |
testcase_20 | AC | 137 ms
41,372 KB |
testcase_21 | AC | 131 ms
41,784 KB |
testcase_22 | AC | 131 ms
41,420 KB |
testcase_23 | AC | 149 ms
41,652 KB |
testcase_24 | AC | 133 ms
41,468 KB |
testcase_25 | AC | 136 ms
41,888 KB |
testcase_26 | AC | 137 ms
41,724 KB |
testcase_27 | AC | 135 ms
41,636 KB |
testcase_28 | AC | 134 ms
41,804 KB |
testcase_29 | AC | 133 ms
41,684 KB |
testcase_30 | AC | 134 ms
41,112 KB |
testcase_31 | AC | 141 ms
41,416 KB |
testcase_32 | AC | 142 ms
41,884 KB |
testcase_33 | AC | 140 ms
41,616 KB |
testcase_34 | AC | 132 ms
41,508 KB |
testcase_35 | AC | 132 ms
41,396 KB |
testcase_36 | AC | 132 ms
41,376 KB |
testcase_37 | AC | 129 ms
41,192 KB |
testcase_38 | AC | 132 ms
41,492 KB |
testcase_39 | AC | 139 ms
41,540 KB |
testcase_40 | AC | 133 ms
41,644 KB |
testcase_41 | AC | 146 ms
41,520 KB |
testcase_42 | AC | 132 ms
41,676 KB |
testcase_43 | AC | 132 ms
41,552 KB |
testcase_44 | AC | 138 ms
41,660 KB |
testcase_45 | AC | 137 ms
41,584 KB |
testcase_46 | AC | 145 ms
41,680 KB |
testcase_47 | AC | 142 ms
42,160 KB |
testcase_48 | AC | 146 ms
41,604 KB |
testcase_49 | AC | 134 ms
41,604 KB |
testcase_50 | AC | 132 ms
41,668 KB |
testcase_51 | AC | 145 ms
41,892 KB |
testcase_52 | AC | 137 ms
41,612 KB |
testcase_53 | AC | 136 ms
42,000 KB |
testcase_54 | AC | 134 ms
41,532 KB |
testcase_55 | AC | 129 ms
41,476 KB |
testcase_56 | AC | 141 ms
41,772 KB |
testcase_57 | AC | 152 ms
41,672 KB |
testcase_58 | AC | 144 ms
41,440 KB |
testcase_59 | AC | 132 ms
41,428 KB |
testcase_60 | AC | 130 ms
41,488 KB |
testcase_61 | AC | 131 ms
41,404 KB |
testcase_62 | AC | 140 ms
41,412 KB |
testcase_63 | AC | 133 ms
41,760 KB |
testcase_64 | AC | 135 ms
41,216 KB |
testcase_65 | AC | 133 ms
41,600 KB |
testcase_66 | AC | 132 ms
41,564 KB |
testcase_67 | AC | 140 ms
41,512 KB |
testcase_68 | AC | 133 ms
41,436 KB |
testcase_69 | AC | 139 ms
41,844 KB |
testcase_70 | AC | 133 ms
41,260 KB |
testcase_71 | AC | 138 ms
41,576 KB |
testcase_72 | AC | 137 ms
41,392 KB |
testcase_73 | AC | 140 ms
41,616 KB |
testcase_74 | AC | 138 ms
41,644 KB |
testcase_75 | AC | 136 ms
41,804 KB |
testcase_76 | AC | 142 ms
41,404 KB |
testcase_77 | AC | 143 ms
40,860 KB |
testcase_78 | AC | 131 ms
41,440 KB |
testcase_79 | AC | 133 ms
41,612 KB |
testcase_80 | AC | 135 ms
41,488 KB |
testcase_81 | AC | 131 ms
41,512 KB |
testcase_82 | AC | 130 ms
41,708 KB |
testcase_83 | AC | 133 ms
41,508 KB |
testcase_84 | AC | 138 ms
41,540 KB |
testcase_85 | AC | 133 ms
41,756 KB |
testcase_86 | AC | 135 ms
41,552 KB |
testcase_87 | AC | 134 ms
41,160 KB |
testcase_88 | AC | 140 ms
41,464 KB |
testcase_89 | AC | 137 ms
41,832 KB |
testcase_90 | AC | 134 ms
41,860 KB |
testcase_91 | AC | 148 ms
41,660 KB |
testcase_92 | AC | 142 ms
41,692 KB |
testcase_93 | AC | 134 ms
41,660 KB |
testcase_94 | AC | 136 ms
41,468 KB |
testcase_95 | AC | 132 ms
41,664 KB |
testcase_96 | AC | 145 ms
41,608 KB |
testcase_97 | AC | 139 ms
41,668 KB |
testcase_98 | AC | 142 ms
41,660 KB |
testcase_99 | AC | 137 ms
41,808 KB |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String D = "0.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991"; int N = sc.nextInt(); String [] arr = D.split(""); int [] arr2 = new int [191]; int u=0; for(int i=arr.length-1; i>=2; i--){ int t = Integer.parseInt(arr[i]); t=t*N+u; u=t/10; t=t%10; arr2[i-2]=t; } System.out.print(u+"."); for(int i=0; i<arr2.length-1; i++){ System.out.print(arr2[i]); } System.out.println(); } }