现将前1000个的斐波那契数打表,然后再找就好了。
代码:
import java.util.Scanner;
import java.math.*;
public class Main{
public static void main(String[] args){
Scanner cin = new Scanner(System.in...
分类:
编程语言 时间:
2014-09-07 22:32:45
阅读次数:
284
Book DescriptionBuild kickass websites and applications for all mobile (and non-mobile) platforms by adding HTML5 and CSS3 to your web development too...
分类:
Web程序 时间:
2014-09-07 18:29:05
阅读次数:
232
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1978
How many ways
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2945 Accepted Submiss...
分类:
其他好文 时间:
2014-09-07 17:18:55
阅读次数:
228
Poetry is a form of literature that uses aesthetic and rhythmic qualities of language. There are many famous poets in the contemporary era. It is said...
分类:
其他好文 时间:
2014-09-07 17:16:45
阅读次数:
266
PAT 1087 All Roads Lead to Rome题目:Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the rout...
分类:
其他好文 时间:
2014-09-07 10:59:14
阅读次数:
198
题目:Problem Description“Point, point, life of student!”This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too....
分类:
其他好文 时间:
2014-09-07 10:57:54
阅读次数:
257
All 6 sides of a cube are to becoated with paint. Each side is is coated uniformly with one color. When a selectionof n different colors of paint is available, how many different cubes can youmake?
...
分类:
其他好文 时间:
2014-09-06 20:03:53
阅读次数:
254
Description
Problem B
Cubes
You are given 12 rods of equal length. Each of them is colored in certain color. Your task is to determine in how many different ways one can construct a cube...
分类:
其他好文 时间:
2014-09-06 17:27:53
阅读次数:
253
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-09-06 05:27:32
阅读次数:
203
几个问题:1.libevent到底用的是select还是iocp,然后是如何突破64限制的typedef struct fd_set { u_int fd_count; /* how many are SET? */ SOCKET fd_...
分类:
其他好文 时间:
2014-09-05 14:15:41
阅读次数:
191