
水
hill_555
这个作者很懒,什么都没留下…
展开
-
hdu4584 Building bridges(水)
H国到C国 , 挑2个岛连接一条道路, 输出两个岛的坐标。 每次对于H国的每个岛屿都找一遍C国岛屿 判断。超爆力。。 #include #include #include using namespace std; #define INF 0x1f1f1f1f char g[110][110]; int x,y,x1,y1; int abs(int x){ if(x>0)return x原创 2013-08-10 16:27:00 · 569 阅读 · 0 评论 -
hdu4585 Shaolin(水)
少林有个方丈id=1 武功最高。来了n个和尚,新和尚每次找武功最接近的老和尚比武,如果相同距离,找武功比新和尚小的老和尚比武。输出每次比武的新和尚和老和尚的id。 全部输入 。队武功值拍个序。每次向左右分别找第一个先来的老和尚,再判断记录。感觉也超暴力。。。 #include #include #include #include using namespace std; struct node原创 2013-08-10 16:33:57 · 695 阅读 · 0 评论