結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
![]() |
提出日時 | 2018-10-17 01:19:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 663 ms |
コンパイル使用メモリ | 80,732 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 18:49:10 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream>#include <string>#include <vector>#include <set>#include <cmath>#include <algorithm>#include <iomanip>using ll = long long;using namespace std;int main(void){int N;cin >> N;if(N%2==0){cout << N / 2 << endl;}else{cout << N << endl;}return 0;}