結果

問題 No.84 悪の算盤
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2015-05-21 17:51:34
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 74 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 11,516 KB
実行使用メモリ 15,352 KB
最終ジャッジ日時 2023-09-20 08:40:13
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,188 KB
testcase_01 AC 83 ms
15,112 KB
testcase_02 AC 86 ms
15,324 KB
testcase_03 AC 85 ms
15,072 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 85 ms
15,300 KB
testcase_08 AC 87 ms
15,208 KB
testcase_09 AC 86 ms
15,352 KB
testcase_10 AC 86 ms
15,152 KB
testcase_11 AC 84 ms
15,292 KB
testcase_12 AC 86 ms
15,188 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

r,c = gets.chomp.split.map(&:to_i)
puts r * c / 2  + (r % 2) * (c % 2) - 1
0