結果

問題 No.276 連続する整数の和(1)
ユーザー れいん
提出日時 2025-05-03 21:24:50
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 210 bytes
コンパイル時間 3,442 ms
コンパイル使用メモリ 271,908 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-05-03 21:24:55
合計ジャッジ時間 3,819 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int N;
    cin >> N;
    if (N % 2 == 0)
    {
        cout << N / 2;
    }
    else
    {
        cout << N;
    }
}
// 1 2 3 4 =2
// 3 3 3 6 6 6
0