- 博客(46)
- 收藏
- 关注
原创 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 227
原创 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 175
原创 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 177
原创 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 131
原创 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 201
原创 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 293
原创 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 162
原创 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 157
原创 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 311 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 112
原创 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 153
原创 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 121
原创 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 161 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 203
原创 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 141
原创 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 137
原创 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 398
原创 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 445
原创 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 120
原创 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 198
原创 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 231
原创 # 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 229
原创 *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 282 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 401 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 191
原创 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 171
原创 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 292
原创 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 160
原创 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 231
原创 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 197
原创 2021-TKK-ICPC Summer Training Camp Round #1
1:消灭星星时间限制: 1 S | 内存限制: 65536 KBAccept: 0 | Submit: 0反卷局局长在玩消灭星星,一大堆星星按顺序竖直放进管道里,他有m次消灭星星的机会,每次都可以消灭一段连续且颜色相同的星星,如果下面的星星被消灭了,上面的星星就会因为重力而落下,现在为了优化难度,只有两种颜色的星星,0代表红色星星,1代表黄色星星,反卷局局长想问能否在给定的次数清空所有的星星?输入多组案例。一个正整数T,表示案例的数量。(T<=50)每组案例先是两个正整数n和m,分别代表星
2021-07-31 22:58:51 200
原创 # 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 215
原创 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 350
原创 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 133
原创 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 254
原创 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 286
原创 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 200
原创 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 193
原创 .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 498
原创 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 205
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人