
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 · 207 阅读 · 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 · 251 阅读 · 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 · 237 阅读 · 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 · 452 阅读 · 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 · 511 阅读 · 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 · 432 阅读 · 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 · 297 阅读 · 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 · 327 阅读 · 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 · 694 阅读 · 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 · 452 阅读 · 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 · 889 阅读 · 0 评论 -
cf 1006F Xor-Paths
一 原题 F. Xor-Paths time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output There is a rectangular grid of size n×mn×m. Each cell has a nu...原创 2018-07-20 19:58:48 · 421 阅读 · 0 评论 -
cf 1012B Chemical table
一 原题 D. Chemical table time limit per test: 1 second memory limit per test: 512 megabytes input: standard input output: standard output Innopolis University scientists continue to investigate th...原创 2018-07-31 00:44:38 · 606 阅读 · 0 评论 -
cf 1051F The Shortest Statement
一 原题 F. The Shortest Statement time limit per test: 4 seconds memory limit per test: 256 megabytes input: standard input output: standard output You are given a weighed undirected connected grap...原创 2018-09-29 14:06:43 · 429 阅读 · 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 · 500 阅读 · 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 · 305 阅读 · 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 · 746 阅读 · 0 评论 -
cf 754D Fedor and coupons
一 原题 D. Fedor and coupons time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output All our characters have hobb原创 2017-01-08 09:40:56 · 390 阅读 · 0 评论 -
cf 877D Olya and Energy Drinks
一 原题 D. Olya and Energy Drinks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Olya loves energy drinks. S原创 2017-12-02 11:03:26 · 633 阅读 · 0 评论 -
cf 906A Shockers
一 原题 C. Shockers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Valentin participates in a show calle原创 2018-01-03 15:02:54 · 330 阅读 · 0 评论 -
cf 917A The Monster
一 原题 C. The Monster time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output As Will is stuck in the Upside Down原创 2018-01-31 00:18:02 · 498 阅读 · 0 评论 -
cf 919D Substring
一 原题 D. Substring time limit per test 3 seconds memory limit per test 256 megabytes input standard input outp原创 2018-02-01 00:08:11 · 339 阅读 · 0 评论 -
cf 915E Physical Education Lessons
一 原题 E. Physical Education Lessons time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output This year Alex has finished school, an...原创 2018-01-17 14:02:41 · 470 阅读 · 0 评论 -
cf 933A A Twisty Movement
一 原题 A. A Twisty Movement time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A dragon symbolizes wisdom, p原创 2018-02-17 23:27:41 · 624 阅读 · 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 · 897 阅读 · 0 评论 -
cf 923D Picking Strings
一 原题 E. Picking Strings time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Alice has a string consist原创 2018-03-15 20:25:03 · 261 阅读 · 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 · 427 阅读 · 0 评论 -
cf 949B A Leapfrog in the Array
一 原题 B. A Leapfrog in the Array time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output Dima is a beginner program原创 2018-03-11 14:22:26 · 408 阅读 · 0 评论 -
cf 923B Producing Snow
一 原题 C. Producing Snow time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alice likes snow a原创 2018-03-13 11:40:01 · 1274 阅读 · 1 评论 -
cf 923C Perfect Security
一 原题 C. Perfect Security time limit per test 3.5 seconds memory limit per test 512 megabytes input standard input output standard output Alice has a very important原创 2018-03-14 12:23:55 · 1446 阅读 · 0 评论 -
cf 940E Cashback
一 原题 E. Cashback time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Since you are the best Wraith King, N原创 2018-03-21 16:22:10 · 247 阅读 · 0 评论 -
cf 895C Square Subsets
一 原题 C. Square Subsets time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Petya was late for the lesson t原创 2017-12-01 17:05:43 · 365 阅读 · 0 评论