想法
cwb丶
这个作者很懒,什么都没留下…
展开
-
B2. K for the Price of One (Hard Version) Codeforces Round #610 (Div. 2)B2
Codeforces Round #610 (Div. 2)B2. K for the Price of One (Hard Version)time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis is...原创 2019-12-26 21:10:33 · 276 阅读 · 0 评论 -
Codeforces Round #592 (Div. 2) E. Minimizing Difference
E. Minimizing Differencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequencea1,a2,…,ana1,a2,…,anconsisting...原创 2019-11-01 17:17:53 · 108 阅读 · 0 评论 -
Educational Codeforces Round 74 (Rated for Div. 2)D. AB-string
D. AB-stringtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe stringt1t2…tkt1t2…tkis good if each letter of this string belo...原创 2019-10-31 22:06:16 · 199 阅读 · 1 评论 -
Educational Codeforces Round 74 (Rated for Div. 2) tandard Free2play
C. Standard Free2playtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are playing a game where your character should overcome...原创 2019-10-31 21:31:06 · 179 阅读 · 0 评论 -
Codeforces Round #596 D. Power Products 暴力 stl
D. Power Productstime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputYou are givennnpositive integersa1,…,ana1,…,an, and an integ...原创 2019-10-27 10:39:16 · 511 阅读 · 1 评论 -
Codeforces Round #596 C. p-binaryC 暴力
C. p-binarytime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputVasya will fancy any number as long as it is an integer power of two....原创 2019-10-27 10:34:23 · 280 阅读 · 2 评论 -
Codeforces Round #596 B1. TV Subscriptions (Easy Version) 想法
B1. TV Subscriptions (Easy Version)time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe only difference between easy and hard ver...原创 2019-10-27 10:27:14 · 675 阅读 · 0 评论 -
D2. Too Many Segments (hard version)
D2. Too Many Segments (hard version)time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe only difference between easy and hard ve...原创 2019-10-25 12:05:08 · 1072 阅读 · 0 评论 -
Codeforces Round #592 (Div. 2)C. The Football Season(暴力,循环节)
C. The Football Seasontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe football season has just ended in Berland. According to...原创 2019-10-15 16:49:04 · 181 阅读 · 0 评论 -
E. Two Arrays and Sum of Functions(排序不等式)
E. Two Arrays and Sum of Functionstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two arraysaaandbb, both of le...原创 2019-06-03 15:09:07 · 316 阅读 · 0 评论 -
2019东北赛补题之(E. Minimum Spanning Tree)贪心(伪最小生成树)
E. Minimum Spanning Treetime limit per test2.0 smemory limit per test512 MBinputstandard inputoutputstandard outputIn the mathematical discipline of graph theory, the line graph of a...原创 2019-05-29 18:04:43 · 1110 阅读 · 8 评论 -
Codeforces Round #540 (Div. 3) c题 (codeforce 1118c) Palindromic Matrix
C. Palindromic Matrixtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet’s call some square matrix with integer values in its cells palindrom...原创 2019-02-20 11:37:16 · 302 阅读 · 0 评论 -
Maximum Value (二分+思维枚举)
You are given a sequenceaconsisting ofnintegers. Find the maximum possible value of(integer remainder ofaidivided byaj), where1 ≤ i, j ≤ nandai ≥ aj.InputThe first line contains intege...原创 2019-03-30 14:02:19 · 936 阅读 · 0 评论 -
Sereja and Table CodeForces - 425B (思维枚举)
Sereja has ann × mrectangular tablea, each cell of the table contains a zero or a number one. Sereja wants his table to meet the following requirement: each connected component of the same values f...原创 2019-03-31 20:05:03 · 163 阅读 · 0 评论 -
Frets On Fire(思维二分)
D. Frets On Firetime limit per test1.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMiyako came to the flea kingdom with a ukulele. She became goo...原创 2019-04-09 18:48:32 · 444 阅读 · 0 评论 -
分宿舍(暴力枚举)
“那天TA说TA要来,于是我就来啦。那天我说我要来,于是你就来啦。TA看到了什么?你又看到了什么?我看到你们在一起,我是真的很happy:)太阳在哪里啊?就在早上七八点。太阳在哪里啊?就在云的栖息地!”——2050主题曲2050的线下活动吸引了很多心怀梦想的年轻人。小伙们打算组团去参加。他们一共有n+m+2k个人,包括n+k个男生,m+k个女生,其中k对男女生为...原创 2019-04-14 11:37:20 · 184 阅读 · 0 评论 -
ProblemC、小花梨判连通(dfs)+想法stl
ProblemC、小花梨判连通时间限制:2000ms 空间限制:512MBDescription小花梨给出原创 2019-05-19 19:46:50 · 208 阅读 · 0 评论 -
F - Absolute Minima(关于数组中 中位数的维护和添加)
F - Absolute MinimaTime Limit: 2 sec / Memory Limit: 1024 MBScore :600600pointsProblem StatementThere is a functionf(x)f(x), which is initially a constant functionf(x)=0f(x)=0.We will as...原创 2019-05-28 19:07:37 · 363 阅读 · 2 评论 -
2019东北赛c
C. Line-line Intersectiontime limit per test6.0 smemory limit per test512 MBinputstandard inputoutputstandard outputThere arennlinesl1,l2,…,lnl1,l2,…,lnon the 2D-plane.Staring ...原创 2019-05-28 19:14:51 · 606 阅读 · 0 评论