結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
![]() |
提出日時 | 2021-08-01 20:55:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 2,205 ms |
コンパイル使用メモリ | 192,908 KB |
最終ジャッジ日時 | 2025-01-23 13:24:02 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;#define rep(i,n) for(int i=0;i<n;i++)#define int long longstatic const ll mod=998244353;signed main(){int n;cin>>n;if(n%2==0){cout<<n/2<<endl;return 0;}else{cout<<n<<endl;}return 0;}