diff --git a/4095_xmly/Readme.md b/4095_xmly/Readme.md new file mode 100644 index 0000000..b4f8d75 --- /dev/null +++ b/4095_xmly/Readme.md @@ -0,0 +1,3 @@ +# 标题 + +* 内容 \ No newline at end of file diff --git a/4095_xmly/doc/Readme.md b/4095_xmly/doc/Readme.md new file mode 100644 index 0000000..b4f8d75 --- /dev/null +++ b/4095_xmly/doc/Readme.md @@ -0,0 +1,3 @@ +# 标题 + +* 内容 \ No newline at end of file diff --git a/4095_xmly/main.cpp b/4095_xmly/main.cpp new file mode 100644 index 0000000..8152a38 --- /dev/null +++ b/4095_xmly/main.cpp @@ -0,0 +1,47 @@ +#include +#include +using namespace std; +int n; +bool ce[100001]={0}; +struct link{ + int x,y; +}a[100001]; +bool pan(link yi,link er){ + return yi.x>n; + for(int i=0;i>a[i].x>>a[i].y; + } + sort(a,a+n,pan); + /* + for (int i = 0; i =a[i].y){ + ce[i]=1; + //cout<=0;i--){ + if(a[now].y-(a[now].x-a[i].x)>=a[i].y){ + ce[i]=1; + //cout<