結果

問題 No.276 連続する整数の和(1)
ユーザー izryt(趣味)izryt(趣味)
提出日時 2016-01-18 04:05:23
言語 C++11
(gcc 8.5.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 126 bytes
コンパイル時間 1,035 ms
実行使用メモリ 9,772 KB
最終ジャッジ日時 2023-03-28 03:58:58
合計ジャッジ時間 1,821 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
7,588 KB
testcase_01 AC 1 ms
7,564 KB
testcase_02 AC 1 ms
9,772 KB
testcase_03 AC 1 ms
7,568 KB
testcase_04 AC 2 ms
7,572 KB
testcase_05 AC 2 ms
7,724 KB
testcase_06 AC 1 ms
7,596 KB
testcase_07 AC 1 ms
7,600 KB
testcase_08 AC 1 ms
7,672 KB
testcase_09 AC 1 ms
9,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int N; cin >> N;

    cout << (N & 1 ? N : N / 2) << endl;
}
0