摘要: 1 public class 大数乘法_加法 { 2 //**************************大数乘法;加法 ********************************* 3 static String zero(int n) { 4 if(n==0)return ""; 5 阅读全文
posted @ 2020-03-04 19:17 浪~子 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1 public class 从ABCDE中取出三个的可能结果 { 2 // 从ABCDE中取出三个的可能结果(不进行排列) 3 static List f(String s, int k) { 4 List lis = new Vector(); 5 if (k == 0) { 6 lis.add 阅读全文
posted @ 2020-03-04 19:04 浪~子 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1 public class 从A到B有多少种走法1 { 2 //##################### 3 //#A # 4 //# # 5 //# # 6 //# # 7 //# # 8 //# B# 9 //##################### 10 //从A到B有多少种走法 11 阅读全文
posted @ 2020-03-04 18:58 浪~子 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 1 public class 从A到B有多少种走法 { 2 //##################### 3 //#A # 4 //# # 5 //# # 6 //# # 7 //# # 8 //# B# 9 //##################### 10 //从A到B有多少种走法 11 p 阅读全文
posted @ 2020-03-04 18:48 浪~子 阅读(432) 评论(0) 推荐(0) 编辑
摘要: public class 李白打酒 { // ********************李白打酒***************** // 李白壶里有2斗酒,遇到店,壶里的酒量就*2,遇到花就-1;已知遇到5个店,10朵花,最后遇到花 // 求有多少种排列。 static int n = 0; stat 阅读全文
posted @ 2020-03-04 18:44 浪~子 阅读(167) 评论(0) 推荐(0) 编辑
摘要: public class 常数变易法2 { public static void main(String[] args) { for (int k = 0; k < 5; k++) { for (int i = 0; i < 5 - k; i++) System.out.print(" "); fo 阅读全文
posted @ 2020-03-04 18:43 浪~子 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1 public class 常数变易法 { 2 //*************************************常数变易法************************** 3 public static void main(String[] args) { 4 for(int k 阅读全文
posted @ 2020-03-04 18:42 浪~子 阅读(485) 评论(0) 推荐(0) 编辑
摘要: public class 尼姆堆 { //*********************尼姆堆********************** public static void f(int[] a) { int sum=0; for(int i=0;i<a.length;i++) { sum^=a[i] 阅读全文
posted @ 2020-03-04 18:40 浪~子 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 public class 尼姆_nim { 2 3 public static void main(String[] args) { 4 Scanner sc=new Scanner(System.in); 5 int caseNum=sc.nextInt();//输入有几组 6 int[][] 阅读全文
posted @ 2020-03-04 18:38 浪~子 阅读(172) 评论(0) 推荐(0) 编辑