2018年6月12日

大数相乘、大数相加、大数相减

摘要: 大数相乘 public static void bigNumberSimpleMulti(String f, String s) { System.out.print("乘法:\n" + f + " " + s + "="); // 获取首字符,判断是否是符号位 char signA = f.cha 阅读全文

posted @ 2018-06-12 16:29 一只猫、 阅读(173) 评论(0) 推荐(0) 编辑

求最大子串和以及其中一个子串(java)

摘要: public static void getMaxSum(int[] a){ int max = a[0]; int sum = a[0]; int temp = 0; int start = 0; int end = 0; for(int i = 1;i0){ sum +=a[i] ; } els 阅读全文

posted @ 2018-06-12 10:36 一只猫、 阅读(128) 评论(0) 推荐(0) 编辑

导航