上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: class MyCalendarThree { public static void main(String[] args) { MyCalendarThree myCalendarThree = new MyCalendarThree(); System.out.println( myCalend 阅读全文
posted @ 2022-06-06 15:00 fishcanfly 阅读(34) 评论(0) 推荐(0)
摘要: import java.io.IOException; import java.util.Scanner; public class Main { static int MOD = 1000000007; public static void main(String[] args) throws I 阅读全文
posted @ 2022-06-03 21:20 fishcanfly 阅读(49) 评论(0) 推荐(0)
摘要: class Solution { int[] parent; int[] rank; public void init(int n) { parent = new int[n + 1]; rank = new int[n + 1]; for (int i = 1; i <= n; i++) { pa 阅读全文
posted @ 2022-06-03 18:33 fishcanfly 阅读(31) 评论(0) 推荐(0)
摘要: //空间可以降到2维class Solution { private int MOD= 1000000007; public int profitableSchemes(int n, int minProfit, int[] g, int[] profit) { int len = profit.l 阅读全文
posted @ 2022-06-03 16:47 fishcanfly 阅读(41) 评论(0) 推荐(0)
摘要: import java.util.HashMap; import java.util.Map; /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeN 阅读全文
posted @ 2022-06-02 15:38 fishcanfly 阅读(34) 评论(1) 推荐(0)
摘要: //先求出和为edge的划分。再枚举划分,至多只需要枚举三个划分import java.util.ArrayList; import java.util.List; class Solution { int edge = 0; List<Integer> stateList = new ArrayL 阅读全文
posted @ 2022-06-01 20:33 fishcanfly 阅读(38) 评论(0) 推荐(0)
摘要: import java.util.*; class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.alienOrd 阅读全文
posted @ 2022-05-31 16:01 fishcanfly 阅读(31) 评论(0) 推荐(0)
摘要: class BookMyShow { long[] sum ; long[] max; int n; int m; int last = -1; int ans = 0; public static void main(String[] args) { BookMyShow bookMyShow = 阅读全文
posted @ 2022-05-30 19:04 fishcanfly 阅读(29) 评论(0) 推荐(0)
摘要: import java.util.ArrayList; import java.util.List; class Solution { public static void main(String[] args) { Solution solution = new Solution(); Syste 阅读全文
posted @ 2022-05-27 10:37 fishcanfly 阅读(25) 评论(0) 推荐(0)
摘要: import java.util.*; class Solution { public int cutOffTree(List<List<Integer>> forest) { int m = forest.size(); int n = forest.get(0).size(); int[][][ 阅读全文
posted @ 2022-05-24 14:26 fishcanfly 阅读(47) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
//雪花飘落效果