結果
問題 | No.1603 Manhattan Social Distance |
ユーザー |
|
提出日時 | 2021-07-16 21:22:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 119 bytes |
コンパイル時間 | 430 ms |
コンパイル使用メモリ | 64,380 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 08:11:28 |
合計ジャッジ時間 | 991 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream>using namespace std;int N,H,W;main(){cin>>N>>H>>W;cout<<(long)N/2*(N-N/2)*(H-1+W-1)<<endl;}