码迷,mamicode.com
首页 >  
搜索关键字:brackets sequence    ( 6654个结果
SGU 181.X-Sequence
时间限制:0.5s空间限制:4M题意: 令X0=A, Xi=(a*Xi-1^2,b*Xi-1+c)%m; 求Xk,(0#include #include #include using namespace std;const int INF = 111111;vector ans;...
分类:其他好文   时间:2014-07-19 21:11:36    阅读次数:259
[leetcode]Count and Say
Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is r...
分类:其他好文   时间:2014-07-19 20:35:34    阅读次数:276
SGU 179.Brackets light
时间限制:0.25s空间限制:12M题意 给定一个合法的仅由'(',')'组成的括号序列,求它的下一个合法排列.假定'('f[j]; 将最后的‘)’和‘(’ 交换位置,再把后面所以的括号反转。即可得到我们需要的解。code:#include #include #include usi...
分类:其他好文   时间:2014-07-19 20:07:16    阅读次数:252
Sequence query 好题啊
Sequence queryTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem DescriptionGivenasequenceofNpositivenum...
分类:其他好文   时间:2014-07-19 00:03:21    阅读次数:334
C_Dp
/* C - 简单dp 例题 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Description A subsequence of a given sequence is the given sequence with some elements (poss...
分类:其他好文   时间:2014-07-18 22:28:24    阅读次数:206
D_Dp
/* D - 简单dp 例题 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum ...
分类:其他好文   时间:2014-07-18 22:23:25    阅读次数:231
Codeforces Round #256 (Div. 2) E Divisors
E. DivisorsBizon the Champion isn't just friendly, he also is a rigorous coder.Let's define function f(a), where a is a sequence of integers. Function...
分类:其他好文   时间:2014-07-18 10:21:31    阅读次数:269
poj1458 dp入门
Common SubsequenceTime Limit:1000MSMemory Limit:10000KTotal Submissions:37551Accepted:15023DescriptionA subsequence of a given sequence is the given s...
分类:其他好文   时间:2014-07-18 10:02:42    阅读次数:169
POJ 3368 Frequent values
Frequent values Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 13051   Accepted: 4792 Description You are given a sequence of n integers a1 , a2 , ... , a...
分类:其他好文   时间:2014-07-17 20:11:28    阅读次数:289
LeetCode——Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all va...
分类:其他好文   时间:2014-07-17 10:18:17    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!