-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.cpp
More file actions
49 lines (36 loc) · 780 Bytes
/
template.cpp
File metadata and controls
49 lines (36 loc) · 780 Bytes
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
/*
Md. Abdul Mutalib
B.Sc (Engg.) in CSE
North East University Bangladesh
Connect with me:
Github: @mamutalib
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define ld long double
#define nl '\n'
#define fn for(int i = 0; i<n; i++)
#define ft for(int i = 0; i<t; i++)
#define wt while(t--)
#define wn while(n--)
#define fs first
#define f first
#define s second
#define pf printf
#define sc scanf
void solve() {
int t;
cin >> t;
ft{
int a,b,c;
cin >> a >> b >> c;
if((a<b && b<c) || (c<b && b<a)) cout << b << endl;
else if ((b < a && a<c) || (c<a && a<b)) cout << a << endl;
else cout << c << endl;
}
}
int main() {
solve();
}