結果
問題 | No.1603 Manhattan Social Distance |
ユーザー |
|
提出日時 | 2021-07-16 21:24:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 236 bytes |
コンパイル時間 | 1,519 ms |
コンパイル使用メモリ | 165,856 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 08:14:21 |
合計ジャッジ時間 | 2,091 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){long long N;scanf("%lld", &N);long long H, W;scanf("%lld %lld", &H, &W);long long te = N / 2 * (N - N / 2) * (H - 1 + W - 1);printf("%lld\n", te);}