目录 H. Genshin Impact Startup Forbidden III 估计还会补D,I,K H. Genshin Impact Startup Forbidden III 对于一个有鱼的池塘,有周围与自己本身五个关键位置可以捕获当前位位置的鱼。把这些位置存储到 map中。用四进制数 S 表示每块池塘中剩余的鱼的数目,dp[S] 表示达成该状态最少的炸弹数。枚
International Collegiate Programming Contest, Egyptian Collegiate Programming Contest (ECPC 2018) D. The Millennium Prize Problems 求有公约数x的所有数对之积,那么最大公约数为x的乘积只需要约数有x减掉最大公约数为2x,3x的数对之积。 E. Count Perm
传送门:http://codeforces.com/gym/101808/problem/E E-Floods You probably heard and even saw the heavy rains that flooded the streets of Damascus recently. Shahhoud is wondering if he should go to unive
Modulo Query Time Limit: 2 Seconds Memory Limit: 65536 KB One day, Peter came across a function which looks like: F(1, X) = X mod A1.F(i, X) = F(i - 1, X) mod Ai, 2 ≤ i ≤ N. Where
文章目录 C - RencontreG - Caesar Cipher 补题链接 C - Rencontre 题目描述: 给出一棵 n n n 个节点的带权树,现在有三组数量分别为 m i m_i mi 的点集,现在从每组中等概率的从中各选一个点(三组相互独立),得到一个三元组 ( a , b , c ) (a,b,c) (a,b,c),并在树上找一个点 u u u
比赛的时候愣是没看懂这一题是啥意思,最后队友写完了觉得有问题也木有submit== 前面说了一大串反转路由表,in short之后就是说取个当前子网集合的补集,全集是整个IPV4地址空间。我当时一直纠结main routing table as small as possible是为何,现在觉得是防止两个子网可以用一个子网代替的case吧,比如11100000.0.0.0/4+11110000.0
签到题 GLucky 7 in the Pocket Time Limit: 1 Second Memory Limit: 65536 KB BaoBao loves number 7 but hates number 4, so he refers to an integer as a "lucky integer" if is divisible by 7 but