結果
| 問題 |
No.276 連続する整数の和(1)
|
| コンテスト | |
| ユーザー |
kongarishisyamo
|
| 提出日時 | 2016-05-19 10:24:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 174 bytes |
| コンパイル時間 | 629 ms |
| コンパイル使用メモリ | 55,116 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-06 06:01:38 |
| 合計ジャッジ時間 | 897 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<iostream>
using namespace std;
int main(){
long long N;
long long x,n=0;
long long ans=0;
cin>>N;
if(N%2==1) cout<<N<<endl;
else cout<<N/2<<endl;
}
kongarishisyamo