-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAClang.cpp
More file actions
57 lines (52 loc) · 1.31 KB
/
Copy pathAClang.cpp
File metadata and controls
57 lines (52 loc) · 1.31 KB
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
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <tuple>
// オンラインジャッジでなければ配列外参照にエラーを出す
#ifndef ONLINE_JUDGE
#define _GLIBCXX_DEBUG
#endif
// 入出力の高速化
struct Init { Init() { std::ios::sync_with_stdio(0); std::cin.tie(0); } }init;
// x ^^ n のための繰り返し2乗法
long long intpow(long long x, long long n) {
long long ret = 1;
while (n > 0) {
if (n & 1) ret *= x;
x *= x;
n >>= 1;
}
return ret;
}
// modpow のための繰り返し2乗法
long long modpow(long long x, long long n, long long MOD) {
long long ret = 1;
while (n > 0) {
if (n & 1) ret = ret * x % MOD;
x = x * x % MOD;
n >>= 1;
}
return ret;
}
int main(void) {
auto N = []{ int n; std::cin >> n; return n; }();
auto T = [&]{
std::vector<long long> _v(N);
for (long long& _x : _v) std::cin >> _x;
return _v;
}();
auto ti = std::vector<std::vector<long long>>();
for (long long i = 0; i < N; i += 1) {
ti.push_back(std::vector{T[i], (i + 1)});
}
std::sort(ti.begin(), ti.end());
std::cout << std::boolalpha << ti[0][1] << " " << ti[1][1] << " " << ti[2][1] << "\n";
return 0;
}