結果
問題 |
No.1603 Manhattan Social Distance
|
ユーザー |
|
提出日時 | 2021-07-17 00:03:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 286 bytes |
コンパイル時間 | 1,941 ms |
コンパイル使用メモリ | 190,624 KB |
最終ジャッジ日時 | 2025-01-23 02:50:22 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 10 WA * 6 |
ソースコード
#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; ll ans = 1ll * (n + 1) / 2 * n / 2 * (h + w - 2); cout << ans << '\n'; return 0; }