結果
問題 | No.1603 Manhattan Social Distance |
ユーザー |
|
提出日時 | 2021-07-17 00:08:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 1,883 ms |
コンパイル使用メモリ | 192,312 KB |
最終ジャッジ日時 | 2025-01-23 02:50:30 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>#define rep(i, n) for (int i = 0; i < (n); ++i)using std::cin;using std::cout;using std::vector;using ll = long long;int main() {int n, h, w;cin >> n >> h >> w;int a = n / 2;int b = n - a;ll ans = 1ll * a * b * (h + w - 2);cout << ans << '\n';return 0;}