码迷,mamicode.com
首页 >  
搜索关键字:zoj 2734    ( 3447个结果
[递推dp] zoj 3747 Attack on Titans
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5170 Attack on Titans Time Limit: 2 Seconds      Memory Limit: 65536 KB Over centuries ago, mankind faced a new enemy, th...
分类:其他好文   时间:2014-07-22 23:00:16    阅读次数:536
zoj Fibonacci Numbers ( java , 简单 ,大数)
题目//f(1) = 1, f(2) = 1, f(n > 2) = f(n - 1) + f(n - 2)import java.io.*;import java.util.*;import java.math.*;public class Main { /** * @xqq ...
分类:编程语言   时间:2014-05-01 18:55:52    阅读次数:450
ZOJ 3706 Break Standard Weight 解题报告
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5009题目意思:给出两个mass:x 和 y,问如何将其中一个 mass 一分为二(当然分完之后它们的和要等于原来的mass,或x 或 y),使得利用这三个mass 可称...
分类:其他好文   时间:2014-05-01 16:32:19    阅读次数:405
《Cracking the Coding Interview》——第17章:普通题——题目7
2014-04-28 23:28题目:给定一个数字,用英语把它读出来。解法:ZOJ上有相反的题目。如果我要用中文读书来呢?代码: 1 // 17.7 Read an integer in English. 2 #include 3 #include 4 using namespace s...
分类:其他好文   时间:2014-04-29 15:29:44    阅读次数:423
ZOJ 2588 Burning Bridges 求无向图桥 边双连通裸题
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1588 #include #include #include #include #include using namespace std; #define N 10050 #define M 200005 int n,m;//n个点 m条边 struct Edge{...
分类:其他好文   时间:2014-04-29 13:25:21    阅读次数:383
ZOJ 3609 Modular Inverse 解线性模方程
点击打开链接 Modular Inverse Time Limit: 2 Seconds      Memory Limit: 65536 KB The modular modular multiplicative inverse of an integer a modulo m is an integer x such that a-1≡x (mod m). This is...
分类:其他好文   时间:2014-04-29 13:15:22    阅读次数:326
BZOJ1858: [Scoi2010]序列操作
这题我很二的折腾了一下午,唉,还是太弱了。这题的关键在于标记的更新与更新每个点的权值,更新标记我很快就写好了,思路很清晰,但是查找答案就头晕了,在处理下传标记、更新权值中纠结。。。。这题我用sum来记录一段区间内1的个数,lest记录该区间从左往右连续的1的个数,rest记录该区间从右往左连续的1的...
分类:其他好文   时间:2014-04-27 22:01:03    阅读次数:549
3447条   上一页 1 ... 343 344 345
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!