結果

問題 No.80 四角形を描こう
ユーザー nanasili
提出日時 2014-11-27 23:27:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 493 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 79,232 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-08 03:50:52
合計ジャッジ時間 1,154 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <functional>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cctype>
#include <string>
#include <cstring>

using namespace std;

typedef long long ll;


int main() {
  int d;
  cin >> d;
  if (d%2) d--;
  d/=2;
  cout << max(0, max((d/2)*((d+1)/2), (d/2+1)*((d+1)/2-1))) << endl;
}
0