結果

問題 No.219 巨大数の概算
ユーザー Michae'GonMichae'Gon
提出日時 2015-07-19 03:00:43
言語 Haskell
(9.8.2)
結果
AC  
実行時間 72 ms / 1,500 ms
コード長 303 bytes
コンパイル時間 4,055 ms
コンパイル使用メモリ 157,532 KB
実行使用メモリ 11,608 KB
最終ジャッジ日時 2023-09-25 14:23:33
合計ジャッジ時間 9,973 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
11,480 KB
testcase_01 AC 62 ms
11,460 KB
testcase_02 AC 62 ms
11,504 KB
testcase_03 AC 62 ms
11,516 KB
testcase_04 AC 62 ms
11,408 KB
testcase_05 AC 2 ms
7,236 KB
testcase_06 AC 12 ms
11,400 KB
testcase_07 AC 2 ms
7,200 KB
testcase_08 AC 12 ms
11,492 KB
testcase_09 AC 3 ms
7,176 KB
testcase_10 AC 63 ms
11,472 KB
testcase_11 AC 62 ms
11,436 KB
testcase_12 AC 62 ms
11,476 KB
testcase_13 AC 62 ms
11,572 KB
testcase_14 AC 62 ms
11,448 KB
testcase_15 AC 62 ms
11,504 KB
testcase_16 AC 62 ms
11,500 KB
testcase_17 AC 72 ms
11,584 KB
testcase_18 AC 63 ms
11,500 KB
testcase_19 AC 62 ms
11,608 KB
testcase_20 AC 62 ms
11,532 KB
testcase_21 AC 62 ms
11,440 KB
testcase_22 AC 62 ms
11,496 KB
testcase_23 AC 63 ms
11,564 KB
testcase_24 AC 62 ms
11,536 KB
testcase_25 AC 62 ms
11,432 KB
testcase_26 AC 62 ms
11,416 KB
testcase_27 AC 63 ms
11,476 KB
testcase_28 AC 62 ms
11,500 KB
testcase_29 AC 62 ms
11,468 KB
testcase_30 AC 62 ms
11,460 KB
testcase_31 AC 62 ms
11,524 KB
testcase_32 AC 63 ms
11,440 KB
testcase_33 AC 63 ms
11,484 KB
testcase_34 AC 62 ms
11,444 KB
testcase_35 AC 62 ms
11,428 KB
testcase_36 AC 62 ms
11,528 KB
testcase_37 AC 62 ms
11,436 KB
testcase_38 AC 62 ms
11,432 KB
testcase_39 AC 63 ms
11,440 KB
testcase_40 AC 62 ms
11,492 KB
testcase_41 AC 62 ms
11,428 KB
testcase_42 AC 62 ms
11,496 KB
testcase_43 AC 62 ms
11,572 KB
testcase_44 AC 62 ms
11,448 KB
testcase_45 AC 62 ms
11,492 KB
testcase_46 AC 61 ms
11,480 KB
testcase_47 AC 62 ms
11,436 KB
testcase_48 AC 62 ms
11,436 KB
testcase_49 AC 62 ms
11,504 KB
testcase_50 AC 63 ms
11,520 KB
testcase_51 AC 3 ms
7,172 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

main = getLine >> getContents >>= mapM_ (putStrLn . solve . map read . words) . lines

solve :: [Double] -> String
solve [a, b] = x : ' ' : y : ' ' : show z
    where
        w = b * log a / log 10.0
        z = truncate w
        [x, y] = take 2 . show . truncate $ 10.0 * 10.0 ** (w - fromIntegral z)
0