結果

問題 No.313 π
ユーザー aimyaimy
提出日時 2017-05-05 16:12:47
言語 Haskell
(9.8.2)
結果
AC  
実行時間 53 ms / 5,000 ms
コード長 329 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 161,476 KB
実行使用メモリ 20,628 KB
最終ジャッジ日時 2023-10-12 09:48:12
合計ジャッジ時間 4,330 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
20,104 KB
testcase_01 AC 53 ms
20,504 KB
testcase_02 AC 42 ms
20,540 KB
testcase_03 AC 42 ms
20,488 KB
testcase_04 AC 42 ms
20,444 KB
testcase_05 AC 42 ms
20,544 KB
testcase_06 AC 42 ms
20,628 KB
testcase_07 AC 52 ms
20,448 KB
testcase_08 AC 52 ms
20,440 KB
testcase_09 AC 53 ms
20,544 KB
testcase_10 AC 52 ms
20,488 KB
testcase_11 AC 52 ms
20,508 KB
testcase_12 AC 52 ms
20,508 KB
testcase_13 AC 52 ms
20,576 KB
testcase_14 AC 52 ms
20,528 KB
testcase_15 AC 53 ms
20,520 KB
testcase_16 AC 52 ms
20,584 KB
testcase_17 AC 52 ms
20,488 KB
testcase_18 AC 43 ms
20,576 KB
testcase_19 AC 52 ms
20,536 KB
testcase_20 AC 52 ms
20,468 KB
testcase_21 AC 53 ms
20,468 KB
testcase_22 AC 42 ms
20,484 KB
testcase_23 AC 42 ms
20,456 KB
testcase_24 AC 52 ms
20,536 KB
testcase_25 AC 52 ms
20,096 KB
testcase_26 AC 52 ms
20,440 KB
testcase_27 AC 52 ms
20,440 KB
testcase_28 AC 42 ms
20,472 KB
testcase_29 AC 42 ms
20,448 KB
testcase_30 AC 52 ms
20,108 KB
testcase_31 AC 43 ms
20,488 KB
testcase_32 AC 52 ms
20,460 KB
testcase_33 AC 53 ms
20,104 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 #

import Data.List
import Data.Maybe

appearance = [20104,20063,19892,20011,19874,20199,19898,20163,19956,19841]

main = getLine >>= putStrLn . unwords . map show . count

count ds = map fromJust $ sequence [findIndex (<0), findIndex (>0)] diff
 where diff = zipWith (-) appearance $ map (length . flip filter ds . (==)) ['0'..'9']
0