摘要:
Description There are n distinct points in the plane, given by their integer coordinates. Find the number of parallelograms whose vertices lie on thes
阅读全文
posted @ 2016-08-14 17:13
惟愿。。。
阅读(229)
推荐(0)
摘要:
Problem Description Lweb has a string S.Oneday, he decided to transform this string to a new sequence. You need help him determine this transformation
阅读全文
posted @ 2016-08-14 14:57
惟愿。。。
阅读(546)
推荐(0)
摘要:
Problem Descripton Two planets named Haha and Xixi in the universe and they were created with the universe beginning.There is 73 days in Xixi a year a
阅读全文
posted @ 2016-08-14 14:46
惟愿。。。
阅读(796)
推荐(0)
摘要:
题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1141
阅读全文
posted @ 2016-08-13 23:15
惟愿。。。
阅读(238)
推荐(0)
摘要:
题目链接:http://acm.hust.edu.cn/vjudge/contest/127946#problem/E 分析:存在某个字符能围成封闭图形,则说明Yes,否则是No。 *********************************************
阅读全文
posted @ 2016-08-13 15:11
惟愿。。。
阅读(183)
推荐(0)
摘要:
题目链接:HDU 2009-4 Programming Contest 分析:具有一定的周期性——4018处理下就可以A了 AC代码:
阅读全文
posted @ 2016-08-12 17:13
惟愿。。。
阅读(129)
推荐(0)
摘要:
题目链接:http://codeforces.com/problemset/problem/558/C 题意:把n个数变成相同所需要走的最小的步数易得到结论,两个奇数不同,一直×2不可能有重叠枚举每个数可能到得所有值,以及统计达到该值的时候已经走的步数最终答案就是1到up中num[i]最小的数 **
阅读全文
posted @ 2016-08-12 16:07
惟愿。。。
阅读(386)
推荐(0)
摘要:
题目链接:http://poj.org/problem?id=3414 分析:有一个瓶子A和一个瓶子B,可以有三种操作倒满,倒空,或者把瓶子A倒向瓶子B(或者把瓶子B倒向瓶子A),可以扩展出6种操作,没什么简单的写法,只能一种一种的写..... 广搜,直到一个瓶子里面有C升水,或者倒不出来这种结果,
阅读全文
posted @ 2016-08-11 19:20
惟愿。。。
阅读(114)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5461 题意:求a*c[i]*c[i]+b*c[j]的最大值; 先贴一个还不明白该怎么改的代码: AC代码:直接暴力
阅读全文
posted @ 2016-08-11 17:39
惟愿。。。
阅读(219)
推荐(0)
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2586 最近公共祖先问题~~LAC离散算法 题目大意:一个村子里有n个房子,这n个房子用n-1条路连接起来,接下了有m次询问,每次询问两个房子a,b之间的距离是多少。 很明显的最近公共祖先问题,先建一棵树
阅读全文
posted @ 2016-08-10 19:10
惟愿。。。
阅读(221)
推荐(0)