結果

問題 No.239 にゃんぱすー
ユーザー aimyaimy
提出日時 2017-04-17 14:59:18
言語 Haskell
(9.8.2)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 897 ms
コンパイル使用メモリ 156,176 KB
実行使用メモリ 19,052 KB
最終ジャッジ日時 2023-09-26 10:39:23
合計ジャッジ時間 3,188 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,864 KB
testcase_01 AC 3 ms
6,844 KB
testcase_02 AC 3 ms
6,820 KB
testcase_03 AC 2 ms
6,976 KB
testcase_04 AC 3 ms
6,880 KB
testcase_05 AC 3 ms
6,796 KB
testcase_06 AC 3 ms
6,900 KB
testcase_07 AC 3 ms
6,892 KB
testcase_08 AC 3 ms
7,200 KB
testcase_09 AC 4 ms
7,844 KB
testcase_10 AC 4 ms
8,504 KB
testcase_11 AC 6 ms
9,848 KB
testcase_12 AC 6 ms
10,996 KB
testcase_13 AC 6 ms
10,400 KB
testcase_14 AC 12 ms
11,488 KB
testcase_15 AC 12 ms
11,848 KB
testcase_16 AC 12 ms
12,248 KB
testcase_17 AC 22 ms
12,760 KB
testcase_18 AC 23 ms
13,756 KB
testcase_19 AC 23 ms
14,316 KB
testcase_20 AC 23 ms
13,948 KB
testcase_21 AC 33 ms
15,944 KB
testcase_22 AC 33 ms
14,352 KB
testcase_23 AC 33 ms
14,408 KB
testcase_24 AC 33 ms
17,244 KB
testcase_25 AC 43 ms
18,136 KB
testcase_26 AC 53 ms
19,052 KB
testcase_27 AC 3 ms
7,200 KB
testcase_28 AC 5 ms
8,860 KB
testcase_29 AC 7 ms
10,968 KB
testcase_30 AC 12 ms
11,572 KB
testcase_31 AC 13 ms
12,300 KB
testcase_32 AC 23 ms
13,688 KB
testcase_33 AC 32 ms
14,636 KB
testcase_34 AC 32 ms
15,460 KB
testcase_35 AC 32 ms
17,208 KB
testcase_36 AC 52 ms
19,028 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

main = getContents >>= print . nyanpass . transpose . map words . tail . lines

nyanpass xss = case findIndices (==1) $ map (length . filter (/= "nyanpass")) xss of {[x] -> x+1; _ -> -1}
0