結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
|
提出日時 | 2015-10-14 21:42:52 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 394 bytes |
コンパイル時間 | 668 ms |
コンパイル使用メモリ | 57,684 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-21 15:53:17 |
合計ジャッジ時間 | 1,357 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream>#include <algorithm>using namespace std;#define REP(i,a,b) for(i=a;i<b;i++)#define rep(i,n) REP(i,0,n)typedef long long ll;typedef unsigned long long ull;typedef long double lb;/* ここからが本編 */int main(void){ull i=1,j,k;int n;int x;char cnt = 0;cin >> n;if( n % 2) x = n;else x = n/2;cout << x << endl;return 0;}