
STL
EagleEyeKestrel
2019-2020年度中国睡觉甲级联赛冠军
展开
-
Codeforces Round #661 Div3 E1 Weights Division
Codeforces Round #661 Div3 E1 Weights Division (easy version)You are given a weighted rooted tree, vertex 1 is the root of this tree.A tree is a connected graph without cycles. A rooted tree has a special vertex called the root. A parent of a vertex ????原创 2020-08-06 23:34:06 · 197 阅读 · 0 评论 -
Leetcode Weekly 194 保证文件名唯一
Leetcode Weekly 194 保证文件名唯一这次是好未来周赛,结果却发挥的很不好,主要是卡在了第二题上,再加上有其他的ddl就没有继续了。这里记录一下第二题。保证文件名唯一给你一个长度为 n 的字符串数组 names 。你将会在文件系统中创建 n 个文件夹:在第 i 分钟,新建名为 names[i] 的文件夹。由于两个文件 不能 共享相同的文件名,因此如果新建文件夹使用的文件名已经被占用,系统会以 (k) 的形式为新文件夹的文件名添加后缀,其中 k 是能保证文件名唯一的 最小正整数 。返原创 2020-06-22 01:34:30 · 149 阅读 · 0 评论