The stride towards NOI never stops.
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《求安慰》回复:
@[Bluish_Light](luogu://user/1030776) 祝好,写对了但输出文件名多打了一个空格的绝望感 ```cpp freopen("club.in","r",stdin); freopen("club.out ","w",stdout); ```
在讨论《论我在考场上是如何挂掉这道题的》回复:
我也爆了
在讨论《csp-s出分了吗》回复:
我洛谷AC,结果爆0
在文章《蓝屏记》发表评论:
默哀
在讨论《如果你WAon#14》回复:
orz
在讨论《If you WA 37pts on #1, 3, 5, 7 - 10》回复:
听君一席话,胜条 ∞h 题。
在文章《题解:【模板】可持久化线段树 1 & 2》发表评论:
话说你都动态开点了,干嘛离散化啊... 终于悟了 orz orz
在文章《题解:P1763 埃及分数》发表评论:
不应该设置k的上限吗 long long maxk=min(2*1e7/a,1e7*(1e7-1)/b);
# 题目大意 给定元素数量 $\le$30 的集合,求解所有元素子集之和 # 思路 ### 暴力解(仅 60pts) 通过递归求解,对于**每一个元素有选与不选两种选择**进行递归,但观察数据量 元素数量 $\le$30,总时间复杂度 = 递归调用总次数 × 每次调用的操作成本,即 O($2^n$)$\times$O(…
1e5的数据量在某些情况可能导致 ```cpp int find(int x){ if(x==fa[x]) return x; else fa[x]=find(fa[x]); } ``` 并查集查找时栈溢出 修改成迭代版即可 ```cpp inline int find(int x){ while (x != fa[x…
在文章《题解:P2661 [NOIP2015 提高组] 信息传递》发表评论:
orz
```python n,m = map(int,input().split()) l1 = list(map(int,input().split())) l2 = list(map(int,input().split())) x = [] for i in l2: s = len(l1)//2 x = [s] whil…
```python n,m = map(int,input().split()) l1 = list(map(int,input().split())) l2 = list(map(int,input().split())) x = [] for i in l2: s = len(l1)//2 x = [s] whil…
```python n = input() k = int(input()) l = [] for i in n: if i!=' ': l.append(i) for i in range(k): mx = 0 for i in l: if int(i)>int(mx): mx = i l.remove(mx) l.…
```python def digui(a,b,c,memo): if a 20 or b>20 or c>20: return digui(20,20,20,memo) if (a,b,c) in memo: return memo[(a,b,c)] if a<b and b<c: result = digui(a,…
```python n,s = map(int,input().split()) a,b = map(int,input().split()) l = [] ans = 0 for i in range(n): x = list(map(int,input().split())) if x[0] 0: ans += 1…
范围判断函数: ```python #判断月日是否在范围内 def fanwei(i): i = int(i) if i>=int(s1_3) and i 29): return False elif (s1 == '04') or (s1 == '06') or (s1 == '09') or (s1 == '11'…
修改前代码: ```python s1_1 = input() s2_1 = input() s = 0 #切片年份 s1_2 = s1_1[0:4] s2_2 = s2_1[0:4] #切片月日 s1_3 = s1_1[4:8] s2_3 = s2_1[4:8] #判断是否为合法日期 def hefa(s): s1…
``` n = int(input()) l = list(map(int,input().split())) l1 = [] l.sort() r = set() #存入集合去重 for i in l: r.add(i) #将集合转存入列表 for i in r: l1.append(i) s = 0 for i i…