結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー LeonardoneLeonardone
提出日時 2019-12-13 02:08:19
言語 Haskell
(9.8.2)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 709 bytes
コンパイル時間 5,097 ms
コンパイル使用メモリ 169,700 KB
実行使用メモリ 11,896 KB
最終ジャッジ日時 2023-09-08 10:47:35
合計ジャッジ時間 3,315 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,916 KB
testcase_01 AC 2 ms
7,012 KB
testcase_02 AC 12 ms
11,664 KB
testcase_03 AC 72 ms
11,812 KB
testcase_04 AC 32 ms
11,784 KB
testcase_05 AC 52 ms
11,828 KB
testcase_06 AC 52 ms
11,772 KB
testcase_07 AC 82 ms
11,868 KB
testcase_08 AC 73 ms
11,816 KB
testcase_09 AC 62 ms
11,776 KB
testcase_10 AC 22 ms
11,684 KB
testcase_11 AC 22 ms
11,664 KB
testcase_12 AC 72 ms
11,804 KB
testcase_13 AC 32 ms
11,896 KB
testcase_14 AC 22 ms
11,716 KB
testcase_15 AC 82 ms
11,744 KB
testcase_16 AC 3 ms
7,044 KB
testcase_17 AC 12 ms
11,712 KB
testcase_18 AC 32 ms
11,772 KB
testcase_19 AC 53 ms
11,776 KB
testcase_20 AC 82 ms
11,756 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 #

-- Practice yukicoder
-- author: Leonardone @ NEETSDKASU

main = interact $ head . drop 2 . flip dropWhile (map (tail . concat . map ('/':) . zipWith ($) [drop 1, drop 3, drop 3] . map (show . (+10000))) (filter (not . all id . zipWith ($) [not . (foldl1 (==) . map (== 0) . zipWith ($) [(`mod` 4), (`mod` 100), (`mod` 400)] . repeat), (== 2), (== 29)]) . filter ((>= 0) . foldl1 subtract . zipWith ($) [(!!2), maybe 0 id . flip lookup ([(2, 29)] ++ map (flip (,) 30) [4,6,9,11] ++ map (flip (,) 31) [1,3,5,7,8,10,12]) . (!!1)] . repeat) $ (concat . map (zipWith (flip (++) . return) [1..31] . repeat) . concat $ map (zipWith (flip (++) . return) [1..12] . repeat . return) [2000..2401]))) . (/=) . take 10


0