結果
問題 | No.276 連続する整数の和(1) |
ユーザー |
![]() |
提出日時 | 2015-09-05 07:03:38 |
言語 | C++11 (gcc 8.5.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 702 bytes |
コンパイル時間 | 529 ms |
使用メモリ | 9,756 KB |
最終ジャッジ日時 | 2023-02-17 05:58:35 |
合計ジャッジ時間 | 1,504 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
9,712 KB |
testcase_01 | AC | 0 ms
7,580 KB |
testcase_02 | AC | 0 ms
7,652 KB |
testcase_03 | AC | 1 ms
7,600 KB |
testcase_04 | AC | 0 ms
7,668 KB |
testcase_05 | AC | 1 ms
9,668 KB |
testcase_06 | AC | 1 ms
7,680 KB |
testcase_07 | AC | 1 ms
9,756 KB |
testcase_08 | AC | 0 ms
9,700 KB |
testcase_09 | AC | 1 ms
7,668 KB |
ソースコード
#define _USE_MATH_DEFINES #include <iostream> #include <iomanip> #include <sstream> #include <algorithm> #include <cmath> #include <string> //#include <array> #include <list> #include <queue> #include <vector> #include <complex> #include <set> #include <map> ///////// #define REP(i, x, n) for(int i = x; i < n; i++) #define rep(i,n) REP(i,0,n) #define P(p) cout<<(p)<<endl; #define PII pair<int,int> ///////// typedef long long LL; typedef long double LD; ///////// using namespace::std; ///////// int main(void){ std::cin.tie(0); std::ios::sync_with_stdio(false); std::cout << std::fixed;// //cout << setprecision(16);// int N; cin >> N; P(N%2?N:N/2); return 0; }