- 博客(3)
- 收藏
- 关注
原创 CSU-1008-Horcrux
Description A Horcrux is an object in which a Dark wizard or witch hashidden a fragment of his or her soul for the purpose of attaining immortality.Constructing a Horcrux is considered Dark magic of
2017-05-12 15:07:34 454
原创 CSU-1643-+1+2?
Description 有这样一个金字塔形的二维数表,满足A[i+1][j]=A[i][j]+1且A[i+1][j+1]=A[i][j]+2,0。已知A[0][0]=0,若询问你任意的A[i][j]的值,请输出正确的值。 Input 多组输入,每组输入包含两个数x和y,0; Output 对于每组合法输入,输出A[x][y]的值,否则输出-1。 SampleInput 0 0 1
2017-04-29 22:03:53 141
原创 CSU-1212-中位数
Description 长为L的升序序列S,S[L / 2]为其中位数。 给出两个等长升序序列S1和S2,求两序列合并并排序后的中位数。 Input 多组数据,每组第一行为n,表示两个等长升序序列的长度。 接下来n行为升序序列S1的元素,再接下来n行为升序序列S2的元素。 1 ,S内容为整数。 不超过5组数据。 Output 每组数据,输出合并并排序后的序列的中位数。 Sa
2017-04-29 20:44:57 255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人