# 设置时区 # cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime #时区为亚洲/上海 # 网络校时 # apt-get install ntpdate # ntpdate 210.72.145.44 # 中国国家时间服务器: 210.72.14 ...
分类:
其他好文 时间:
2020-07-02 20:07:13
阅读次数:
353
题目描述 There are NN light bulbs indexed from 00 to N-1N?1. Initially, all of them are off. A FLIP operation switches the state of a contiguous subset of ...
分类:
其他好文 时间:
2019-09-26 23:24:55
阅读次数:
116
题目地址:https://www.jisuanke.com/contest/3003?view=challenges A: B: C: D: E: F: G: H: I: J: K: L: ...
分类:
其他好文 时间:
2019-09-22 01:10:25
阅读次数:
74
题目链接:https://nanti.jisuanke.com/t/41415 赛后补题。 参考博客:https://blog.csdn.net/bjfu170203101/article/details/100889468 题意:给出一个主串(假设长度为m),再给出n个模式串,对于每一个模式串,如 ...
分类:
其他好文 时间:
2019-09-18 01:22:29
阅读次数:
110
131072K A digit sum S_b(n)Sb?(n) is a sum of the base-bb digits of nn. Such as S_{10}(233) = 2 + 3 + 3 = 8 S10?(233)=2+3+3=8, S_{2}(8)=1 + 0 + 0 = 1S2 ...
分类:
其他好文 时间:
2019-09-16 21:15:28
阅读次数:
113
B题:分成两序列,A>B,A-(a[i]属于A里面的)<=B; #include<bits/stdc++.h>using namespace std;#define ll long longconst ll mod=1e9+7;const ll inf=1e18;ll dp[300*500+5];i ...
分类:
其他好文 时间:
2019-09-16 14:15:27
阅读次数:
82
https://nanti.jisuanke.com/t/41415 因为对于询问$\sum |s|<=1e5$,因此$|s|$的种类数$<=\sqrt{1e5}$ 我们分组标记,就变成了$\sqrt{1e5}$次询问了,我们暴力去跑, 复杂度$1e5\sqrt{1e5}*hashmap$ 暴力+哈 ...
分类:
其他好文 时间:
2019-09-16 10:04:19
阅读次数:
79
题目链接: "Light bulbs" 比赛链接: "The Preliminary Contest for ICPC Asia Shanghai 2019" 题意 给定 $N$ 个灯泡 (编号从 $0$ 到 $N 1$),初始都是关闭的。 给定 $M$ 个操作,每个操作包含 $L$ 和 $R$,对 ...
分类:
其他好文 时间:
2019-09-16 00:06:33
阅读次数:
79
题目链接 CSLnb! 题意是求出给定集合中有多少个合法子集,合法子集的定义为,子集和>=总和-子集和&&子集和-(子集的子集和)<=总和-子集和。 其实就是很简单的dp,先将集合从大到小排序,dp[i][j]表示以a[i]为子集的最小值时,子集和为j的方案数。因为排序后保证遍历到的a[i]一定为当 ...
分类:
其他好文 时间:
2019-09-15 21:15:50
阅读次数:
254
GameLook报道 / 根据上海市新闻出版局提供的数据。2011年,上海网络游戏出版业收入约为148亿元,2012年此数字攀升到190.2亿,同比增长35.8%,保持了快速的发展态势。 截至2012年底,上海网络游戏业界从业人员已达6万余人。 对于这个6万人的数字,具体是高了还是低了,GameLo ...
分类:
其他好文 时间:
2016-07-06 20:13:01
阅读次数:
207