11 2022 档案
【atcoder abc276 】(a* 搜索)
摘要:import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; /** * * @author fishcanfly */ public
【leetcode 1425. 带限制的子序列和】【矩阵幂快速运算】
摘要: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
【leetcode 952. 按公因数计算最大组件大小】【欧拉筛+并查集】
摘要:import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Solution { List<Integer> list = new ArrayList<>(); int primeNum = 0;