結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
![]() |
提出日時 | 2018-09-15 21:30:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 256 bytes |
コンパイル時間 | 1,527 ms |
コンパイル使用メモリ | 165,140 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-18 07:15:09 |
合計ジャッジ時間 | 2,181 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> typedef long long ll; #define INF 1000000000 using namespace std; #define MOD 1000000007 int main(void){ int n; cin>>n; int ans; if(n%2==0){ ans=n/2; }else{ ans=n; } cout<<ans<<endl; }