結果
問題 | No.84 悪の算盤 |
ユーザー |
![]() |
提出日時 | 2016-04-22 16:07:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 391 ms |
コンパイル使用メモリ | 57,572 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 08:58:18 |
合計ジャッジ時間 | 911 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#include <iostream>#include <cmath>using namespace std;int main(){int r, c;cin >> r >> c;if (r == c){cout << ((long long)r * c - 1) / 4 << endl;}else{cout << ((long long)r * c - 1) / 2 << endl;}return 0;}