Sicily
文章平均质量分 65
云梦别
成长告诉我,态度和感受可以千差万别。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[Sicily][广搜]1215. 脱离地牢
【笔记】 一开始写这道题的时候,总是提示超内存。 后来发现是是判断H的位置是否合法那块代码写错位置了,导致运行的时候多扫了很多东西。 先贴正确答案,后面贴错误的。 // Problem#: 1215 // Submission#: 4560607 // The source code is licensed under Creative Commons Attribution-NonCom原创 2016-03-16 16:40:49 · 564 阅读 · 0 评论 -
[Sicily][深搜]1156. Binary tree
这道题我走了弯路,不需要用节点里的指针,可以直接记录序号。 此外,为了方便找到根节点,直接在节点里增加了记录parent信息的变量。 在网上查阅时,看到有人通过连续异或找到根节点的值,也算是技巧来的吧。 // Problem#: 1156 // Submission#: 4562912 // The source code is licensed under Creative Commons原创 2016-03-17 12:07:14 · 563 阅读 · 0 评论 -
[sicily][排序]1154. Easy sort
// Problem#: 1154 // Submission#: 4559080 // The source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License // URI: http://creativecommons.org/licenses/by原创 2016-03-15 15:53:58 · 637 阅读 · 0 评论 -
[sicily][排序]1134. 积木分发
#include using namespace std; int main() { int numOfChildren, numOfToy; int toyInhand[10000]; int toyNeeded[10000]; while ((cin >> numOfChildren >> numOfToy) && numOfChildren != 0) { for (int原创 2016-03-15 16:13:26 · 598 阅读 · 0 评论
分享