-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Lineland_Mail.cpp
More file actions
36 lines (34 loc) · 984 Bytes
/
A_Lineland_Mail.cpp
File metadata and controls
36 lines (34 loc) · 984 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
/*
``````````````
``` হে বস ```
``` কি খবর ভালো তো ```
``` ? ```
``` ```
``` ```
````````````
*/
#include<bits/stdc++.h>
using namespace std;
int t, count;
#define ll long long
#define yes cout << "YES" << endl;
#define no cout << "NO" << endl;
#define cout(n) cout << n << endl;
#define TestCase cin >> t; while(t--)
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n;
cin >> n;
int A[n + 1], B[n + 1];
for(int i = 1; i <= n; i++){
cin >> A[i];
B[i] = A[i];
}
sort(B + 1, B + n + 1);
int low = B[1], high = B[n];
cout << low << high << endl;
return 0;
}