結果

問題 No.863 計算量
ユーザー 情報学生情報学生
提出日時 2019-08-16 21:50:38
言語 Haskell
(9.6.2)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 10,491 ms
コンパイル使用メモリ 165,128 KB
実行使用メモリ 5,296 KB
最終ジャッジ日時 2023-10-23 22:31:41
合計ジャッジ時間 11,166 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 2 ms
5,296 KB
testcase_06 AC 2 ms
5,296 KB
testcase_07 AC 3 ms
5,296 KB
testcase_08 AC 2 ms
5,292 KB
testcase_09 AC 2 ms
5,292 KB
testcase_10 AC 2 ms
5,292 KB
testcase_11 AC 2 ms
5,296 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 2 ms
5,292 KB
testcase_15 AC 3 ms
5,296 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

main :: IO ()
main = interact $ show . solve . map read . words

solve :: [Integer] -> Integer
solve [a, b] = if d `div` b < 2 then 1 else 2
    where
        c = 5000 `div` a
        d = c * b
0