uva12299:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3720题意:给你n个数,然后有两个操做,shift从左到右一次交换,即a1和a2交换,完了...
分类:
其他好文 时间:
2014-07-13 21:32:18
阅读次数:
261
uva11525:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2520题意:求1,2,3,4,.....k个数所形成的全排列中的第n个。其中n的是由计算出...
分类:
其他好文 时间:
2014-07-13 21:13:52
阅读次数:
261
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=6913874119133The Dole QueueAcceptedC++0.0092014-07...
分类:
其他好文 时间:
2014-07-13 20:59:42
阅读次数:
226
Surround the Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7146 Accepted Submission(s): 2729
Problem Descriptio...
分类:
其他好文 时间:
2014-07-13 20:46:21
阅读次数:
218
链接:http://poj.org/problem?id=3264Time Limit:5000MSMemory Limit:65536KTotal Submissions:32772Accepted:15421Case Time Limit:2000MSDescriptionFor the dai...
分类:
其他好文 时间:
2014-07-13 19:35:19
阅读次数:
234
/*
C - 广搜 基础
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
A friend of you is doing research on the Traveling Knight Problem (TKP) where you ...
分类:
其他好文 时间:
2014-07-13 17:29:33
阅读次数:
245
/*
C - 广搜 基础
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
A friend of you is doing research on the Traveling Knight Problem (TKP) where you ...
分类:
其他好文 时间:
2014-07-13 17:09:53
阅读次数:
272
Surround the Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7164 Accepted Submission(s): 2738
Problem Description
There a...
分类:
其他好文 时间:
2014-07-13 17:00:52
阅读次数:
201
题目链接:http://poj.org/problem?id=2506
本题用的java解的,因为涉及到大数问题,如果对java中的大数操作不熟悉请点这儿:链接
思路:地推公式f[i]=f[i-1]+2*f[i-2]
code:
import java.math.*;
import java.util.Scanner;
public class Main {
public...
分类:
编程语言 时间:
2014-07-13 16:58:07
阅读次数:
221
You can Solve a Geometry Problem too
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7027 Accepted Submission(s): 3397
Problem Descript...
分类:
其他好文 时间:
2014-07-13 14:07:29
阅读次数:
182