結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
mesh1nek0x0
|
| 提出日時 | 2018-06-28 20:31:17 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 179 bytes |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 19,228 KB |
| 最終ジャッジ日時 | 2024-06-30 23:32:33 |
| 合計ジャッジ時間 | 7,971 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 TLE * 1 -- * 10 |
コンパイルメッセージ
Syntax OK
ソースコード
#!/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
mesh1nek0x0