摘要: //模拟链表。Uva 12657 #include<cstdio>#include<algorithm>using namespace std;int right[100010],left[100010];void link(int a,int b)//将a b变成左右连接的状态{ right[a] 阅读全文
posted @ 2022-03-26 16:17 noname5588 阅读(39) 评论(0) 推荐(0)
摘要: /*洛谷P1102 我认为是一个非常有用的思想,把A-B=C转化成A-C=B#include<cstdio>#include<map>using namespace std;long long a[200010];long long N,C;map<long long,long long>M;int 阅读全文
posted @ 2022-03-26 11:27 noname5588 阅读(28) 评论(0) 推荐(0)