Submission #68335


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define reps(i,n) for(int i=1;i<=(n);++i)
#define all(x) begin(x), end(x)
#define Fixed fixed << setprecision(12)
#define int int_fast64_t
using pii = pair<int,int>;
constexpr int32_t INF = 0x3f3f3f3f;
constexpr int_fast64_t lINF = 0x3f3f3f3f3f3f3f3fll;
constexpr int mod1 = 1e9+7;
constexpr int mod2 = 998244353;
template <class Func>
class FixPoint : Func {
public:
explicit constexpr FixPoint(Func&& f) noexcept : Func(forward<Func>(f)) {}
template <class... Args>
constexpr decltype(auto) operator()(Args&&... args) const {
return Func::operator()(*this, std::forward<Args>(args)...);
}
};
template <class Func>
static inline constexpr decltype(auto) makeFixPoint(Func&& f) noexcept {
return FixPoint<Func>{forward<Func>(f)};
}
template <class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); }
template <class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); }
template <class T> using max_heap = priority_queue<T>;
template <class T> using min_heap = priority_queue<T,vector<T>,greater<T> >;
template <class A, class B> using umap = unordered_map<A,B>;
template <class T> inline void bye(T x) { cout << x << '\n'; exit(0); }
inline int square(int a){ return a * a;}
inline int updiv(int a,int b){ return (a + b - 1) / b; }
constexpr int dx[] = {1,0,-1,0,1,1,-1,-1};
constexpr int dy[] = {0,-1,0,1,1,-1,-1,1};
signed main(void){
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
vector<int32_t> v(16000000);
int a, b;
cin >> a >> b;
cout << (a + b) / 2 << '\n';
return (0);
}

ステータス

項目 データ
問題 0955 - お年玉
ユーザー名 ei1903
投稿日時 2021-09-06 18:58:18
言語 C++14
状態 Accepted
得点 3
ソースコード長 1792 Byte
最大実行時間 53 ms
最大メモリ使用量 63132 KB

セット

セット 得点 Cases
1 ALL 3 / 3 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 53 ms 62940 KB
1
in2.txt AC 38 ms 62900 KB
1
in3.txt AC 41 ms 62944 KB
1
in4.txt AC 34 ms 62996 KB
1
in5.txt AC 32 ms 63044 KB
1
in6.txt AC 31 ms 62960 KB
1
in7.txt AC 28 ms 63132 KB
1
in8.txt AC 37 ms 62920 KB
1
in9.txt AC 31 ms 62968 KB
1
in10.txt AC 34 ms 62856 KB
1
in11.txt AC 26 ms 62900 KB
1
in12.txt AC 35 ms 62940 KB
1
in13.txt AC 31 ms 62856 KB
1