結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
|
提出日時 | 2019-08-10 23:15:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 1,910 ms |
コンパイル使用メモリ | 192,596 KB |
最終ジャッジ日時 | 2025-01-07 11:40:57 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;int main() {int n;cin>>n;if (n%2==0) cout<<n/2;else cout<<n;cout<<endl;return 0;}