TC
Yukar_syt
这个作者很懒,什么都没留下…
展开
-
STL
Problem Statement In The Sorting Game, you are given a sequence containing a permutation of the integers between 1 and n, inclusive. In one move, you can take any k consecutive elements of转载 2012-05-07 18:58:47 · 429 阅读 · 0 评论 -
500.IntegerPalindrome TC-srm302
Problem Statement A positive integer is called a palindrome if it reads the same forward and backward. Integers containing leading zeros are not valid. For example, 12321 is a palindrome,转载 2012-05-12 18:37:21 · 654 阅读 · 0 评论 -
the minimum value of |A - a| + |B - b| + |C - c|
Problem Statement Krolik found a sheet of paper with an equation containing three positive integers: "a *b =c". This equation might be wrong, so Krolik is trying to make it correct by adjus转载 2012-05-13 15:48:31 · 780 阅读 · 0 评论 -
SRM527 275 DP
NOTE: This problem statement contains images that may not display properly if viewed outside of the applet. You want to build a graph consisting of N nodes and N-1 edges. The graph must be connec转载 2012-05-14 19:28:07 · 605 阅读 · 0 评论 -
SRM523 div2 500 CountingSeries
Problem Statement You are given long longs a, b, c and d. The numbers a and b define an arithmetic progression that consists of all numbers of the form a + b*x, where x is a nonnegative i翻译 2012-05-20 13:26:37 · 495 阅读 · 0 评论 -
SRM 551 950
//用三种颜色围成一个圈相邻的两个不同色的所有可能 #include #include #include using namespace std; typedef int lld; const int mod=1000000007; const int maxn=60; lld dp[maxn][maxn][maxn][3]; int tot[maxn]; class ColorfulCupc原创 2012-08-05 09:44:41 · 489 阅读 · 0 评论