結果

問題 No.63 ポッキーゲーム
ユーザー abinullabinull
提出日時 2021-12-07 21:48:29
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 117 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 15,364 KB
最終ジャッジ日時 2023-09-22 08:59:43
合計ジャッジ時間 2,956 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,360 KB
testcase_01 WA -
testcase_02 AC 77 ms
15,260 KB
testcase_03 WA -
testcase_04 AC 81 ms
15,292 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 77 ms
15,348 KB
testcase_10 WA -
testcase_11 AC 78 ms
15,148 KB
testcase_12 WA -
testcase_13 AC 78 ms
15,360 KB
testcase_14 WA -
testcase_15 AC 77 ms
15,248 KB
testcase_16 AC 78 ms
15,032 KB
testcase_17 AC 77 ms
15,144 KB
testcase_18 AC 76 ms
15,148 KB
testcase_19 AC 76 ms
15,156 KB
testcase_20 AC 77 ms
15,036 KB
testcase_21 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l, k = gets.chomp!.split(' ').map(&:to_i)

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