Java编码
搞么子啊小子
这个作者很懒,什么都没留下…
展开
-
hdu 1250 Hat's Fibonacci
Hat's Fibonacci Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6925 Accepted Submission(s): 2279 Problem Description A Fibonacci se原创 2014-07-05 19:00:38 · 606 阅读 · 0 评论 -
hdu 1297 Children’s Queue
Children’s Queue Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10540 Accepted Submission(s): 3390 Problem Description There ar原创 2014-08-01 17:08:09 · 767 阅读 · 0 评论 -
poj 2084 Game of Connections
Game of Connections Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 7413 Accepted: 3753 Description This is a small but ancient game. You are supposed to w原创 2014-07-31 21:05:38 · 661 阅读 · 0 评论 -
hdu 1316 How Many Fibs?
How Many Fibs? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3941 Accepted Submission(s): 1564 Problem Description Recall原创 2014-07-12 16:19:13 · 686 阅读 · 0 评论 -
数字整除
数字整除 Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:65536KB Total submit users: 73, Accepted users: 67 Problem 10932 : No special judgement Problem description原创 2014-07-12 14:05:34 · 1148 阅读 · 0 评论 -
JAVA知识
Java的优缺点各种书上都有,这里只说说用Java做ACM-ICPC的特点: (1) 最明显的好处是,学会Java,可以参加Java Challenge 。 (2) 对于熟悉C/C++的程序员来说,Java 并不难学,找本书,一两周业余时间就可以搞定了。当然,这里只是指一般编程,想熟悉所有的Java库还是需要些时间的。事实上,Java 只相当于C++的一个改进版,所有的语法都几乎是C+原创 2014-07-12 14:23:35 · 585 阅读 · 0 评论 -
Java在ACM中的使用
1、基本框架 import java.oi.*; import java.util.* public class Main { public static void main(String args[]) { Scanner cin = new Scanner(System.in)); } } 2、Java的输入原创 2014-07-05 18:39:21 · 680 阅读 · 0 评论 -
poj 2506 Tiling
Tiling Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7454 Accepted: 3640 Description In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?原创 2014-07-08 16:27:50 · 750 阅读 · 0 评论 -
poj 1001 Exponentiation
Exponentiation Time Limit: 500MS Memory Limit: 10000K Total Submissions: 133146 Accepted: 32525 Description Problems involving the computation of exact values of very原创 2014-07-07 16:17:07 · 943 阅读 · 0 评论 -
hdu 1715 大菲波数
大菲波数 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10858 Accepted Submission(s): 3668 Problem Description Fibonacci数列,定义如下: f(1)=原创 2014-07-05 20:15:20 · 595 阅读 · 0 评论 -
hdu 1042 N!
N! Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 52438 Accepted Submission(s): 14806 Problem Description Given an integer N(0 ≤ N原创 2014-07-05 20:45:55 · 594 阅读 · 0 评论 -
hdu 1002 A + B Problem II
A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 204946 Accepted Submission(s): 39396 Problem Description I have a v原创 2014-07-05 19:53:08 · 563 阅读 · 0 评论 -
hdu 1753 大明A+B
大明A+B Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7772 Accepted Submission(s): 2752 Problem Description 话说,经过了漫长的一个多月,小明已经成长了许多,原创 2014-07-05 19:50:43 · 652 阅读 · 0 评论 -
保留小数问题
import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; public class format { double f = 111231.5585; public void m1() { BigDecimal bg = new BigDeci转载 2015-06-02 17:33:15 · 612 阅读 · 0 评论