結果
問題 | No.3017 エスパー |
ユーザー | poapoa |
提出日時 | 2020-07-21 19:24:43 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 2,749 ms |
コンパイル使用メモリ | 159,520 KB |
実行使用メモリ | 7,472 KB |
最終ジャッジ日時 | 2023-08-28 23:25:01 |
合計ジャッジ時間 | 1,955 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 3 ms
7,276 KB |
testcase_02 | WA | - |
testcase_03 | AC | 2 ms
7,260 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 3 ms
7,408 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 3 ms
7,264 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | 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
ソースコード
import Data.Maybe (fromJust) import qualified Data.ByteString.Char8 as BSC8 readInts :: IO [Integer] readInts = map (fst . fromJust . BSC8.readInteger) . BSC8.words <$> BSC8.getLine main :: IO () main = do (s:k:_) <- readInts print $ if (s - k) `mod` 2 == 0 then 0 else s - k