凡人皆需侍奉

others /
2021-04-10 0

WSL 设置代理,使用外部windows的代理cat /etc/resolv.conf 查看 DNS 服务器 IP。可以看到 DNS 服务器 172.20.176.1 ,通过ALL_PROXY设置代理,export ALL_PROXY="http://172.20.176.1:10809&

blog /
2021-01-04 0

2020-12-02 0

204. 计数质数暴力筛选法,对所有数进行标记,对于一个质数,他所有的倍数都不是质数。class Solution {public: int countPrimes(int n) { if(n<3) return 0; vector<int> re