結果
| 問題 | No.84 悪の算盤 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-19 00:28:57 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 72,208 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-10-19 00:29:00 |
| 合計ジャッジ時間 | 2,320 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 7 WA * 3 |
ソースコード
#include <iostream>
#include <cstdio>
using namespace std;
int r, c;
int main() {
// freopen("abacus.in", "r", stdin);
// freopen("abacus.out", "w", stdout);
scanf("%d%d", &r, &c);
if (r == c) {
printf("%lld\n", (1LL * r * c + 3) / 4);
} else {
printf("%lld\n", (1LL * r * c + 1) / 2 - 1);
}
return 0;
}