自定义博客皮肤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)
  • 收藏
  • 关注

原创 A计划

可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主的位置用P表示,时空传输机用#表示,墙用表示,平...

2020-09-10 21:16:36 117

原创 HPU personal-training 2

HPU personal-training 2A - Kefa and ParkKefa decided to celebrate his first big salary by going to the restaurant.He lives by an unusual park. The park is a rooted tree consisting of n vertices wit...

2019-11-25 21:31:20 270

原创 Educational Codeforces Round 76 (Rated for Div. 2)

A - Two Rival StudentsYou are the gym teacher in the school.There are n students in the row. And there are two rivalling students among them. The first one is in position a, the second in position b...

2019-11-21 20:33:50 199

原创 HPU personal training

HPU personal trainingB - Consecutive IntegersProblem StatementSnuke has N integers: 1,2,[ldots],N. He will choose K of them and give those to Takahashi.How many ways are there to choose K consecut...

2019-11-18 21:32:04 219

原创 codeForces #575 div3 D - RGB Substring (easy version)

The only difference between easy and hard versions is the size of the input.You are given a string s consisting of n characters, each character is ‘R’, ‘G’ or ‘B’.You are also given an integer k. Yo...

2019-11-15 21:21:17 223

原创 codeForces #575 div3 B - Odd Sum Segments

You are given an array consisting of integers . You want to split it into exactly non-empty non-intersecting subsegments such that each subsegment has odd sum (i. e. for each subsegment, the sum of...

2019-11-14 21:22:51 155

原创 codeForces #575 div3 A - Three Piles of Candies

Alice and Bob have received three big piles of candies as a gift. Now they want to divide these candies as fair as possible. To do this, Alice takes one pile of candies, then Bob takes one of the othe...

2019-11-13 21:23:24 103

原创 HPU 18级个人训练H - Rng

H - RngAvin is studying how to synthesize data. Given an integer n, he constructs an interval using the following method: he first generates a integer r between 1 and n (both inclusive) uniform-rando...

2019-11-13 21:20:15 207

原创 HPU 18级个人训练K - Class

K - ClassAvin has two integers a, b (1 ≤ a, b ≤ 1, 000).Given x = a + b and y = a - b, can you calculate ab?InputThe first line contains two integers x, y.OutputPrint the result of ab.Sample I...

2019-11-11 21:13:20 293

原创 HPU 18级个人训练J - Worker

J - WorkerAvin meets a rich customer today. He will earn 1 million dollars if he can solve a hard problem. There are n warehouses and m workers. Any worker in the i-th warehouse can handle ai orders...

2019-11-11 21:00:57 212

原创 HPU 18级个人训练I - Budget

I - BudgetAvin’s company has many ongoing projects with different budgets. His company records the budgets using numbers rounded to 3 digits after the decimal place. However, the company is updating...

2019-11-11 20:49:48 447

原创 HPU 18级个人训练F - String

F - StringAvin has a string. He would like to uniform-randomly select four characters (selecting the same character is allowed) from it. You are asked to calculate the probability of the four chara...

2019-11-11 20:39:27 165

空空如也

空空如也

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

TA关注的人

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