結果

問題 No.349 干支の置き物
ユーザー iwotiwot
提出日時 2020-06-07 12:18:14
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 1,443 ms
コンパイル使用メモリ 165,556 KB
実行使用メモリ 7,596 KB
最終ジャッジ日時 2023-08-25 04:34:59
合計ジャッジ時間 2,223 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,376 KB
testcase_01 AC 2 ms
7,516 KB
testcase_02 AC 2 ms
7,404 KB
testcase_03 AC 2 ms
7,524 KB
testcase_04 AC 2 ms
7,596 KB
testcase_05 AC 2 ms
7,484 KB
testcase_06 AC 3 ms
7,548 KB
testcase_07 AC 3 ms
7,528 KB
testcase_08 AC 2 ms
7,492 KB
testcase_09 AC 2 ms
7,536 KB
testcase_10 AC 3 ms
7,564 KB
testcase_11 AC 2 ms
7,556 KB
testcase_12 AC 2 ms
7,476 KB
testcase_13 AC 3 ms
7,500 KB
testcase_14 AC 3 ms
7,532 KB
testcase_15 AC 3 ms
7,472 KB
testcase_16 AC 2 ms
7,464 KB
testcase_17 AC 3 ms
7,544 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 3 ms
7,352 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 2 ms
7,384 KB
testcase_25 AC 3 ms
7,456 KB
testcase_26 WA -
testcase_27 AC 2 ms
7,560 KB
testcase_28 AC 2 ms
7,432 KB
testcase_29 AC 2 ms
7,484 KB
testcase_30 WA -
testcase_31 AC 3 ms
7,440 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.Set as S
import Control.Monad

main :: IO ()
main = do
    n <- read <$> getLine
    alist <- replicateM n getLine
    putStrLn $ solve n alist

solve :: Int -> [String] -> String
solve n alist = if n > 2 && length set >= 3 then "YES" else "NO" where set = S.fromList alist
0