結果
| 問題 |
No.84 悪の算盤
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-20 12:21:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 215 bytes |
| コンパイル時間 | 546 ms |
| コンパイル使用メモリ | 62,796 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 14:37:40 |
| 合計ジャッジ時間 | 1,633 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 WA * 3 |
ソースコード
#include<iostream>
using namespace std;
typedef long long ll;
int main(){
ll r, c;
cin >> r >> c;
ll ans = r/2 * c;
if(r%2 == 1) ans += (c+1)/2;
cout << (ans-1) << endl;
return 0;
}