随笔分类 -  Codeforces

上一页 1 ··· 6 7 8 9 10
摘要:C. Swap Game Alice and Bob are playing a game on an array a of n positive integers. Alice and Bob make alternating moves with Alice going first. I 阅读全文
posted @ 2022-11-12 18:09 onlyblues 阅读(50) 评论(0) 推荐(0) 编辑
摘要:C1. Sheikh (Easy version) This is the easy version of the problem. The only difference is that in this version q=1. You are given an array of intege 阅读全文
posted @ 2022-10-28 14:31 onlyblues 阅读(65) 评论(0) 推荐(0) 编辑
摘要:D. Factorial Divisibility You are given an integer x and an array of integers a1,a2,,an. You have to determine if the number $a_1!+a_2!+ 阅读全文
posted @ 2022-10-27 23:16 onlyblues 阅读(104) 评论(0) 推荐(1) 编辑
摘要:F. MEX vs MED You are given a permutation p1,p2,,pn of length n of numbers 0,,n1. Count the number of subsegments $1 \leq l \l 阅读全文
posted @ 2022-10-26 11:35 onlyblues 阅读(88) 评论(0) 推荐(0) 编辑
摘要:E. FTL Monocarp is playing a video game. In the game, he controls a spaceship and has to destroy an enemy spaceship. Monocarp has two lasers installed 阅读全文
posted @ 2022-10-25 17:32 onlyblues 阅读(53) 评论(0) 推荐(0) 编辑
摘要:C1. Make Nonzero Sum (easy version) This is the easy version of the problem. The difference is that in this version the array can not contain zeros. Y 阅读全文
posted @ 2022-10-24 23:22 onlyblues 阅读(71) 评论(0) 推荐(0) 编辑
摘要:D1. Balance (Easy version) This is the easy version of the problem. The only difference is that in this version there are no "remove" queries. Initial 阅读全文
posted @ 2022-10-24 16:53 onlyblues 阅读(199) 评论(0) 推荐(0) 编辑
摘要:B. Ugu A binary string is a string consisting only of the characters 0 and 1. You are given a binary string s1s2sn. It is necessary t 阅读全文
posted @ 2022-10-24 15:32 onlyblues 阅读(108) 评论(0) 推荐(0) 编辑
摘要:A. Bestie You are given an array a consisting of n integers a1,a2,,an. Friends asked you to make the greatest common divisor (GCD) of 阅读全文
posted @ 2022-10-23 23:24 onlyblues 阅读(82) 评论(0) 推荐(0) 编辑
摘要:D. Problem with Random Tests You are given a string s consisting of n characters. Each character of s is either 0 or 1. A substring of s i 阅读全文
posted @ 2022-10-22 10:19 onlyblues 阅读(101) 评论(1) 推荐(2) 编辑
摘要:C. Save the Magazines Monocarp has been collecting rare magazines for quite a while, and now he has decided to sell them. He distributed the magazines 阅读全文
posted @ 2022-10-21 23:20 onlyblues 阅读(137) 评论(0) 推荐(0) 编辑
摘要:E2. Divisible Numbers (hard version) This is an hard version of the problem. The only difference between an easy and a hard version is the constraints 阅读全文
posted @ 2022-10-19 20:12 onlyblues 阅读(93) 评论(0) 推荐(0) 编辑
摘要:E1. Divisible Numbers (easy version) This is an easy version of the problem. The only difference between an easy and a hard version is the constraints 阅读全文
posted @ 2022-10-19 19:37 onlyblues 阅读(284) 评论(0) 推荐(3) 编辑
摘要:F. Multi-Colored Segments Dmitry has n segments of different colors on the coordinate axis Ox. Each segment is characterized by three integers $l_ 阅读全文
posted @ 2022-10-15 19:52 onlyblues 阅读(93) 评论(0) 推荐(0) 编辑
摘要:E. Sending a Sequence Over the Network The sequence a is sent over the network as follows: sequence a is split into segments (each element of the 阅读全文
posted @ 2022-10-13 12:01 onlyblues 阅读(117) 评论(0) 推荐(0) 编辑
摘要:D. Equal Binary Subsequences Everool has a binary string s of length 2n. Note that a binary string is a string consisting of only characters 0 a 阅读全文
posted @ 2022-10-11 19:37 onlyblues 阅读(121) 评论(0) 推荐(0) 编辑
摘要:C1. Good Subarrays (Easy Version) This is the easy version of this problem. In this version, we do not have queries. Note that we have multiple test c 阅读全文
posted @ 2022-10-11 16:08 onlyblues 阅读(153) 评论(0) 推荐(0) 编辑
摘要:B. Playing with GCD You are given an integer array a of length n. Does there exist an array b consisting of n+1 positive integers such that $a 阅读全文
posted @ 2022-10-11 15:31 onlyblues 阅读(254) 评论(1) 推荐(1) 编辑

上一页 1 ··· 6 7 8 9 10
Web Analytics
点击右上角即可分享
微信分享提示