- 博客(12)
- 收藏
- 关注
原创 HDU3631(Shortest Path)
Shortest PathTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4637 Accepted Submission(s): 1105Problem DescriptionWhen YY was a bo
2015-08-25 20:33:47 495
原创 POJ1159(Palindrome)
PalindromeTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 56745 Accepted: 19626DescriptionA palindrome is a symmetrical string, that is, a string read
2015-08-25 20:08:58 2896
原创 POJ1635(Subway tree systems)
Subway tree systemsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 7161 Accepted: 2982DescriptionSome major cities have subway systems in the form of
2015-08-25 00:23:18 518
原创 POJ2572(Seek the Name, Seek the Fame)
Seek the Name, Seek the FameTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14398 Accepted: 7188DescriptionThe little cat is so famous, that many coup
2015-08-24 17:20:36 345
原创 Uvalive6439(Pasti Pas!)
题意:将给定字符串的部分子串用字符代替,使新得到的串成为回文串,并且得到的回文串长度最大。如: S = `ABCADDABCA',让α=ABCA,β=DD,则新得到的回文串为αβα,长度为3。让α= `A',β = `BC', γ = `D', 则S= αβαγγαβα ,长度为8.思路:方法一:利用string类的加法进行模拟。注意中间部分的特判即可。#inclu
2015-08-24 17:04:23 504
原创 CSU1207(Strictly-increasing sequence)
1207: Strictly-increasing sequenceTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 371 Solved: 84[Submit][Status][Web Board]Description如果一个序列中任意一项都大于前一项,那么我们就称这个序列为严格递增序列。现在有一个整数序列,
2015-08-22 22:38:24 581
原创 CSU1256(天朝的单行道)
1256: 天朝的单行道Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 216 Solved: 67[Submit][Status][Web Board]Description 在另一个平行宇宙中,有一个神奇的国度名叫天朝。天朝一共有N个城市(标号分别为1, 2, …, N),M条道路,为了方便交通管制,天朝的M
2015-08-18 09:03:27 582
原创 HDU2227(Find the nondecreasing subsequences)
Find the nondecreasing subsequencesTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1688 Accepted Submission(s): 612Problem Descr
2015-08-17 19:41:45 467
原创 POJ3038(Blue Jeans)
Blue JeansTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14301 Accepted: 6366DescriptionThe Genographic Project is a research partnership between IBM a
2015-08-17 19:27:00 588
原创 UVA10534
Wavio is a sequence of integers. It has some interesting properties.• Wavio is of odd length i.e. L = 2 ∗ n + 1.• The first (n + 1) integers of Wavio sequence makes a strictly increasing sequence.
2015-08-17 19:03:38 1288
原创 HDU1875( 畅通工程再续)
Description相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。当然,为了
2015-08-17 18:18:42 506
转载 oj 中G++和C++区别
oj 中G++和C++区别今天做题目时g++交错误,c++交正确的情况,特意搜了一下。1、输出double类型时,如果采用G++提交,scanf采用%lf,prinf采用%f,否则会报错2、使用GCC/G++的提醒:对于64位整数, long long int 和 __int64 都是支持并且等价的.但是在读和写的时候只支持scanf("%I64d", ...)和pri
2015-08-04 09:13:44 334
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人