結果

問題 No.276 連続する整数の和(1)
ユーザー notetonousnotetonous
提出日時 2016-04-19 15:15:48
言語 C90
(gcc 8.5.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 127 bytes
コンパイル時間 217 ms
実行使用メモリ 1,952 KB
最終ジャッジ日時 2022-11-27 22:33:41
合計ジャッジ時間 1,119 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <stdio.h>
int main(){
  int N;
  scanf("%d",&N);
  if(N%2==1)printf("%d\n",N);
  else printf("%d",N/2);
  return 0;
}
0