拓扑排序
摘要:推荐链接:http://www.myexception.cn/other/1718283.html
阅读全文
posted @
2016-08-20 16:36
惟愿。。。
阅读(112)
推荐(0)
“玲珑杯”ACM比赛 Round #1 题解
摘要:A:DESCRIPTION Eric has an array of integers a1,a2,...,ana1,a2,...,an. Every time, he can choose a contiguous subsequence of length kk and increase eve
阅读全文
posted @
2016-08-20 16:22
惟愿。。。
阅读(953)
推荐(0)
POJ - 3666 Making the Grade(dp+离散化)
摘要:Description A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. His cows do not mind climbing up
阅读全文
posted @
2016-08-20 10:57
惟愿。。。
阅读(224)
推荐(0)
CodeForces 546 D. Soldier and Number Game(素数有关)
摘要:Description Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the
阅读全文
posted @
2016-08-15 15:11
惟愿。。。
阅读(234)
推荐(0)
UVA 10200 Prime Time (打表)
摘要:题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1141
阅读全文
posted @
2016-08-13 23:15
惟愿。。。
阅读(240)
推荐(0)
Light OJ 1008
摘要:找规律。 首先令n=sqrt(s),上取整。讨论当n为偶数时,若n*n-s<n则x=n,y=n*n-s+1否则x=-n*n+2*n+s-1,y=n;如果n为奇数,交换x,y即可,对称的。 *****************************************************
阅读全文
posted @
2016-08-09 15:55
惟愿。。。
阅读(145)
推荐(0)
求解~
摘要:AC代码: Wa代码: 很搞不懂,谁来解释一下 if else 1号 和 if else2号 的区别,~~~~(>_<)~~~~
阅读全文
posted @
2016-07-26 14:00
惟愿。。。
阅读(168)
推荐(0)