1169 pipi倒水
摘要:题目链接:http://www.pipioj.online/problem.php?id=1169 题目大意:PIPI有三个杯子,容量分别为 a ,b ,c,最初只有第三个杯子有c升水,其余两个杯子都是空的,PIPI想知道至少要倒出多少升水才能够让某一个杯子中的水有 d 升,如果无法做到恰好 d 升
阅读全文
lost in csu
摘要:题目链接:http://www.pipioj.online/problem.php?id=1357 题目描述: PIPI和他的朋友POPO在中南大学迷路了,他们都希望尽快找到彼此。PIPI每秒可以移动两次,每次可以在四个方向上移动到另一个空间:上/下/左/右。POPO每秒可以移动一次,并且每次可以在
阅读全文
pipi打dota
摘要:题目链接:http://www.pipioj.online/problem.php?id=1234 题目描述: 刀塔的世界是一个n × m 的矩阵(n行m列)。 敌法师的blink技能的瞬移距离为d,冷却时间为c。每当敌法师使用blink时,他可以从(x,y)移动至(x+d,y),(x-d,y),(
阅读全文
hdu畅通工程系列题目
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1232 并查集水。 #include<bits/stdc++.h> using namespace std; const int N=1005; int n,m; int father[N]; int f
阅读全文