結果

問題 No.63 ポッキーゲーム
ユーザー yutasthyutasth
提出日時 2017-05-04 16:47:34
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 156 bytes
コンパイル時間 8,301 ms
コンパイル使用メモリ 156,892 KB
実行使用メモリ 7,216 KB
最終ジャッジ日時 2023-10-12 08:01:37
合計ジャッジ時間 1,796 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,980 KB
testcase_01 AC 2 ms
7,048 KB
testcase_02 AC 2 ms
6,880 KB
testcase_03 AC 2 ms
7,036 KB
testcase_04 WA -
testcase_05 AC 3 ms
6,984 KB
testcase_06 AC 3 ms
7,088 KB
testcase_07 AC 3 ms
7,020 KB
testcase_08 AC 2 ms
7,084 KB
testcase_09 AC 2 ms
7,004 KB
testcase_10 AC 3 ms
7,040 KB
testcase_11 AC 3 ms
7,120 KB
testcase_12 AC 2 ms
7,076 KB
testcase_13 WA -
testcase_14 AC 3 ms
7,216 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 2 ms
7,024 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 Prelude

main :: IO ()
main = do
  [l, k] <- map read . words <$> getLine
  print $ calc l k

calc :: Int -> Int -> Int
calc l k = k * div l (k * 2)
0