Skip to content

Commit 689cf07

Browse files
committed
Added 1760A - Medium Number.cpp
1 parent a5b9747 commit 689cf07

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

1760A - Medium Number.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// ॐ नमः शिवाय
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
#define ll long long
5+
6+
// Code Written By: Vikash Patel
7+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
8+
9+
int main()
10+
{
11+
int t;
12+
cin>>t;
13+
while(t--)
14+
{
15+
int a,b,c;
16+
cin>>a>>b>>c;
17+
vector<int> num = {a,b,c};
18+
sort(num.begin(),num.end());
19+
cout<<num[1]<<endl;
20+
}
21+
return 0;
22+
}

0 commit comments

Comments
 (0)