結果
| 問題 | No.84 悪の算盤 |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-01-10 21:37:25 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2026-03-05 23:48:43 |
| 合計ジャッジ時間 | 1,282 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 3 |
コンパイルメッセージ
Syntax OK
ソースコード
class A
def initialize
r, c = gets.chomp.split(' ').map(&:to_i)
if c.even?
puts (r * (c/2)) - 1
else
puts (r * (c/2) + (r/2.0).ceil) - 1
end
end
end
A.new
siman