結果
| 問題 |
No.84 悪の算盤
|
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2015-01-10 21:37:25 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-13 03:35:10 |
| 合計ジャッジ時間 | 2,019 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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