![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【模拟】
云淡风轻<<
这个作者很懒,什么都没留下…
展开
-
背包模板整理
1. 01背包 /* n表示有n件物品,v表示总共的容量 c[i]表示第i件物品的容量,w[i]表示第i件物品的价值 */ for(i=1;i<=n;i++) { for(j=v;j>=c[i]; j--) { dp[j]=max(dp[j], dp[j-c[i]]+w[i]); ...原创 2019-11-23 14:09:22 · 107 阅读 · 0 评论 -
CodeForces - 832B(模拟)
DescriptionIt’s hard times now. Today Petya needs to score 100 points on Informatics exam. The tasks seem easy to Petya, but he thinks he lacks time to finish them all, so he asks you to help with on...原创 2019-04-05 21:31:28 · 298 阅读 · 0 评论 -
NYOJ -714 (模拟题)
The magician shuffles a small pack of cards, holds it face down and performs the following procedure:The top card is moved to the bottom of the pack. The new top card is dealt face up onto the table....原创 2019-05-14 17:42:33 · 124 阅读 · 0 评论 -
Educational Codeforces Round 68 (Rated for Div. 2) problemB
B. Yet Another Crosses ProblemYou are given a picture consisting of n rows and m columns. Rows are numbered from 1 to n from the top to the bottom, columns are numbered from 1 to m from the left to t...原创 2019-07-17 08:31:11 · 95 阅读 · 0 评论 -
Educational Codeforces Round 71 (Rated for Div. 2) B
You are given two matrices A and B. Each matrix contains exactly n rows and m columns. Each element of A is either 0 or 1; each element of B is initially 0.You may perform some operations with matrix...原创 2019-08-24 11:01:33 · 130 阅读 · 0 评论