`
200830740306
  • 浏览: 105939 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表

poj1953

package easy; import java.io.BufferedInputStream; import java.util.Scanner; /** * *poj1953 *列举下前几项的种类可以发现规律,不过我是看了别人后才知道的。唉 *用int不够大 * 注意换行//格式问题 * 不要加包声明,会re//又不是第一次做,还会犯这样低级的错。。。。 * @author NC */ public class Poj1953 { public static void main(String[] args) { ...

poj1936

package easy; import java.io.BufferedInputStream; import java.util.Scanner; /** *poj1936 easy * @author NC */ public class Poj1936 { public static void main(String[] args) { Scanner scan = new Scanner(new BufferedInputStream(System.in)); while (scan.hasNext()) ...

poj1005

package easy; import java.util.Scanner; /** *poj1005 easy * 使用Math里,要写完整 java.lang.Math不然poj编译过不了 * @author NC */ public class Poj1005 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); if (scan.hasNext()) { int n = ...

Poj1552

package easy; import java.util.Scanner; /** *poj1552 easy * @author NC */ public class Poj1552 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int a = scan.nextInt(); int[] arr ...

Poj1503

package easy; import java.io.BufferedInputStream; import java.math.BigInteger; import java.util.Scanner; /** * * Poj1503 * @author NC */ public class Poj1503 { public static void main(String[] args) { Scanner scan = new Scanner(new BufferedInputStream(System.in)); ...

poj1454

package easy; import java.io.BufferedInputStream; import java.math.BigDecimal; import java.util.Scanner; /** * * 格式错了好多次啊。。。 * 后来把输出结果复制到记事本比较下才发现。。。。郁闷啊。。。。 * poj1454 * @author NC */ public class Poj1454 { public static void main(String[] args) { Scanner scan = ...

poj1218

package easy; import java.io.BufferedInputStream; import java.util.Scanner; /** *poj1218 * @author NC */ public class Poj1218 {     public static void main(String[] args) {         Scanner scan = new Scanner(new BufferedInputStream(System.in));         if (scan.hasNext()) {             int t = ...

poj1046

package easy; import java.util.Scanner; /** *poj1046 easy * @author NC */ public class Poj1046 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); if (scan.hasNext()) { int[] r = new int[16]; int[] g = new ...
package easy; import java.util.LinkedList; import java.util.Scanner; /** *poj1028 * 太郁闷了,刚开始还一直以为是sample错了。 * 因为自己模拟的结果总是和sample有一个不一样, * 更重要的是我在网上找了一个ac的程序,其输出却和我的一样,所以我才会以为sample错了。 *最后,点了几下浏览器才发现啊 * 原来每次访问新的页面时,记录向前的栈的重新清空。 * @author NC */ public class Poj1028 { pu ...

poj1008

package easy; import java.io.BufferedInputStream; import java.util.Scanner; /** *poj1008 考英语理解能力 * @author NC */ public class Poj1008 { public static void main(String[] args) { Scanner scan = new Scanner(new BufferedInputStream(System.in)); String[] monthName ...

poj1004

package easy; import java.util.Scanner; /** * poj1004 easy * @author NC */ public class Poj1004 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); if(scan.hasNext()){ float sum = 0f; float balance; ...

Poj1003

package easy; import java.util.Scanner; /** *poj1003 * easy * @author NC */ public class Poj1003 {     public static void main(String[] args) {         Scanner scan = new Scanner(System.in);         while (scan.hasNext()) {             float f = scan.nextFloat();             if (f == 0) {     ...

Poj1001

package easy; import java.io.BufferedInputStream; import java.math.BigDecimal; import java.util.Scanner; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** *终于过了,之前一直是re,搞不懂为什么? * 可能是在处理格式方面有问题吧,因为之前是用format。 * 之前不知道BigDecimal里有 ...

poj1000

package easy; import java.util.Scanner; /** *poj1000 easy * @author NC */ public class Poj1000 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); if (scan.hasNext()) { System.out.println(scan.nextInt() + scan.nextInt( ...
问题重述: 背景 神话般的国际象棋玩家Somurolov先生,他声称,他可以把一个骑士从一个位置很快地移动到另一个位置,但其他人却不行。你能打败他吗? 存在的问题 你的任务是编写一个程序来计算的骑士达到从另一个位置所 ...
Global site tag (gtag.js) - Google Analytics