-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuntions.cpp
More file actions
34 lines (27 loc) · 694 Bytes
/
Funtions.cpp
File metadata and controls
34 lines (27 loc) · 694 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
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lttc ll t;cin>>t; while(t--)
#define vll vector<long long>
#define vi vector<int>
#define rip(i,n) for(int i=0;i<n;i++)
#define YES cout<<"YES\n"
#define NO cout<<"NO\n"
#define pb push_back
#define ppb pop_back
#define tt int t;cin>>t;while(t--)
#define fr(i,n) for(int i=1;i<=n;i++)
#define optimize() ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
int max_of_four(int a, int b, int c, int d){
int vals[] = {a, b, c, d};
valarray<int> valArr (vals, 4);
return valArr.max();
}
int main(){
optimize();
int a,b,c,d;
cin>>a>>b>>c>>d;
int ans=max_of_four(a,b,c,d);
cout<<ans<<"\n";
return 0;
}