自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 Bits Reverse

题目描述 Now given two integers x and y, you can reverse every consecutive three bits in arbitrary number’s binary form (any leading zero can be taken i...

2019-05-02 12:01:24

阅读数 20

评论数 0

原创 Sequence in the Pocket

Time Limit:1 Second Memory Limit:65536 KB DreamGrid has just found an integer sequencein his right pocket. As DreamGrid is bored, he decides to play...

2019-04-27 17:46:01

阅读数 57

评论数 0

原创 Lucky 7

BaoBao has just found a positive integer sequenceof lengthfrom his left pocket and another positive integerfrom his right pocket. As number 7 is BaoB...

2019-04-27 13:17:17

阅读数 28

评论数 0

原创 Doki Doki Literature Club

Doki Doki Literature Club!is a visual novel developed by Team Salvato. The protagonist is invited by his childhood friend, Sayori, to join their high...

2019-04-27 13:14:35

阅读数 32

评论数 0

原创 King of Karaoke

It's Karaoke time! DreamGrid is performing the songPowder Snowin the gameKing of Karaoke. The song performed by DreamGrid can be considered as an int...

2019-04-27 13:13:31

阅读数 18

评论数 0

原创 Peak

A sequence ofintegersis called a peak, if and only if there exists exactly one integersuch that, andfor all, andfor all. Given an integer sequence, ...

2019-04-27 13:12:40

阅读数 26

评论数 0

原创 Frogger

传送门 解题思路: 输入n个点的坐标,第一个为始点,第二个位终点,其余的点都是这两点之间的点,求从起始点到终点的所有路径中最大边的最小的一个。 解题思路: 单源最短路的变形直接改SPFA就可以dis[i]在本题的意思是,点i到起来路径中最大的路径, if(dis[j] > ...

2019-04-26 00:01:58

阅读数 8

评论数 0

原创 Til the Cows Come Home(最短路)

Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. B...

2019-04-25 20:38:45

阅读数 8

评论数 0

原创 Subsequence

Give a stringSSandNNstringT_iTi​, determine whetherT_iTi​is a subsequence ofSS. If ti is subsequence ofSS, printYES,else printNO. If there is an ar...

2019-04-20 19:53:13

阅读数 17

评论数 0

原创 Coloring Game

David has a white board with2 \times N2×Ngrids.He decides to paint some grids black with his brush.He always starts at the top left corner and ends a...

2019-04-20 19:34:47

阅读数 28

评论数 0

原创 Diverse Garland

time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have a garland consisting of...

2019-04-20 19:15:43

阅读数 40

评论数 0

原创 Distance

There arennpoints on a horizontal line, labelled with11throughnnfrom left to right. The distance between theii-th point and the(i+1)(i+1)-th point i...

2019-04-17 20:39:46

阅读数 16

评论数 0

原创 Potion

Time Limit:1 Second Memory Limit:65536 KB BaoBao is brewing a magical potion. To brew this potion,types of ingredients, whose rank ranges from 1 to,...

2019-04-14 17:59:01

阅读数 37

评论数 0

原创 Thanks, TuSimple!

ime Limit:1 Second Memory Limit:65536 KB In the very first sentence of the very first problem, we would like to give our sincere thanks to TuSimple,...

2019-04-14 17:56:19

阅读数 63

评论数 0

原创 Odd Gnome

题目描述 According to the legend of Wizardry and Witchcraft, gnomes live in burrows underground, known as gnome holes. There they dig up and eat the roo...

2019-04-13 17:20:04

阅读数 20

评论数 0

原创 Greeting Card

题目描述 Quido plans to send a New Year greeting to his friend Hugo. He has recently acquired access to an advanced high-precision plotter and he is pla...

2019-04-13 16:57:29

阅读数 20

评论数 0

原创 Bumped!(dijskra)

题目描述 Peter returned from the recently held ACM ICPC World finals only to find that his return flight was overbooked and he was bumped from the fligh...

2019-04-12 23:43:53

阅读数 40

评论数 0

原创 Go Latin

题目描述 There are English words that you want to translate them into pseudo-Latin. To change an English word into pseudo-Latin word, you simply change ...

2019-04-12 17:17:10

阅读数 19

评论数 0

原创 Bulbs

题目描述 Greg has an m × n grid of Sweet Lightbulbs of Pure Coolness he would like to turn on. Initially, some of thebulbs are on and some are off. Greg...

2019-04-10 21:12:52

阅读数 25

评论数 0

原创 Ingenious Lottery Tickets

题目描述 Your friend Superstitious Stanley is always getting himself into trouble. This time, in his Super Lotto Pickand Choose plan, he wants to get ri...

2019-04-10 20:47:51

阅读数 15

评论数 0

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