結果

問題 No.71 そろばん
ユーザー not_522
提出日時 2015-07-19 19:01:55
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 145 bytes
コンパイル時間 1,273 ms
コンパイル使用メモリ 158,800 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-08 10:22:37
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  long long n;
  cin >> n;
  cout << (n / 2 + 1) * ((n + 1) / 2 + 1) - 1 << endl;
}
0