-
Notifications
You must be signed in to change notification settings - Fork 0
/
libs.h
54 lines (46 loc) · 945 Bytes
/
libs.h
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
52
53
54
#ifndef LIBS_H
#define LIBS_H
#define SIZE_BUFFER 1024
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <pthread.h>
#include <ctime>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <deque>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <list>
#include <stack>
#include <random>
#include <iterator>
#include <chrono>
#include <functional>
using namespace std;
using namespace std::chrono;
struct comp_pair
{
inline bool operator()(const pair<unsigned int, float>& lhs, const pair<unsigned int, float>& rhs) const
{
if(lhs.second > rhs.second)
return true;
if(lhs.second < rhs.second)
return false;
return true;
// if(lhs.first < rhs.first)
// return true;
// return false;
}
};
#endif