自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 codeforces B. Odd Grasshopper

B. Odd GrasshopperThe grasshopper is located on the numeric axis at the point withcoordinate x0.Having nothing else to do he starts jumping between integer points onthe axis. Making a jump from a point with coordinate x with a distanced to the left m

2021-11-12 17:58:37 301

原创 codeforces 1607C.Minimum Extraction

C.Minimum ExtractionYelisey has an array a of n integers.If a has length strictly greater than 1, then Yelisei can apply anoperation called minimum extraction to it:First, Yelisei finds the minimal number m in the array. If there areseveral identical

2021-11-12 17:47:04 696

原创 codeforces 1607D.Blue-Red Permutation

D. Blue-Red PermutationYou are given an array of integers a of length n. The elements of thearray can be either different or the same.Each element of the array is colored either blue or red. There are nounpainted elements in the array. One of the two

2021-11-12 17:36:20 237

原创 codeforces 1603B. Moderate Modular Mode

B. Moderate Modular ModeYouKn0wWho has two even integers x and y. Help him to find an integern such that 1≤n≤2⋅1018 and nmodx=ymodn. Here, amodb denotes theremainder of a after division by b. If there are multiple suchintegers, output any. It can be s

2021-11-12 17:23:02 282

原创 codeforces1575j

J. Jeopardy of Dropped Ballshttps://codeforces.com/problemset/problem/1575/JMr. Chanek has a new game called Dropping Balls. Initially, Mr. Chanekhas a grid a of size n×m Each cell (x,y) contains an integer ax,ydenoting the direction of how the ball w

2021-11-11 11:02:55 121

原创 codeforces 1555A

A. PizzaForcesPizzaForces is Petya’s favorite pizzeria. PizzaForces makes and sellspizzas of three sizes: small pizzas consist of 6 slices, medium onesconsist of 8 slices, and large pizzas consist of 10 slices each.Baking them takes 15, 20 and 25 minu

2021-11-11 10:54:17 142

原创 codeforces 1554A

A. CherryYou are given n integers a1,a2,…,an. Find the maximum value of max(al,al+1,…,ar)⋅min(al,al+1,…,ar) over all pairs (l,r) of integers for which 1≤l<r≤n.Input The first line contains a single integer t (1≤t≤10000) — thenumber of test cases.T

2021-11-11 10:40:25 95

原创 codeforces 1553A

A. Digits SumLet’s define S(x) to be the sum of digits of number x written in decimal system. For example, S(5)=5, S(10)=1, S(322)=7.We will call an integer x interesting if S(x+1)<S(x). In each test youwill be given one integer n. Your task is to c

2021-11-11 10:23:15 125

原创 codeforces 1554D

D. Diane D. DianeYou are given an integer n. Find any string s of length n consistingonly of English lowercase letters such that each non-empty substringof s occurs in s an odd number of times. If there are multiple suchstrings, output any. I

2021-11-11 10:14:00 84

转载 2021中国大学生程序设计竞赛(CCPC)网选赛(第一场)

2021中国大学生程序设计竞赛(CCPC)网选赛(第一场)总结:本次比赛,打的差的一塌糊涂,为了一道签到题甚至用了5个小时(最悲剧的是还没做出来),隔壁学弟都比我这个老油条强了,哎。1001 Cut The Wire前言(唠嗑):本题全靠我万能的队友做的Problem Description:In the country of Infinity , there is a strange road. This road only has a starting point, but no end. S

2021-08-31 18:47:15 936

原创 B. President‘s Office

President of Berland has a very vast office-room, where, apart from him, work his subordinates. Each subordinate, as well as President himself, has his own desk of a unique colour. Each desk is rectangular, and its sides are parallel to the office walls. O

2020-10-01 10:56:16 237 1

原创 B. Before an Examtime

B. Before an Examtimelimit per test0.5 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputTomorrow Peter has a Biology exam. He does not like this subject much, but d days ago he learnt that he would have to take this exam....

2020-09-30 19:55:42 130

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除