- 博客(2416)
- 资源 (180)
- 收藏
- 关注
原创 A. Magical Sticks
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA penguin Rocher hasnnsticks. He has exactly one stick with lengthiifor all1≤i≤n1≤i≤n.He can connect some sticks. If he connects two...
2020-07-05 10:31:45 511
原创 A. Required Remainder
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given three integersx,yx,yandnn. Your task is to find themaximumintegerkksuch that0≤k≤n0≤k≤nthatkmodx=ykmodx=y, wheremod...
2020-07-05 10:28:30 647
原创 A. FashionabLee
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLee is going to fashionably decorate his house for a party, using some regular convex polygons...Lee thinks a regularnn-sided (convex) .
2020-07-05 10:26:13 2284
原创 B. Shuffle
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array consisting ofnnintegersa1a1,a2a2, ...,anan. Initiallyax=1ax=1, all other elements are equal to00.You have t...
2020-06-21 20:58:10 498
原创 B. GCD Compression
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAshish has an arrayaaof consisting of2n2npositive integers. He wants to compressaainto an arraybbof sizen−1n−1. To do this, he fir...
2020-06-21 20:42:26 559
原创 C. Social Distance
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp and his friends want to visit a new restaurant. The restaurant hasnntables arranged along a straight line. People are already s..
2020-06-21 20:01:44 743
原创 A. XXXXX
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputEhab loves number theory, but for some reason he hates the numberxx. Given an arrayaa, find the length of its longest subarray such that ..
2020-06-21 11:19:37 165755 1
原创 A. Maximum GCD
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's consider all integers in the range from11tonn(inclusive).Among all pairs ofdistinctintegers in this range, find the maximum p...
2020-06-21 10:49:31 718
原创 A. C+=
time limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputLeo has developed a new programming language C+=. In C+=, integer variables can only be changed with a "+=" operation that adds the right-
2020-06-21 10:43:59 905
原创 B. Even Array
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an arraya[0…n−1]a[0…n−1]of lengthnnwhich consists of non-negative integers.Note that array indices start from zero.An...
2020-06-21 10:35:07 725
原创 A. Short Substrings
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice guesses the strings that Bob made for her.At first, Bob came up with the secret stringaaconsisting of lowercase English letters...
2020-06-21 10:25:51 823
原创 C. Rotation Matching
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the mysterious disappearance of Ashish, his two favourite disciples Ishika and Hriday, were each left with one half of a secret messa
2020-06-14 11:00:35 523
原创 B. Johnny and His Hobbies
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAmong Johnny's numerous hobbies, there are two seemingly harmless ones: applying bitwise operations and sneaking into his dad's office. As
2020-06-14 10:52:25 506
原创 B. Subsequence Hate
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputShubham has a binary stringss. A binary string is a string containing only characters "0" and "1".He can perform the following operation.
2020-06-14 10:43:01 374
原创 E. Polygon
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolygon is not only the best platform for developing problems but also a square matrix with sidenn, initially filled with the character0..
2020-06-14 10:36:31 400
原创 A. Shovels and Swords
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp plays a well-known computer game (we won't mention its name). In this game, he can craft tools of two types — shovels and swords.
2020-06-14 09:38:31 345
原创 B. Trouble Sort
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAshish hasnnelements arranged in a line.These elements are represented by two integersaiai— the value of the element andbibi— the t...
2020-06-14 09:25:24 431
原创 D. Buying Shovels
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp wants to buyexactlynnshovels. The shop sells packages with shovels. The store haskktypes of packages: the package of theii-...
2020-06-14 09:19:12 580
原创 A. Johnny and Ancient Computer
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJohnny has recently found an ancient, broken computer. The machine has only one register, which allows one to put in there one variable. Th
2020-06-14 08:58:45 469
原创 A. Matrix Game
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAshish and Vivek play a game on a matrix consisting ofnnrows andmmcolumns, where they take turns claiming cells. Unclaimed cells are re...
2020-06-14 08:52:29 358
原创 B. New Theatre Square
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou might have remembered Theatre square from theproblem 1A. Now it's finally getting repaved.The square still has a rectangular shape .
2020-06-13 20:42:49 555
原创 A. Odd Selection
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputShubham has an arrayaaof sizenn, and wants to select exactlyxxelements from it, such that their sum is odd. These elements do not have...
2020-06-13 20:30:38 504
原创 B. Maria Breaks the Self-isolation
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMaria is the most active old lady in her house. She was tired of sitting at home. She decided to organize a ceremony against the coronavir
2020-06-07 10:14:30 593
原创 C. Similar Pairs
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWe call two numbersxxandyysimilarif they have the same parity (the same remainder when divided by22), or if|x−y|=1|x−y|=1. For exam...
2020-06-07 10:03:42 541
原创 A. Berland Poker
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe game of Berland poker is played with a deck ofnncards,mmof which are jokers.kkplayers play this game (nnis divisible bykk).A...
2020-06-07 09:45:04 491
原创 A. Park Lighting
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDue to the coronavirus pandemic, city authorities obligated citizens to keep a social distance. The mayor of the city Semyon wants to ligh
2020-06-07 09:38:28 496
原创 B. Honest Coach
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere arennathletes in front of you. Athletes are numbered from11tonnfrom left to right. You know the strength of each athlete— the...
2020-06-05 21:35:10 454
原创 A. Minimal Square
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFind the minimum area of asquareland on which you can place two identical rectangulara×ba×bhouses. The sides of the houses should be p...
2020-06-05 21:22:54 462
原创 B. Ternary String
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a stringsssuch that each its character is either1,2, or3. You have to choose the shortest contiguous substring ofsssu...
2020-05-24 17:53:20 572
原创 B. Young Explorers
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYoung wilderness explorers set off to their first expedition led by senior explorer Russell. Explorers went into a forest, set up a camp a
2020-05-24 17:45:47 410
原创 A. Sequence with Digits
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's define the following recurrence:an+1=an+minDigit(an)⋅maxDigit(an).an+1=an+minDigit(an)⋅maxDigit(an).HereminDigit(x)minDigit(x)a..
2020-05-24 10:13:35 336
原创 A. Alarm Clock
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has spent the entire day preparing problems for you. Now he has to sleep for at leastaaminutes to feel refreshed.Polycarp can..
2020-05-24 10:08:11 678
原创 D. Alice, Bob and Candies
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere arenncandies in a row, they are numbered from left to right from11tonn. The size of theii-th candy isaiai.Alice and Bob pla...
2020-05-17 08:54:26 695
原创 B. Card Constructions
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA card pyramid of height11is constructed by resting two cards against each other. Forh>1h>1, a card pyramid of heighthhis constr...
2020-05-17 08:48:03 499
原创 A. Orac and Factors
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOrac is studying number theory, and he is interested in the properties of divisors.For two positive integersaaandbb,aais a divisor ...
2020-05-17 08:43:20 396
原创 B. Same Parity Summands
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two positive integersnn(1≤n≤1091≤n≤109) andkk(1≤k≤1001≤k≤100). Represent the numbernnas the sum ofkkpositive integers...
2020-05-17 08:36:35 491
原创 A. Puzzle Pieces
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a special jigsaw puzzle consisting ofn⋅mn⋅midentical pieces. Every piece has three tabs and one blank, as pictured below...
2020-05-17 08:26:00 436
原创 C. K-th Not Divisible by n
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two positive integersnnandkk. Print thekk-th positive integer that is not divisible bynn.For example, ifn=3n=3, andk...
2020-05-17 08:20:36 693
原创 C. Board Moves
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a board of sizen×nn×n, wherennisodd(not divisible by22). Initially, each cell of the board contains one figure.In one...
2020-05-17 08:18:02 679
原创 A. Most Unstable Array
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two integersnnandmm. You have to construct the arrayaaof lengthnnconsisting ofnon-negative integers(i.e. integers gr...
2020-05-17 08:11:00 644
分词工具ANSJ 1.3版本
2014-02-14
JAVA JSON jar包
2013-11-26
hadoop mapreduce eclipse插件
2013-09-23
ANSJ分词工具最新版
2013-09-16
ANSJ分词JAR包
2013-08-27
斯坦福算法分析与设计【part 1】课程讲义
2013-08-14
斯坦福机器学习公开课讲义+个人笔记
2013-06-27
web intelligence and big data
2013-06-03
mtd_tools针对arm-xilinx-linux-gnueabi(Sourcery_CodeBench)
2018-04-14
mtd_tools针对arm-linux-gnueabihf(gcc-linaro-5.2)
2018-04-14
keyboard按键中断驱动
2017-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人