結果
問題 | No.63 ポッキーゲーム |
ユーザー | fullmated |
提出日時 | 2016-10-02 02:56:40 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 142 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 19,360 KB |
最終ジャッジ日時 | 2024-05-01 09:28:48 |
合計ジャッジ時間 | 8,492 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 89 ms
12,160 KB |
testcase_01 | AC | 91 ms
12,416 KB |
testcase_02 | AC | 90 ms
12,288 KB |
testcase_03 | AC | 89 ms
12,160 KB |
testcase_04 | AC | 92 ms
12,288 KB |
testcase_05 | AC | 88 ms
12,416 KB |
testcase_06 | AC | 94 ms
12,160 KB |
testcase_07 | AC | 98 ms
12,288 KB |
testcase_08 | AC | 91 ms
12,160 KB |
testcase_09 | AC | 142 ms
12,416 KB |
testcase_10 | AC | 572 ms
12,288 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
ソースコード
# Here your code ! L, K = gets.chomp.split.map(&:to_i) l = L ans = 0 loop do break if l - 2*K <= 0 ans += K l -= 2*K end puts ans