摘要: D - 小希的迷宫 HDU - 1272 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过 阅读全文
posted @ 2018-08-07 20:49 xyee 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 2^x mod n = 1 HDU - 1395 Give a number n, find the minimum x(x>0) that satisfies 2^x mod n = 1. InputOne positive integer on each line, the value of n 阅读全文
posted @ 2018-08-07 20:39 xyee 阅读(128) 评论(0) 推荐(0) 编辑