- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 PAT甲级1009. Product of Polynomials (25)
计算多项式的乘积并输出看题目 This time, you are supposed to find A*B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines, and each line
2017-03-09 21:19:15 248
原创 PAT甲级1008. Elevator (20)
求电梯运行的总时间简单不解释题目在这里 The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified
2017-03-09 21:03:38 194
原创 PAT甲级1005. Spell It Right
b( ̄▽ ̄)d ,水题一道,没有难度。看原题:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains
2017-03-09 20:54:38 226
原创 PAT甲级1007. Maximum Subsequence Sum (25)
一道简单考察动态规划的题目。好了,我们先看题目吧。/*Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 <= i <= j <= K. The Maximum Subsequence is the co
2017-03-05 12:54:55 242
原创 PAT甲级1006. Sign In and Sign Out (25)
闲来无事刷道题吧。PAT1006,题目先贴上来 /*At the beginning of every day, the first person who signs in the computer room will unlock the door,and the last one who signs out will lock the door. Given the records of
2017-03-05 10:14:04 233
原创 Qt之QString
作为一名Qt初学者,有必要写一点东西记录下来自己的学习历程啊。Ok,看一下Qt的Qstring。1.QString的输入。 这个就是常见的=赋值就行了。 例:QString str= "Hello";对于这个语句,输入的是标准的C的”\0”结尾的字符串,Qt会将后面的字符串转换成Unicode编码存储。当超过128个字符时会使用QString::fromAscii()函数处理。2.QString的输
2017-03-02 20:51:39 819
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人