LeetCode
CURD工程师
你只管努力,其他交给命运!
展开
-
力扣(LeetCode)题解------简单
1、970. 强整数public List<Integer> powerfulIntegers(int x, int y, int bound) { Set&am原创 2019-03-11 16:04:09 · 2358 阅读 · 0 评论 -
Java Scanner nextInt不读入换行
今天在牛客网做题,题目是先输入数字n,然后输入n个串,结果每次能够输入的串都是n-1,后来发现,nextInt不会自动换行,因此提供一些解决方法。方法一:以串读入,转为int Scanner sc = new Scanner(System.in); Integer num = Integer.parseInt(sc.nextLine()); Str...原创 2019-05-08 10:53:46 · 5661 阅读 · 0 评论