2016年11月23日

E. Anton and Tree 数组开大点

摘要: http://codeforces.com/contest/734/problem/E 看了题解,缩点 + 树的直径。 然而一直wa14. 注意到, 缩点后重建图,在5的时候,5和6建了一条边,然后6的时候,又和5建一次边。这个时候就要大数组了。 #include <cstdio> #include 阅读全文

posted @ 2016-11-23 14:13 stupid_one 阅读(181) 评论(0) 推荐(0) 编辑

Aria's Loops

摘要: https://www.hackerrank.com/contests/101hack41/challenges/arias-loops 可以看我以前的笔记,http://www.cnblogs.com/liuweimingcprogram/p/6091396.html 或者我在discusses的 阅读全文

posted @ 2016-11-23 10:27 stupid_one 阅读(214) 评论(0) 推荐(0) 编辑

导航