摘要: #include<iostream> #include<queue> #include<algorithm> using namespace std; int n,m; struct node{ int x1; int x2; int y1; int y2; int num; int no; }wi 阅读全文
posted @ 2022-10-10 22:15 death_gun 阅读(33) 评论(0) 推荐(0)
摘要: 一、关于优先队列 1 #include<iostream> 2 #include<queue> 3 4 using namespace std; 5 6 priority_queue<int,vector<int>,greater<int>> q1; 7 priority_queue<int,vec 阅读全文
posted @ 2022-10-10 22:13 death_gun 阅读(25) 评论(0) 推荐(0)
摘要: 快速排序模板 1 #include<iostream> 2 using namespace std; 3 const int N = 1e5 + 10; 4 int arr[N]; 5 6 void quick_sort(int arr1[],int l,int r){ 7 if(l>=r) ret 阅读全文
posted @ 2022-03-03 21:09 death_gun 阅读(50) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h>using namespace std;int main(){ int ax,ay,bx,by; cin>>ax>>ay>>bx>>by; int arr[ax+5][ay+5]; ax += 2; ay += 2; bx += 2; by += 2; 阅读全文
posted @ 2021-11-24 23:25 death_gun 阅读(60) 评论(0) 推荐(0)
摘要: readelf -S [文件名] 阅读全文
posted @ 2021-10-17 17:12 death_gun 阅读(259) 评论(0) 推荐(0)
摘要: 关于系统调用的知识: Linux 的系统调用通过 int 80 实现,用系统调用号来区分入口函数 应用程序调用系统调用的过程是: 1、把系统调用的编号存入 EAX 2、把函数参数存入其它通用寄存器 3、触发 0x80 号中断(int 0x80) 关于系统调用的知识: Linux 的系统调用通过 in 阅读全文
posted @ 2021-10-17 17:02 death_gun 阅读(1325) 评论(0) 推荐(1)
摘要: int read(){ int x=0,f=1; char c=getchar(); while(c<'0'||c>'9'){ if(c=='-') f=-1; c=getchar(); } while(c>='0'&&c<='9'){ x=x*10+c-'0'; c=getchar(); } re 阅读全文
posted @ 2021-10-02 16:40 death_gun 阅读(118) 评论(0) 推荐(0)