結果

問題 No.276 連続する整数の和(1)
ユーザー snrnsidy
提出日時 2021-07-18 23:55:32
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 232 bytes
コンパイル時間 1,622 ms
コンパイル使用メモリ 191,672 KB
最終ジャッジ日時 2025-01-23 03:16:01
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	long long int N;
	long long int res = 0;

	cin >> N;

	if (N % 2 == 0)
	{
		N /= 2;
	}

	cout << N << '\n';
	return 0;
}
0