
cf
文章平均质量分 88
max_kibble
这个作者很懒,什么都没留下…
展开
-
CF Round599 Div.2
B1. Character Swap (Easy Version)B2. Character Swap (Hard Version)题意:给你两个长度为n的字符串s,t,字符串只包含26个小写字母。你的操作是每次从两个字符串中分别挑一个字母出来交换,问能不能使得两个串相等。第一问中你只能操作1次(且必须操作1次),n≤10000n\leq 10000n≤10000第二问中你最多可以操作 ...原创 2019-11-12 15:24:11 · 197 阅读 · 0 评论 -
CF Round598 Div.3
A. Payment Without Change题意:你有a个面值为n的硬币和b个一元硬币,问能不能整好凑出S分析:尽可能的用n,剩下的用1去补B. Minimize the Permutation题意:给你1-n的置换,n≤100n\leq 100n≤100,每个位置i只允许与i+1发生一次交换。问若干次交换后能得到的字典序最小的置换。分析:贪心。先把1移到最前面,假设1最初在下标x...原创 2019-11-07 12:17:40 · 239 阅读 · 0 评论 -
CF Round597 Div.2
C. Constanze’s Machine题意:有一个键盘,你敲w的时候就弹出uu,你敲m的时候就弹出nn,其他正常。现在给你一个用该键盘敲出的字符串,问你原字符串有多少种可能。思路:首先字符串中不可能出现w和m。对于连续的u和n,用dp求出这一段可能对应的原字符串个数。然后乘起来就好了。D. Shichikuji and Power Grid题意:有n个城市,n≤200n\leq 20...原创 2019-11-07 11:31:09 · 228 阅读 · 0 评论 -
cf 983A Finite or not?
一 原题A. Finite or not?time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given several queries. Each query consists of three integers pp, qq an...原创 2018-05-16 17:21:11 · 431 阅读 · 0 评论 -
cf 979D Kuro and GCD and XOR and SUM
一 原题D. Kuro and GCD and XOR and SUMtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputKuro is currently playing an educational game about numbers. Th...原创 2018-05-16 17:29:47 · 482 阅读 · 0 评论 -
cf 983B XOR-pyramid
一 原题B. XOR-pyramidtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputFor an array bb of length mm we define the function ff asf(b)={b[1]if m=1f(b[1]⊕...原创 2018-05-16 17:37:13 · 414 阅读 · 0 评论 -
cf 1000E We Need More Bosses
一 原题E. We Need More Bossestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYour friend is developing a computer game. He has already decided how th...原创 2018-07-09 16:25:36 · 286 阅读 · 0 评论 -
cf 1004D Sonya and Matrix
一 原题D. Sonya and Matrixtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSince Sonya has just learned the basics of matrices, she decided to play wi...原创 2018-07-10 20:02:01 · 312 阅读 · 0 评论 -
cf 1000c Covered Points Count
一 原题C. Covered Points Counttime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given nn segments on a coordinate line; each endpoint of every ...原创 2018-06-28 21:08:08 · 685 阅读 · 0 评论 -
cf 1004E Sonya and Ice Cream
一 原题E. Sonya and Ice Creamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSonya likes ice cream very much. She eats it even during programming com...原创 2018-07-11 23:55:01 · 431 阅读 · 0 评论 -
cf 997c Sky Full of Stars
一 原题E. Sky Full of Starstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn one of the planets of Solar system, in Atmosphere University, many stud...原创 2018-07-07 23:57:16 · 866 阅读 · 0 评论 -
cf 1006F Xor-Paths
一 原题F. Xor-Pathstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a rectangular grid of size n×mn×m. Each cell has a nu...原创 2018-07-20 19:58:48 · 403 阅读 · 0 评论 -
cf 1012B Chemical table
一 原题D. Chemical tabletime limit per test: 1 secondmemory limit per test: 512 megabytesinput: standard inputoutput: standard outputInnopolis University scientists continue to investigate th...原创 2018-07-31 00:44:38 · 595 阅读 · 0 评论 -
cf 1051F The Shortest Statement
一 原题F. The Shortest Statementtime limit per test: 4 secondsmemory limit per test: 256 megabytesinput: standard inputoutput: standard outputYou are given a weighed undirected connected grap...原创 2018-09-29 14:06:43 · 420 阅读 · 0 评论 -
cf 985E Pencils and Boxes
一 原题E. Pencils and Boxestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka received a gift of multicolored pencils for his birthday! Unfortuna...原创 2018-05-22 15:11:06 · 488 阅读 · 0 评论 -
cf 959D Mahmoud and Ehab and another array construction task
一 原题D. Mahmoud and Ehab and another array construction tasktime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMahmoud has an array a consisting of n ...原创 2018-05-20 15:02:33 · 285 阅读 · 0 评论 -
cf 982D Shark
一 原题D. Sharktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFor long time scientists study the behavior of sharks. Sharks, as many other species, a...原创 2018-05-19 16:33:09 · 715 阅读 · 0 评论 -
cf 754D Fedor and coupons
一 原题D. Fedor and couponstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAll our characters have hobb原创 2017-01-08 09:40:56 · 379 阅读 · 0 评论 -
cf 877D Olya and Energy Drinks
一 原题D. Olya and Energy Drinkstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOlya loves energy drinks. S原创 2017-12-02 11:03:26 · 620 阅读 · 0 评论 -
cf 906A Shockers
一 原题C. Shockerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputValentin participates in a show calle原创 2018-01-03 15:02:54 · 317 阅读 · 0 评论 -
cf 917A The Monster
一 原题C. The Monstertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAs Will is stuck in the Upside Down原创 2018-01-31 00:18:02 · 480 阅读 · 0 评论 -
cf 919D Substring
一 原题 D. Substringtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutp原创 2018-02-01 00:08:11 · 321 阅读 · 0 评论 -
cf 915E Physical Education Lessons
一 原题E. Physical Education Lessonstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis year Alex has finished school, an...原创 2018-01-17 14:02:41 · 453 阅读 · 0 评论 -
cf 933A A Twisty Movement
一 原题A. A Twisty Movementtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA dragon symbolizes wisdom, p原创 2018-02-17 23:27:41 · 612 阅读 · 0 评论 -
cf 936B Sleepy Game
一 原题B. Sleepy Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya and Vasya arranged a game. The game runs by the following rules. Players h...原创 2018-03-01 14:15:24 · 887 阅读 · 0 评论 -
cf 923D Picking Strings
一 原题E. Picking Stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice has a string consist原创 2018-03-15 20:25:03 · 247 阅读 · 0 评论 -
cf 949A Zebras
一 原题A. Zebrastime limit per test1 secondmemory limit per test512 megabytesinputstandard inputoutputstandard outputOleg writes down the history of the days he lived. For each day he decides if it was g...原创 2018-03-10 19:57:51 · 412 阅读 · 0 评论 -
cf 949B A Leapfrog in the Array
一 原题B. A Leapfrog in the Arraytime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputDima is a beginner program原创 2018-03-11 14:22:26 · 396 阅读 · 0 评论 -
cf 923B Producing Snow
一 原题C. Producing Snowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice likes snow a原创 2018-03-13 11:40:01 · 1261 阅读 · 1 评论 -
cf 923C Perfect Security
一 原题C. Perfect Securitytime limit per test3.5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputAlice has a very important原创 2018-03-14 12:23:55 · 1429 阅读 · 0 评论 -
cf 940E Cashback
一 原题E. Cashbacktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSince you are the best Wraith King, N原创 2018-03-21 16:22:10 · 234 阅读 · 0 评论 -
cf 895C Square Subsets
一 原题C. Square Subsetstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya was late for the lesson t原创 2017-12-01 17:05:43 · 359 阅读 · 0 评论