結果

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

テストケース

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

ソースコード

diff #

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