原文链接:https://without.boats/blog/two-memory-bugs-from-ringbahn/ 原文标题:Two Memory Bugs From Ringbahn 公众号:Rust 碎碎念 翻译: Praying 在实现ringbahn[1]的时候,我引入了至少两个 ...
分类:
其他好文 时间:
2020-11-04 17:55:28
阅读次数:
13
#include <bits/stdc++.h> using namespace std; const int mn=1e6+7; const int mod=1e9+7; int v[mn],p[mn],s[mn]; int main() { int n,tot=0; cin>>n; for(in ...
分类:
其他好文 时间:
2020-11-02 10:09:59
阅读次数:
47
CentOS7 | 常用操作合集 🔶修改网卡名为eth0的形式 安装界面中,按TAB键进入到内核参数配置界面,并手工输入如下参数,输入完毕后按回车键继续: net.ifnames=0 biosdevname=0 🔶配置网络 nmtui cat /etc/sysconfig/network-scr ...
分类:
其他好文 时间:
2020-11-01 22:19:47
阅读次数:
29
Reporting and analytics with Power BI home page This topic points you to resources that you can use to learn more about the business intelligence (BI) ...
分类:
其他好文 时间:
2020-11-01 09:20:29
阅读次数:
20
https://codeforces.com/problemset/problem/1436/D 这题就是让村名尽可能集中在叶子上,但是可能叶子上本来就有很多村民,就是这样。 假设 1. mx[x]为在x点可以抓到的最多的人 2. chal[x]为 在x点还差chal[x]人就可以让x下面所有叶子都 ...
分类:
其他好文 时间:
2020-10-31 01:31:44
阅读次数:
13
完全背包模型 二维 #include<iostream> using namespace std; const int N = 4010; const unsigned int mod = 1 << 31; unsigned int f[N][N]; int n; int main(){ cin > ...
分类:
其他好文 时间:
2020-10-29 09:20:50
阅读次数:
15
DP +++ 一.背包问题 1.01背包 二维数组状态转移 #include <iostream> using namespace std; const int N = 1010; int v[N], w[N]; int n, m; int f[N][N]; int main() { cin >> ...
分类:
其他好文 时间:
2020-10-26 11:54:14
阅读次数:
26
A int main() { IOS; for (cin >> _; _; --_) { cin >> n; m = n; k = 0; while (m) ++k, m /= 10; cout << (n % 10 - 1) * 10 + (1 + k) * (k) / 2 << '\n'; } ...
分类:
其他好文 时间:
2020-10-22 22:26:45
阅读次数:
20
通过Scrapy的自有文件我们可以看到内置的UserAgent是如何设置的 scrapy.downloadermiddlewares.useragent.UserAgentMiddleware """Set User-Agent header per spider or use a default ...
分类:
其他好文 时间:
2020-10-21 21:26:03
阅读次数:
28
#include <iostream> #include <cstring> using namespace std; char a[260]; int main() { int len,k; cin>>a; cin>>k; len=strlen(a); while(k--) { for(int i ...
分类:
其他好文 时间:
2020-10-19 22:33:48
阅读次数:
21