- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 HDU1715 大菲波数
HDU 1715 大菲波数Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 22964 Accepted Submission(s): 8264Problem Description Fibonacci数列,定义如下: ...
2018-05-29 21:02:34 147
原创 关于初始化int数组
关于C++初始化int数组在做题目时,我发现经常使用的memset()在把int数组初始化为1时失去了作用:memset()只能将数组初始化为-1或0memset()函数初始化出现问题的原因memset()本来是用来初始化char型数组的,所以我们可以想到memset()函数是一个个字节对数组进行初始化的。然而,int型的数据占4个字节。memset()之所以可以把int型...
2018-05-23 22:24:51 7060
原创 2083 Fractal
FractalTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 11143 Accepted: 4988DescriptionA fractal is an object or quantity that displays self-similarity, in a somewhat technical sense, on all ...
2018-05-19 21:47:45 215
原创 2018湘潭邀请赛K题题解
2018湘潭邀请赛K题题解K. 2018Given a, b, c, d, find out the number of pairs of integers (x, y) where a x b, c y d and x y is a multiple of 2018. InputThe input consists of several test cases and is terminated ...
2018-05-16 22:04:41 521
原创 2018湘潭邀请赛G题题解
2018湘潭邀请赛G题题解G. String TransformationBobo has a string S = s1s2 . . . sn consists of letter a, b and c. He can transform the string by inserting or deleting substrings aa, bb and abab.Formally, A = u ...
2018-05-16 21:31:30 290
原创 2018湘潭邀请赛F题题解
2018湘潭邀请赛F题题解F. SortingBobo has n tuples (a1, b1, c1), (a2, b2, c2), . . . , (an, bn, cn). He would like to find the lexicographically smallest permutation p1, p2, . . . , pn of 1, 2, . . . , n such ...
2018-05-16 21:17:39 270
原创 2018湘潭邀请赛A题题解
2018湘潭邀请赛A题题解做题网址:点击打开链接下面是原题题目:A. Easy h-indexThe h-index of an author is the largest h where he has at least h papers with citations not less than h.Bobo has published many papers. Given a0, a1, a2,...
2018-05-16 20:52:28 539
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人