摘要: 参考博文:http://blog.csdn.net/qwe2434127/article/details/49819975 http://blog.csdn.net/qq_24489717/article/details/50569644 dfs序比较重要的性质:一棵子树的所有节点在dfs序里是连续 阅读全文
posted @ 2016-09-29 21:46 樱花庄的龙之介大人 阅读(1867) 评论(0) 推荐(0) 编辑
摘要: 1806: Toll Description In ICPCCamp, there are n cities and m unidirectional roads between cities. The i-th road goes from the ai-th city to the bi-th 阅读全文
posted @ 2016-09-29 17:47 樱花庄的龙之介大人 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 1803: 2016 Description 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍数。 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. 阅读全文
posted @ 2016-09-29 16:03 樱花庄的龙之介大人 阅读(238) 评论(0) 推荐(0) 编辑