結果

問題 No.276 連続する整数の和(1)
ユーザー bal4ubal4u
提出日時 2019-04-14 21:29:38
言語 C
(gcc 11.2.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 188 bytes
コンパイル時間 347 ms
使用メモリ 1,952 KB
最終ジャッジ日時 2022-11-18 07:18:57
合計ジャッジ時間 1,175 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 0 ms
1,848 KB
testcase_01 AC 0 ms
1,876 KB
testcase_02 AC 0 ms
1,848 KB
testcase_03 AC 0 ms
1,848 KB
testcase_04 AC 1 ms
1,952 KB
testcase_05 AC 0 ms
1,872 KB
testcase_06 AC 0 ms
1,844 KB
testcase_07 AC 0 ms
1,952 KB
testcase_08 AC 1 ms
1,944 KB
testcase_09 AC 0 ms
1,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// yukicoder: No.276 連続する整数の和(1)
// 2019.4.14 bal4u

#include <stdio.h>

int main()
{
	int N;
	scanf("%d", &N);
	if ((N & 1) == 0) N >>= 1;
	printf("%d\n", N);
	return 0;
}
0