摘要: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; /** * * @author fishcanfly */ public 阅读全文
posted @ 2022-11-05 21:55 fishcanfly 阅读(62) 评论(1) 推荐(0)
摘要: class Solution { public int countVowelPermutation(int n) { long[][] matrix = new long[][]{ {0, 1, 1, 0, 1}, {1, 0, 1, 0, 0}, {0, 1, 0, 1, 0}, {0, 0, 1 阅读全文
posted @ 2022-11-05 13:00 fishcanfly 阅读(26) 评论(1) 推荐(0)
摘要: import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Solution { List<Integer> list = new ArrayList<>(); int primeNum = 0; 阅读全文
posted @ 2022-11-02 22:17 fishcanfly 阅读(37) 评论(0) 推荐(0)
摘要: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args 阅读全文
posted @ 2022-10-31 12:21 fishcanfly 阅读(35) 评论(0) 推荐(0)
摘要: import java.io.IOException; import java.util.Arrays; import java.util.Scanner; public class Main { static int n, m, k; static int MOD = 998244353; sta 阅读全文
posted @ 2022-10-30 23:38 fishcanfly 阅读(48) 评论(0) 推荐(0)
摘要: import java.util.LinkedList; class Solution { public int sumSubarrayMins(int[] arr) { int n = arr.length; int[] dp = new int[n]; dp[0] = arr[0]; Linke 阅读全文
posted @ 2022-10-28 14:55 fishcanfly 阅读(20) 评论(0) 推荐(0)
摘要: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { static int[] rank; static int[] paren 阅读全文
posted @ 2022-07-09 22:14 fishcanfly 阅读(72) 评论(0) 推荐(0)
摘要: class Solution { public int maximumsSplicedArray(int[] nums1, int[] nums2) { int n = nums1.length; int[] b = new int[n]; int[] c = new int[n]; dp(nums 阅读全文
posted @ 2022-06-26 19:54 fishcanfly 阅读(29) 评论(0) 推荐(0)
摘要: 要特别注意下精度,long,int范围。WA了几次 import java.util.Scanner; class Main { // static long[] A2 ;//i^2*AI // static long[] A1;//i*Ai; static long[] A; //Ai; stat 阅读全文
posted @ 2022-06-24 10:54 fishcanfly 阅读(45) 评论(2) 推荐(0)
摘要: import java.util.*; class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.minimumN 阅读全文
posted @ 2022-06-22 16:38 fishcanfly 阅读(41) 评论(0) 推荐(0)
//雪花飘落效果