03 2024 档案
【AtCoder Beginner Contest 347】
摘要:D - Popcount and XOR easy. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigInteger; i
【leetcode】【100268. 最长公共后缀查询】【Trie树】
摘要:How to slove this problem? If we reverse the strings, the problem changes to finding the longest common prefix. Build a Trie, each node is a letter an
【At Coder begin 345】[D - Tiling] 回溯
摘要:题目链接:problem D 解法: 比较简单。看代码。 import java.io.IOException; import java.io.InputStreamReader; import java.io.StreamTokenizer; import java.util.Set; impor
【2012 Asia ChangChun Regional Contes】 [Math Magic] 动态规划
摘要:题目链接: https://acm.hdu.edu.cn/showproblem.php?pid=4427 解法: 题目m范围较小 ,n 范围也较小 , 可以枚举m的约数,很容易知道不会超过32个。 对于$\sum factor[