2 zzzzzBelial



TA的排名 7w+

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 into account) using one coin. Reversing (1,2,3) mean...

2019-05-02 12:01:24

Sequence in the Pocket

Time Limit:1 Second Memory Limit:65536 KBDreamGrid has just found an integer sequencein his right pocket. As DreamGrid is bored, he decides to play with the sequence. He can perform the fol...

2019-04-27 17:46:01

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 BaoBao's favorite number, he considers a positive...

2019-04-27 13:17:17

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 school's literature club. The protagonist then me...

2019-04-27 13:14:35

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 integer sequence, and the standard version of the ...

2019-04-27 13:13:31


A sequence ofintegersis called a peak, if and only if there exists exactly one integersuch that, andfor all, andfor all.Given an integer sequence, please tell us if it's a peak or not....

2019-04-27 13:12:40


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

2019-04-26 00:01:58

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. Bessie needs her beauty sleep, so she wants to get b...

2019-04-25 20:38:45


Give a stringSSandNNstringT_iTi​, determine whetherT_iTi​is a subsequence ofSS.If ti is subsequence ofSS, printYES,else printNO.If there is an array\lbrace K_1, K_2, K_3,\cdots, K_m \...

2019-04-20 19:53:13

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 at the bottom right corner, where grids should be ...

2019-04-20 19:34:47

Diverse Garland

time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a garland consisting ofnnlamps. Each lamp is colored red, green or blue....

2019-04-20 19:15:43


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 isaiai.For each integerkkranged from11...

2019-04-17 20:39:46


Time Limit:1 Second Memory Limit:65536 KBBaoBao is brewing a magical potion. To brew this potion,types of ingredients, whose rank ranges from 1 to, is needed. More precisely, for all, ...

2019-04-14 17:59:01

Thanks, TuSimple!

ime Limit:1 Second Memory Limit:65536 KBIn the very first sentence of the very first problem, we would like to give our sincere thanks to TuSimple, the sponsor of this contest.Founded in 20...

2019-04-14 17:56:19

Odd Gnome

题目描述According to the legend of Wizardry and Witchcraft, gnomes live in burrows underground, known as gnome holes. There they digup and eat the roots of plants, creating little heaps of earth around...

2019-04-13 17:20:04

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 planning to print the greeting card on the plotter.He...

2019-04-13 16:57:29


题目描述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 flight! Well, at least he wasn’t beat up by theairline ...

2019-04-12 23:43:53

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 the end of the English word like the following tabl...

2019-04-12 17:17:10


题目描述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 can toggle some bulbs by shooting his laser at th...

2019-04-10 21:12:52

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 rich quick by choosing the right numbers to win the ...

2019-04-10 20:47:51


勋章 我的勋章
  • 持之以恒
  • 勤写标兵Lv2