摘要:
方法一: #include <iostream> #include <queue> using namespace std; //排序模拟,tle做法 int now1[100000],now2[100000]; int main() { int n; priority_queue<int,vect 阅读全文
posted @ 2023-04-19 22:44
lijunjie03
阅读(55)
评论(0)
推荐(0)
摘要:
方法一: #include <iostream> #include <queue> #include <vector> using namespace std; //究极愚蠢queue+vector模拟 tle int main() { queue<int>a; int N,M,judge,k,x; 阅读全文
posted @ 2023-04-19 22:39
lijunjie03
阅读(28)
评论(0)
推荐(0)
摘要:
第一种方法:数组10^5*10^5 超范围 第二种方法:vector(mle) //较麻烦,并且通过不了hack,需要手动搜索查询 #include <iostream> #include <vector> using namespace std; int n,p,judge,num1,num2,k 阅读全文
posted @ 2023-04-19 22:27
lijunjie03
阅读(32)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int N,m,A[5000005]; //用scanf,printf卡常 template <class T> void sift(T a[],int k,int m){//换位,假设左右结点已排好序 int i=k 阅读全文
posted @ 2023-04-19 22:05
lijunjie03
阅读(35)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int N,m,A[5000005]; //用scanf,printf卡常 template<class T> void QuickSort(T a[],int first,int end){ int i=first, 阅读全文
posted @ 2023-04-19 21:49
lijunjie03
阅读(37)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <stack> using namespace std; int q,n,a[100000],b[100000],num; int main() { cin>>q; stack<int>s; for(int j=0;j<q;++j){ cin 阅读全文
posted @ 2023-04-19 21:39
lijunjie03
阅读(54)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <algorithm> #include <queue> using namespace std; int k,d,m,f,q,a,b,c,tmp; double ans; int main() { cin>>k>>d>>m>>f; prio 阅读全文
posted @ 2023-04-19 21:32
lijunjie03
阅读(23)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <stack> using namespace std; long long tmp1,tmp2,tmp3; int main() { stack<long long>a; char ch; cin>>ch; while(ch!='@'){/ 阅读全文
posted @ 2023-04-19 21:16
lijunjie03
阅读(47)
评论(0)
推荐(0)
摘要:
#include <iostream> #include <string> using namespace std; int sum[50000]; int main() { string a,b; long long x,y; cin>>a>>b; int jug=0,pd=0; if((a < 阅读全文
posted @ 2023-04-19 21:07
lijunjie03
阅读(16)
评论(0)
推荐(0)
摘要:
// // main.cpp // w1-4 求两个正整数的乘积 // // Created by 李俊杰 on 2023/2/21. // #include <iostream> #include <string.h> using namespace std; int main() { char 阅读全文
posted @ 2023-04-19 20:57
lijunjie03
阅读(39)
评论(0)
推荐(0)

浙公网安备 33010602011771号