結果

問題 No.780 オフ会
ユーザー RokiRoki
提出日時 2019-06-19 00:48:47
言語 Haskell
(9.6.2)
結果
WA  
実行時間 -
コード長 159 bytes
コンパイル時間 720 ms
コンパイル使用メモリ 158,556 KB
実行使用メモリ 7,128 KB
最終ジャッジ日時 2023-08-20 07:10:13
合計ジャッジ時間 2,097 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,984 KB
testcase_01 AC 3 ms
7,024 KB
testcase_02 AC 3 ms
7,012 KB
testcase_03 AC 3 ms
7,088 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 3 ms
7,024 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 3 ms
7,084 KB
testcase_10 AC 3 ms
6,984 KB
testcase_11 WA -
testcase_12 AC 3 ms
7,064 KB
testcase_13 AC 3 ms
7,076 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 3 ms
7,064 KB
testcase_17 AC 3 ms
7,120 KB
testcase_18 WA -
testcase_19 AC 3 ms
6,992 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

main :: IO ()
main = do
    [a, b] <- map read . words <$> getLine
    let r = abs $ pred (b - a)
    putStrLn $ (if r == 0 then "YES\n" else "NO\n") ++ show r
0