题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2680Choose the best routeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others...
分类:
其他好文 时间:
2014-08-20 21:05:22
阅读次数:
216
题目链接:
huangjing
思路:
选取字典序最小的串,那么值得考虑的是当两端出现相等时,继续比较,直到出现不同的结果。。
题目:
代码:
#include
int main()
{
__int64 sum;
int max_num,candy,t,n,i;
scanf("%d",&t);
while(t--)
{...
分类:
其他好文 时间:
2014-08-20 16:23:02
阅读次数:
236
题意 给你一个字符序列 你每次可以从它的头部或尾部拿出一个字符组成一个新的字符序列 输出这样做能达到的最小的字符序列 每行最多输出80个字符(开始被这个坑了好久)
直接模拟就行 哪边小就选哪边 相等就往内看
#include
#include
#include
using namespace std;
const int N = 30010;
int main()
{
...
分类:
其他好文 时间:
2014-08-19 20:54:15
阅读次数:
255
Google Book
Time Limit: 1000MS
Memory Limit: 32768KB
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You, the best hacker in the world, w...
分类:
其他好文 时间:
2014-08-19 20:50:15
阅读次数:
237
Google Book
Time Limit: 1 Second
Memory Limit: 32768 KB
You, the best hacker in the world, want to download the books published on Google Book. After some investigation, you found that...
分类:
其他好文 时间:
2014-08-19 16:38:05
阅读次数:
222
package com.lw.leet4;/** * @ClassName:Solution * @Description: * Sort List * Sort a linked list in O(n log n) time using constant spa...
分类:
其他好文 时间:
2014-08-18 20:26:22
阅读次数:
170
1. First of all, you will need to be clear on your intentions. Do you really want to play the violin? or was this wish merely conceived when your best...
分类:
其他好文 时间:
2014-08-18 20:08:42
阅读次数:
201
A Simple Problem with IntegersCrawling in process...
Crawling failed
Time Limit:5000MS
Memory Limit:131072KB
64bit IO Format:%I64d & %I64u
Submit
Status
Practice
POJ 3468
D...
分类:
其他好文 时间:
2014-08-18 18:39:12
阅读次数:
175
A - Class Statistics Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit Status Practice UVALive 5682Description ///最开始 没有读懂 Largest....
分类:
其他好文 时间:
2014-08-18 18:13:42
阅读次数:
174
Problem You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L of all available items. From this list you would like to buy tw...
分类:
其他好文 时间:
2014-08-18 12:42:04
阅读次数:
222