結果

問題 No.63 ポッキーゲーム
ユーザー nikuzukinikuzuki
提出日時 2017-01-16 15:15:40
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 118 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 11,280 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-08-24 13:33:28
合計ジャッジ時間 4,128 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,044 KB
testcase_01 AC 80 ms
15,156 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 80 ms
15,028 KB
testcase_05 AC 80 ms
15,288 KB
testcase_06 AC 80 ms
15,328 KB
testcase_07 AC 80 ms
15,088 KB
testcase_08 AC 80 ms
15,132 KB
testcase_09 AC 81 ms
15,128 KB
testcase_10 AC 81 ms
15,128 KB
testcase_11 AC 80 ms
15,100 KB
testcase_12 AC 81 ms
15,112 KB
testcase_13 WA -
testcase_14 AC 80 ms
15,348 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 80 ms
15,020 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l, k = gets.chomp.split(' ').map(&:to_f)
eat = (l/k/2).floor
if eat == 1.0 then
  puts 0
else
  puts (eat*k).to_i
end
0