結果

問題 No.71 そろばん
ユーザー satanic
提出日時 2016-03-29 20:00:48
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 594 ms
コンパイル使用メモリ 67,828 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-02 07:28:11
合計ジャッジ時間 1,584 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <iomanip>

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(0);

    long long int n;
    std::cin >> n;

    std::cout << std::fixed << std::setprecision(0) << (std::floor(n/2.0)+1)*(std::ceil(n/2.0)+1)-1 << "\n";
	return 0;
}
0