結果

問題 No.63 ポッキーゲーム
ユーザー mesh1nek0x0mesh1nek0x0
提出日時 2018-06-28 20:31:17
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 179 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 15,316 KB
最終ジャッジ日時 2023-09-13 14:52:57
合計ジャッジ時間 9,004 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,128 KB
testcase_01 AC 77 ms
15,188 KB
testcase_02 AC 76 ms
15,308 KB
testcase_03 AC 79 ms
15,060 KB
testcase_04 AC 78 ms
15,240 KB
testcase_05 AC 77 ms
15,192 KB
testcase_06 AC 81 ms
15,316 KB
testcase_07 AC 81 ms
15,172 KB
testcase_08 AC 78 ms
15,148 KB
testcase_09 AC 99 ms
15,172 KB
testcase_10 AC 275 ms
15,248 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby

input = gets.chomp.split(' ')
l = input[0].to_i
k = input[1].to_i

n = 0
# 次超えちゃうか判定?
while l - ((2 * k) * (n + 1)) > 0 do
  n += 1
end
puts n * k
0