map
龍木
若人生为棋,我愿为卒,漫漫征途,谁曾见我后退半步
展开
-
M - Gitignore
https://codeforces.com/gym/102900/problem/MYour git project (you don’t need to be familiar with git to solve this problem) has some files that should be ignored from synchronizing. You need to calculate the minimum number of lines needed for gitignore.Fo原创 2020-12-19 20:30:08 · 442 阅读 · 1 评论 -
B 小y的序列
链接:https://ac.nowcoder.com/acm/contest/7780/B来源:牛客网又是一年 CSP,机房的oier都在刷题,alan却在发呆想着小y,正巧忽然听到隔壁机房某神zlk熟悉的声音:“找规律就可以了吧,这个序列感觉很熟悉啊,就是1,2,4,6,11这其实就是一个a[i+1]-a[i]=i的序列哦,突然隔壁的声音大了起来,zlk,你好像有个数写错了(大雾)~课后,alan在纸上写下了这个题目,让szm做:给一个长度为n的序列a,你希望改最少的数,使得这个序列满足a[i.原创 2020-10-05 11:55:59 · 282 阅读 · 0 评论 -
D. Zero Remainder Array
链接:https://codeforces.com/contest/1374/problem/DYou are given an arrayaaconsisting ofnnpositive integers.Initially, you have an integerx=0x=0. During one move, you can do one of the following two operations:Chooseexactly oneiifrom11tonnan...原创 2020-07-06 16:45:55 · 393 阅读 · 0 评论 -
B. Dreamoon Likes Permutations
链接:https://codeforces.ml/contest/1330/problem/BThe sequence ofmmintegers is called thepermutationif it contains all integers from11tommexactly once. The numbermmis called the length of the...原创 2020-04-04 14:40:45 · 872 阅读 · 0 评论 -
C. Yet Another Walking Robot
链接:https://codeforces.com/contest/1296/problem/CThere is a robot on a coordinate plane. Initially, the robot is located at the point(0,0)(0,0). Its path is described as a stringssof lengthnncons...原创 2020-02-05 13:25:32 · 763 阅读 · 0 评论 -
D. Zero Quantity Maximization
链接:https://codeforces.com/problemset/problem/1133/DYou are given two arraysaaandbb, each containsnnintegers.You want to create a new arrayccas follows: choose some real (i.e. not necessaril...原创 2020-01-16 20:21:48 · 158 阅读 · 0 评论 -
A. k-Multiple Free Set
链接:https://codeforces.com/contest/274/problem/AAk-multiple free set is a set of integers where there is no pair of integers where one is equal to another integer multiplied byk. That is, there are...原创 2020-01-15 16:55:18 · 201 阅读 · 0 评论 -
A. Winner
链接:https://codeforces.com/contest/2/problem/AThe winner of the card game popular in Berland "Berlogging" is determined according to the following rules. If at the end of the game there is only one p...原创 2020-01-14 16:06:33 · 172 阅读 · 0 评论 -
C. Friends and Gifts
链接:https://codeforces.com/contest/1283/problem/CThere arennfriends who want to give gifts for the New Year to each other. Each friend should giveexactlyone gift and receiveexactlyone gift. The...原创 2020-01-09 17:14:55 · 609 阅读 · 1 评论 -
B. Sheldon and Ice Pieces
链接:https://codeforces.com/problemset/problem/328/BDo you remember how Kai constructed the word "eternity" using pieces of ice as components?Little Sheldon plays with pieces of ice, each piece has ...原创 2019-11-30 19:47:11 · 159 阅读 · 0 评论 -
B. PIN Codes
链接:https://codeforces.com/contest/1263/problem/BA PIN code is a string that consists of exactly44digits. Examples of possible PIN codes:7013,0000and0990. Please note that the PIN code can begi...原创 2019-11-30 15:55:33 · 507 阅读 · 0 评论 -
C. Everyone is a Winner!
链接:https://codeforces.com/contest/1263/problem/COn the well-known testing system MathForces, a draw ofnnrating units is arranged. The rating will be distributed according to the following algorith...原创 2019-11-30 15:53:16 · 580 阅读 · 0 评论 -
B2. Social Network (hard version)
B2. Social Network (hard version)链接:https://codeforces.com/contest/1234/problem/B2The only difference between easy and hard versions are constraints onnnandkk.You are messaging in one of the...原创 2019-10-02 17:58:10 · 703 阅读 · 0 评论