2016年5月15日

java-两数最大公约数

摘要: import java.util.Scanner; public class lc2 { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); ... 阅读全文

posted @ 2016-05-15 00:16 tjtzgby 阅读(113) 评论(0) 推荐(0) 编辑

java-百鸡问题

摘要: public class baiji2 { public static void main(String args[]) { System.out.println("以下是各种情况:"); for(int i=0;i<=25;++i)//Gongji { for(int j=0;j<=33;++j)//muj... 阅读全文

posted @ 2016-05-15 00:15 tjtzgby 阅读(506) 评论(0) 推荐(0) 编辑

java-喝饮料换空瓶问题

摘要: //1 public class yinliao1 { public static void main(String args[]) { int a=1000; int kong=1000; int he=1000; System.out.println("第1次:"+" He="+he+" KONG="+kong); ... 阅读全文

posted @ 2016-05-15 00:12 tjtzgby 阅读(506) 评论(0) 推荐(0) 编辑

java-水仙花数

摘要: //自动找三位数水仙花数import java.util.Scanner; import java.lang.Math; public class zhaoshuixianhua { public static void main(String args[]) { for(int s=100;s<=999;++s) { int ge... 阅读全文

posted @ 2016-05-15 00:10 tjtzgby 阅读(533) 评论(0) 推荐(0) 编辑

导航