-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path358.cpp
42 lines (34 loc) · 830 Bytes
/
358.cpp
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
// in the name of God
// Young fire burn
# include <bits/stdc++.h>
using namespace std;
# define pb push_back
# define slark cerr << "slark" << endl;
# define dagon cout << endl;
# define XX first
# define YY second
# define err(x) cout << #x << " is: " << x << endl;
# define Wait() int _; cin >> _;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pii;
const double PI = 3.1415931;
const double eps = 1e-9;
int a[3][3];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
cin >> a[i][j];
}
}
sort(a[0], a[0] + 3);
sort(a[1], a[1] + 3);
sort(a[2], a[2] + 3);
a[0][2] = a[1][1];
a[0][0] = a[2][1];
sort(a[0], a[0] + 3);
cout << a[0][1] << endl;
return 0;
}