Fork me on GitHub

随笔分类 -  ACWING

摘要:import java.util.Scanner; class Main { //前缀和 static final int MAX = 5050; static Scanner sc = new Scanner(System.in); //输入 static int[][] arr = new in 阅读全文
posted @ 2019-07-10 17:12 cznczai 阅读(255) 评论(0) 推荐(0)
摘要:按照顺序 以及加入选与不选的问题 采用递归方法表达 并在每一条执行函数中加入参数保存当前字符串的情况 当判断完毕时 输出该字符串 小范围还好 大范围则可能会溢出 求字符串子串 模板 里面会多一种"" 空字符串 栈的写法 搜索中看到一些文章 插在这里把https://blog.csdn.net/mor 阅读全文
posted @ 2019-07-08 11:04 cznczai 阅读(275) 评论(0) 推荐(0)
摘要:递归解法 阅读全文
posted @ 2019-07-07 22:14 cznczai 阅读(812) 评论(0) 推荐(0)
摘要:java import java.util.Scanner; public class Main { static int arr[][]; static Scanner in = new Scanner(System.in); public static void main(String[] ar 阅读全文
posted @ 2019-07-07 22:00 cznczai 阅读(327) 评论(0) 推荐(0)