結果

問題 No.63 ポッキーゲーム
ユーザー Hirotaka OhkuboHirotaka Ohkubo
提出日時 2016-07-15 19:27:16
言語 Haskell
(9.8.2)
結果
TLE  
実行時間 -
コード長 166 bytes
コンパイル時間 1,884 ms
コンパイル使用メモリ 172,288 KB
実行使用メモリ 14,752 KB
最終ジャッジ日時 2024-04-23 01:56:33
合計ジャッジ時間 8,750 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 8 ms
7,936 KB
testcase_08 AC 4 ms
6,400 KB
testcase_09 AC 27 ms
7,936 KB
testcase_10 AC 212 ms
8,064 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List

main = do
  li <- getLine
  let [l,k] = map read $ words li
  print $ compute k 0 l

compute k a l
 | l <= k*2 = a
 | True = compute k (a+k) (l-k-k)
0