cf
文章平均质量分 76
FlyLamb
这个作者很懒,什么都没留下…
展开
-
B. Young Explorers
B. Young ExplorersB.年轻探索者time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出Young wilderness explorers set off to their first expedition led by s原创 2021-09-03 23:05:26 · 202 阅读 · 0 评论 -
A. Sequence with Digits
A. Sequence with DigitsA.数字序列time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard inputinput: standard inputoutput: standard outputoutput: standard outputLet’s define the following recurrenc原创 2021-09-02 23:44:17 · 133 阅读 · 0 评论 -
B. Accordion
B. AccordionB.手风琴time limit per test: 3 seconds每次测试的时间限制:3秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出An accordion is a string (yes, in the real world accordions are musical instr原创 2021-09-01 23:40:30 · 126 阅读 · 0 评论 -
Taxes
TaxesMr. Funt now lives in a country with a very specific tax laws. The total income of mr. Funt during this富特先生现在住在一个有着非常具体税法的国家。先生的总收入。在此期间year is equalton(n >= 2 ) burles and the amount of tax he has to pay is calculated as the年为相等年(n>=2),他必须缴原创 2021-08-31 22:30:17 · 88 阅读 · 0 评论 -
Winner
A. WinnerA.获胜者time limit per test: 1 second每次测试的时间限制:1秒memory limit per test. 64 megabytes每次测试的内存限制。64兆字节input: standard input输入:标准输入output: standard output产出:标准产出The winner of the card game popular in Berland “Berlogging” is determined according原创 2021-08-30 21:16:51 · 121 阅读 · 0 评论 -
D. Same Differences
D. Same DifferencesD.相同的差异time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test 256 megabytes每测试256兆字节的内存限制input. standard input投入。标准输入output: standard output产出:标准产出You are given an array a of n integers. Count the number of pairs of in原创 2021-08-29 21:32:22 · 220 阅读 · 0 评论 -
B. Ternary String
B. Ternary StringB.三元字符串time limit per test: 2 secondstime limit per test: 2 secondsmemory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出You are given a string 8 such that each its characte原创 2021-08-28 23:38:23 · 115 阅读 · 0 评论 -
C. Ternary XOR .
C. Ternary XOR .C.三元异或time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出A number is ternary if it contains only digits 0, 1 and 2. For example, t原创 2021-08-27 23:31:58 · 115 阅读 · 0 评论 -
C. Alternating Subsequence
C. Alternating SubsequenceC.交替子序列time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Recall that the sequence b is a a subsequence of the sequence原创 2021-08-25 23:38:19 · 252 阅读 · 1 评论 -
P1868 饥饿的奶牛
P1868 饥饿的奶牛题目描述有一条奶牛冲出了围栏,来到了一处圣地(对于奶牛来说),上面用牛语写着一段文字。现用汉语翻译为:有 NN 个区间,每个区间 x,yx,y 表示提供的 x\sim yx∼y 共 y-x+1y−x+1 堆优质牧草。你可以选择任意区间但不能有重复的部分。对于奶牛来说,自然是吃的越多越好,然而奶牛智商有限,现在请你帮助他。输入格式第一行一个整数 NN。接下来 NN 行,每行两个数 x,yx,y,描述一个区间。输出格式输出最多能吃到的牧草堆数。线性dp//// C原创 2021-08-24 23:23:11 · 70 阅读 · 0 评论 -
B. Game with string
B. Kvass and the Fair NutB. Kvass and the Fair Nuttime limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出The Fair Nut likes kvass very much. On his b.原创 2021-08-23 00:28:28 · 111 阅读 · 0 评论 -
C. Birthday
C. BirthdayC.生日time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出Cowboy Vlad has a bithday today! There are n children who came to the celebratio原创 2021-08-21 23:45:06 · 88 阅读 · 0 评论 -
B. Princesses and Princes
B. Princesses and PrincesB.公主和王子time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出The King of Berland Polycarp LXXXIV has n daughters. To establ原创 2021-08-20 23:55:34 · 100 阅读 · 1 评论 -
A. Flipping Game
A. Flipping GameA.翻转游戏time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出lahub got bored, so he invented a game to be played on paper.拉哈伯感到无聊,所以他原创 2021-08-20 00:15:34 · 169 阅读 · 0 评论 -
A. Odd Selection
A. Odd SelectionA.奇数选择time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Shubham has an array a of size n, and wants to select exactly x elements原创 2021-08-18 21:57:00 · 115 阅读 · 0 评论 -
B. Collecting Packages
B. Collecting PackagesB.收集包裹time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出There is a robot in a warehouse and n packages he wants to collect.原创 2021-08-17 23:54:49 · 97 阅读 · 0 评论 -
B1. Palindrome Game (easy version)
B1. Palindrome Game (easy version)B1.回文游戏(简易版)time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出The only difference between the easy and hard ver原创 2021-08-16 23:11:16 · 338 阅读 · 0 评论 -
2021-08-15
B. Cat CycleB.猫周期time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Suppose you are living with two cats: A and B. There are n napping spots where原创 2021-08-15 21:31:08 · 349 阅读 · 0 评论 -
B. M-arrays
B. M-arraysB.M-阵列time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出You are given an array a1, a2,…, an consisting of n positive integers and a po原创 2021-08-14 22:25:50 · 90 阅读 · 0 评论 -
B. Two Buttons .
#B. Two Buttons .B.两个按钮。time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Vasya has found a strange device. On the front panel of a device there原创 2021-08-13 23:17:40 · 150 阅读 · 0 评论 -
B. Moamen and k-subarrays
B. Moamen and k-subarraysB.莫阿门和k-子阵time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Moamen has an array of n distinct integers. He wants to sor原创 2021-08-11 23:04:35 · 190 阅读 · 0 评论 -
# C. Less or Equal
C. Less or EqualC.减少或平等time limit per test: 2 secondstime limit per test: 2 secondsmemory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出You are given a sequence of integers of length n and原创 2021-08-10 23:35:25 · 196 阅读 · 0 评论 -
*800*1000速攻
A. CherryA.樱桃time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出You are given n integers a1, a… Qn: Find the maximum value of max(a1, a…,ar) . min原创 2021-08-09 21:53:24 · 227 阅读 · 1 评论 -
C. K-th Not Divisible by n
C. K-th Not Divisible by nC.K-不可被n整除time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出You are given two positive integers n and k. Print the k-th原创 2021-08-08 23:28:21 · 356 阅读 · 3 评论 -
C. Celex Update
C. Celex UpdateC.CELEX最新情况time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出During the quarantine, Sicromoft has more free time to create the ne原创 2021-08-07 20:36:52 · 148 阅读 · 0 评论 -
B. BerSU Ball
B. BerSU BallB.小松舞会time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input. standard input投入。标准输入output: standard output产出:标准产出The Berland State University is hosting a ballroom dance in celebration of i原创 2021-08-06 23:50:32 · 128 阅读 · 0 评论 -
A.Maze
A.MazeA.Mazetime limit per test: 2 secondsmemory limit per test: 256 megabytes每次测试的时间限制:每次测试2秒的限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Pavel loves grid mazes. A grid maze is an n x m rectangle maze where each cell is eith原创 2021-08-04 22:13:40 · 237 阅读 · 0 评论 -
C.k-Tree
C.k-TreeC.k-Treetime limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytesmemory limit per test: 256 megabytesinput: standard input输入:标准输入Quite recently a creative student Lesha had a lecture on trees. After the lecture Lesha was原创 2021-08-03 21:12:41 · 128 阅读 · 0 评论 -
D.Flowers
D.FlowersD.Flowerstime limit per test: 1.5 secondsmemory limit per test: 256 megabytes每次测试的时限:1.5秒每次测试的时限:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出We saw the little game Mamot made for Mole’s lunch.Now it’s Mamot’s diner time原创 2021-08-02 22:45:29 · 173 阅读 · 0 评论 -
C. Number of Ways
C.Number of Waystime limit per test: 2 secondsmemory limit per test: 256 megabytesC.每次测试的次数限制:每次测试2次极限:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Youve got array a[1].a[2].…. a[n], consisting of n integers. Count the number of w原创 2021-08-01 19:55:10 · 145 阅读 · 0 评论 -
# A.Two Substrings
A.Two SubstringsA.两个子字符串time limit per test:2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出You are given string s.Your task is to determine if the given string s原创 2021-07-30 21:28:40 · 169 阅读 · 0 评论 -
B.Books
B.BooksB.Bookstime limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出When Valera has got some free time,he goes to the library to read some books. To原创 2021-07-29 16:11:08 · 302 阅读 · 0 评论 -
Sort the Array
B.Sort the ArrayB.排序数组time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Being a programmer,you like arrays a lot.For your bithday,your friends ha原创 2021-07-28 22:46:19 · 93 阅读 · 0 评论 -
C.Given Length and Sum of Digits
C.Given Length and Sum of Digits…C.Given Length and Sum of Digits…time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出You have a positive integer m原创 2021-07-27 23:38:41 · 202 阅读 · 0 评论 -
A.Cheap Travel
A.Cheap TravelA.Cheap旅行time limit per test: 1 second每次测试的时间限制:1秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Ann has recently started commutng by subway.We know that a one ride subw原创 2021-07-26 23:19:43 · 228 阅读 · 0 评论 -
Boredom
A.BoredomA.Boredomtime limit per test: 1 second每次测试的时间限制:1秒memory limit per test:256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Alex doesn’tlike boredom.Thats why whenever he gets bored, he comes up with ga原创 2021-07-25 23:08:33 · 176 阅读 · 0 评论 -
A.Cut Ribbon
A.Cut Ribbon切断带time limit per test: 1 second每次测试的时间限制:1秒memory limit per test:256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出Polycarpus has a ribbon, its length is n.He wants to cut the ribbon in a way that原创 2021-07-24 23:21:33 · 152 阅读 · 0 评论 -
.T-primes
B.T-primesB.T-primestime limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test: 256 megabytes每次测试的内存限制:256兆字节input: standard input输入:标准输入output: standard output产出:标准产出We know that prime numbers are positive integers that have exactly two dis原创 2021-07-23 23:24:07 · 424 阅读 · 0 评论 -
C.Registration system登记制度
C.Registration systemC.登记制度time limit per test: 5 secondstime limit per test: 5 secondsmemory limit per test: 64 megabytesmemory limit per test: 64 megabytesinput: standard input输入:标准输入output: standard output产出:标准产出Anew e-mail service"Beriandesk"原创 2021-07-22 23:09:00 · 174 阅读 · 0 评论 -
Secret Santa 秘密圣诞老人
Secret Santa秘密圣诞老人来源codeforses #1530d链接: link.time limit per test: 2 seconds每次测试的时间限制:2秒memory limit per test:512 megabytesmemory limit per test:512 megabytesinput: standard input输入:标准输入output: standard output产出:标准产出Every December,VK traditional原创 2021-07-20 21:49:47 · 551 阅读 · 0 评论