图图图
Godblessuam
这个作者很懒,什么都没留下…
展开
-
watchcow-欧拉回路
Bessie’s been appointed the new watch-cow for the farm. Every night, it’s her job to walk across the farm and make sure that no evildoers are doing any evil. She begins at the barn, makes her patrol, ...原创 2019-05-14 14:43:29 · 158 阅读 · 0 评论 -
wormholes-spfa算法求负环路
While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time that i...原创 2019-05-15 10:02:31 · 135 阅读 · 0 评论 -
Lattice Points-欧拉函数
A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin if the line from (0, 0) to (x, y) does not pass throug...原创 2019-05-15 10:59:56 · 796 阅读 · 0 评论 -
危险系数-蓝桥杯
问题描述抗日战争时期,冀中平原的地道战曾发挥重要作用。地道的多个站点间有通道连接,形成了庞大的网络。但也有隐患,当敌人发现了某个站点后,其它站点间可能因此会失去联系。我们来定义一个危险系数DF(x,y):对于两个站点x和y (x != y), 如果能找到一个站点z,当z被敌人破坏后,x和y不连通,那么我们称z为关于x,y的关键点。相应的,对于任意一对站点x和y,危险系数DF(x,y...原创 2019-05-16 17:46:08 · 449 阅读 · 0 评论