private static List<Schoolnews> parseXML(InputStream in) throws XmlPullParserException, IOException { List<Schoolnews> snews = null; Schoolnews school ...
分类:
其他好文 时间:
2016-08-20 11:45:03
阅读次数:
126
枚举剩下的分数个数$k$,设最高的$k$个分数和的分子分母分别为$U$和$D$。 那么在选了的里面找到$A=\min(Dt[x]-Up[x])$,没选的里面找到$B=\max(Dt[x]-Up[x])$。 如果$A<B$,则可以更大。 对于$A,B$的计算,可以利用决策单调性分治求解。 时间复杂度$ ...
分类:
其他好文 时间:
2016-08-20 00:02:15
阅读次数:
393
I drove around the school, following the line of traffic. 我开车绕学校随着交通线。 我开车穿过校园,紧跟着大部队。 I was glad to see that most of the cars were older like mine, n ...
分类:
其他好文 时间:
2016-08-17 21:04:37
阅读次数:
155
问题链接:UVA10071 Back to High School Physics。
问题简述:该题的题目是重温高中物理。质点加速度恒定,输入v和t,v是t时间点质点的速度,求2t时间点的移动的距离。
问题分析:设质点初速度为v0,加速度为a,则t时间点的速度v=v0+at。2t时间点的位移s=v0*2t+1/2*a*(2t)^2(距离S=初速度V*时间t+1/2at^2)=2v0t+2at^...
分类:
其他好文 时间:
2016-08-16 00:42:41
阅读次数:
149
题意 有N道题,已做M题,每题分数a[i],问N-M道题总分不超过S中位数是Y每题分数不超过P; 方法:先求有多少道题分数小于Y,如果ans>N/2 则中位数不是y,否则中位数左边加1右边加y算总和,总和超过s输出-1否则输出1和y。 ...
分类:
其他好文 时间:
2016-08-15 14:23:36
阅读次数:
155
Problem Description Chisa Yukizome works as a teacher in the school. She prepares many gifts, which consist of n kinds with a[i] quantities of each ki ...
分类:
其他好文 时间:
2016-08-15 10:17:33
阅读次数:
161
Xiaoguang Tu: CV: Ph.D. Candidate of School of Communication and Information Engineering, University of Electronic Science and Technology of China (UE ...
分类:
其他好文 时间:
2016-08-14 22:08:32
阅读次数:
258
Problem Description Chisa Yukizome works as a teacher in the school. She prepares many gifts, which consist of n kinds with a[i] quantities of each ki ...
分类:
其他好文 时间:
2016-08-14 19:09:42
阅读次数:
189
Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 5513 Accepted: 2319 Description Frank N. Stein is a very conservative high-school teacher. ...
分类:
其他好文 时间:
2016-08-06 19:13:29
阅读次数:
123
python对象的相关术语: python程序中保存的所有数据都是围绕对象这个概念展开的: 程序中存储的所有数据都是对象 每个对象都有一个身份、一个类型和一个值 例如,school='MaGe Linux'会以'MaGe Linux'创建一个字符串对象,其身份是指向它在内存中所处位置的指针(其在内存 ...
分类:
编程语言 时间:
2016-08-03 23:29:43
阅读次数:
293