diff --git a/POJ/3190_csdn.cpp b/POJ/3190_csdn.cpp new file mode 100644 index 0000000..af8f42a --- /dev/null +++ b/POJ/3190_csdn.cpp @@ -0,0 +1,63 @@ +#include +#include +#include +#include +#include +using namespace std; +const int maxn=60000; +int n,use[maxn]; +struct Node +{ + int l; + int r; + int pos; + bool operator <(const Node &a)const + { + if(r==a.r) + return l>a.l; + return r>a.r; + } +}a[maxn]; +priority_queue q; +bool cmp(Node a,Node b) +{ + if(a.l==b.l) + return a.r