题目:uva10706 - Number Sequence(找规律)
题目大意:有这样一串序列11212312341234512345612345671234567812345678912345678910123456789101112345678910...,问第i个位置数的值。
1 ...
分类:
其他好文 时间:
2014-07-26 02:27:06
阅读次数:
168
Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum element ...
分类:
其他好文 时间:
2014-07-25 11:06:41
阅读次数:
242
Problem Description
A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1, ai2, ..., aiK), where 1 <= i1 ...
分类:
其他好文 时间:
2014-07-25 11:04:41
阅读次数:
253
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:
其他好文 时间:
2014-07-25 03:40:54
阅读次数:
305
Farey SequenceTime Limit:1000MSMemory Limit:65536KDescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational nu...
分类:
其他好文 时间:
2014-07-24 22:53:03
阅读次数:
211
题意:给出一个 n (1 #include #include #include #include #define lll __int64using namespace std;#define N 5007const lll INF = (1LL<<60);lll dp[2][N];lll a[N],...
分类:
其他好文 时间:
2014-07-24 22:36:13
阅读次数:
249
【命令】nice — 调整程序运行的优先级【格式】nice [OPTION] [command [arguments...]]【说明】在当前程序运行优先级基础之上调整指定值得到新的程序运行优先级,用新的程序运行优先级运行命令行"command [arguments...]"。优先级的范围为-20 ~...
分类:
系统相关 时间:
2014-07-24 21:56:42
阅读次数:
314
随机挑选一题试试手气。 问题描述: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, ...
分类:
其他好文 时间:
2014-07-24 21:55:32
阅读次数:
232
1. nice命令内核根据进程的nice值决定进程需要多少处理器时间.nice值的取值范围是是:-20到20.一个具有-20的nice值的进程有很高的优先级.一个nice值为20的进程的优先级则很低.1)用psaxl显示所有正在运行的进程的nice值#psaxlFUIDPIDPPIDPRINIVSZ...
分类:
系统相关 时间:
2014-07-24 21:53:02
阅读次数:
294
Subsequence
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8403
Accepted: 3264
Description
A sequence of N positive integers (10 < N < 100 000), each of...
分类:
其他好文 时间:
2014-07-24 10:27:40
阅读次数:
215