码迷,mamicode.com
首页 >  
搜索关键字:prime ring problem    ( 62834个结果
Balanced Binary Tree
Link:http://oj.leetcode.com/problems/balanced-binary-tree/Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced ...
分类:其他好文   时间:2014-05-05 22:29:55    阅读次数:382
POJ-1011-Sticks
题目链接:http://poj.org/problem?id=1011 这道题用到了深搜+剪枝。 #include #include #include using namespace std; int a[65]; int vis[65]; int n; int cmp(int x,int y) { return x>y; } int dfs(int len,int need,int ...
分类:其他好文   时间:2014-05-05 13:28:57    阅读次数:290
Lowest Bit------HDOJ杭电1196(想法很重要)
Problem Description Given an positive integer A (1 For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2. Another example...
分类:其他好文   时间:2014-05-05 13:22:39    阅读次数:394
A × B problem
A × B problem Time Limit: 1000 ms   Case Time Limit: 1000 ms   Memory Limit: 64 MB Total Submission: 594   Submission Accepted: 112 Description 给你两个整数,请你计算A × B。 Input 数据的第一行是整数T(1 ≤ T ≤ 20...
分类:其他好文   时间:2014-05-05 13:05:38    阅读次数:301
NYOJ 括号匹配系列2,5
本文出自:http://blog.csdn.net/svitter 括号匹配一:http://acm.nyist.net/JudgeOnline/problem.php?pid=2 括号匹配二:http://acm.nyist.net/JudgeOnline/problem.php?pid=15 之前被这个题目难住,现在看动态规划就顺便过来AC了它。结果发现当年被难住一点...
分类:其他好文   时间:2014-05-03 23:52:18    阅读次数:408
poj1598
Excuses, Excuses! Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 3615   Accepted: 1254 Description Judge Ito is having a problem with people subpoenaed fo...
分类:其他好文   时间:2014-05-03 17:10:03    阅读次数:278
codeforces A. TL 题解
Valera wanted to prepare a Codesecrof round. He's already got one problem and he wants to set a time limit (TL) on it. Valera has written n correct solutions. For each correct solution, he knows it...
分类:其他好文   时间:2014-05-03 16:53:51    阅读次数:364
Hrbust1053 Warcraft III (完全背包)
本文出自:http://blog.csdn.net/svitter 原题:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1053 题意:完全背包不解释。。直接贴代码。。 #include #include #include using namespace std; #defi...
分类:其他好文   时间:2014-05-03 16:06:14    阅读次数:324
[ACM] hdu 1228 A+B (字符串处理)
A + B Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11543    Accepted Submission(s): 6699 Problem Description   读入两个小于100的正整数A和B,计...
分类:其他好文   时间:2014-05-03 16:00:57    阅读次数:270
UVA之11549 - Calculator Conundrum
【题目】 Problem C CALCULATOR CONUNDRUM Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. She enters a number k t...
分类:其他好文   时间:2014-05-03 15:37:03    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!