文章列表

5661 分钟

因为一些原因总是要手机开热点然后电脑设置一下配置,感觉十分麻烦于是琢磨了一下PAC。 PAC,全称Proxy Auto Config,中文名代理自动配置。PAC类似于配置文件,通过这个配置文件,浏览器或者其他UA可以对每一个url配置代理服务,比如这个url要走这个代理,那类url要走那个代理等。 接着就是用golang写一个PAC丢上服务器喽 package handler import ( "fmt" "net/http" "os" ) func Pac(w http.ResponseWrit
2.9k3 分钟

dsu on tree套个BIT #include <bits/stdc++.h> /* #include<ext/pb_ds/assoc_container.hpp> #include<ext/pb_ds/hash_policy.hpp> */ using namespace std; const double eps = 1e-10; const double pi = 3.1415926535897932384626433832795; const double
3.8k3 分钟

良心评测机这是一道队列和栈的题。 对于所有提交用一个队列维护,而每个选手的提交分别用一个栈来维护,再开一个标记数组标记提交是否已评测即可。 #include <bits/stdc++.h> using namespace std; using ll=long long; ll n, id; string tmp; queue<array<int,3>> q; stack<array<int,2>> st[(int)1e5+9]; bitset<(int)1e6+9> vis; int main()