結果
問題 | No.116 門松列(1) |
ユーザー | aimy |
提出日時 | 2017-04-30 11:53:33 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 253 bytes |
コンパイル時間 | 676 ms |
コンパイル使用メモリ | 156,268 KB |
実行使用メモリ | 7,780 KB |
最終ジャッジ日時 | 2023-10-11 23:34:10 |
合計ジャッジ時間 | 2,652 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 3 ms
7,240 KB |
testcase_02 | AC | 2 ms
7,224 KB |
testcase_03 | AC | 2 ms
7,172 KB |
testcase_04 | AC | 2 ms
7,184 KB |
testcase_05 | AC | 3 ms
7,320 KB |
testcase_06 | AC | 2 ms
7,232 KB |
testcase_07 | AC | 3 ms
7,148 KB |
testcase_08 | AC | 3 ms
7,272 KB |
testcase_09 | AC | 2 ms
7,148 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
7,372 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 3 ms
7,296 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | AC | 3 ms
7,712 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
ソースコード
import Control.Monad import Data.List main = getContents >>= print . kadomatsu . map read . words kadomatsu (n:as) = length $ do i <- [0 .. n-3] let seqs = take 3 (drop i as) guard (sort seqs /= seqs && length (group (sort seqs)) == 3) return seqs