-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAlarmClock.cpp
51 lines (44 loc) · 880 Bytes
/
AlarmClock.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
43
44
45
46
47
48
49
50
51
#include <bits/stdc++.h>
#include <iostream>
#include <vector>
typedef long long ll;
typedef long double ld;
typedef std::vector<ll> vl;
typedef std::vector<vl> vvl;
void read(ll &x){
scanf("%lld",&x);
}
void read(ll &x,ll &y){
scanf("%lld%lld",&x,&y);
}
void read(ll &x,ll &y,ll &z){
scanf("%lld%lld%lld",&x,&y,&z);
}
void read(ll &x,ll &y,ll &z,ll &w){
scanf("%lld%lld%lld%lld",&x,&y,&z,&w);
}
clock_t t_start,t_end;
void start_clock(){
t_start = clock();
}
void end_clock(){
t_end = clock();
ld timeis = t_end - t_start;
printf("\n\nTime taken : %f s", ((float)timeis)/CLOCKS_PER_SEC);
}
using namespace std;
int main()
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
start_clock();
ll n, m, k;
read(n, m, k);
ll a[n];
for(ll i=0;i<n;i++)
read(a[i]);
int z = sizeof(a)/sizeof(a[0]);
sort(a, a+z);
end_clock();
return 0;
}