結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,152 KB
testcase_01 AC 79 ms
15,284 KB
testcase_02 AC 79 ms
15,232 KB
testcase_03 AC 79 ms
15,228 KB
testcase_04 AC 79 ms
15,236 KB
testcase_05 AC 78 ms
15,324 KB
testcase_06 AC 79 ms
15,252 KB
testcase_07 AC 81 ms
15,136 KB
testcase_08 AC 77 ms
15,048 KB
testcase_09 AC 76 ms
15,180 KB
testcase_10 AC 77 ms
15,032 KB
testcase_11 AC 81 ms
15,148 KB
testcase_12 AC 77 ms
15,288 KB
testcase_13 WA -
testcase_14 AC 79 ms
15,128 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 75 ms
15,240 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/bin/ruby

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

if l - 2 * k <= 0
  puts 0
else
  puts (l / (2 * k)) * k
end
0