結果

問題 No.276 連続する整数の和(1)
ユーザー koba-e964koba-e964
提出日時 2015-09-09 19:09:13
言語 C++11
(gcc 8.5.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 105 bytes
コンパイル時間 312 ms
使用メモリ 6,276 KB
最終ジャッジ日時 2023-02-17 08:24:45
合計ジャッジ時間 1,385 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 1 ms
6,256 KB
testcase_01 AC 0 ms
6,204 KB
testcase_02 AC 1 ms
6,252 KB
testcase_03 AC 1 ms
6,196 KB
testcase_04 AC 1 ms
6,192 KB
testcase_05 AC 1 ms
6,188 KB
testcase_06 AC 1 ms
6,212 KB
testcase_07 AC 1 ms
6,192 KB
testcase_08 AC 0 ms
6,252 KB
testcase_09 AC 0 ms
6,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
int n;cin>>n;
if(n%2==0)n/=2;
cout << n << endl;
}
0