1 zzzzzBelial
尚未进行身份认证
暂无相关简介
题目描述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...
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...
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...
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...
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 ...
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....
传送门解题思路：输入n个点的坐标，第一个为始点，第二个位终点，其余的点都是这两点之间的点，求从起始点到终点的所有路径中最大边的最小的一个。解题思路：单源最短路的变形直接改SPFA就可以dis[i]在本题的意思是，点i到起来路径中最大的路径，if(dis[j] > max(dis[i],a[i][j])){ dis[j] = max(dis[...
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...
Give a stringSSandNNstringT_iTi, determine whetherT_iTiis 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 \...
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 ...
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a garland consisting ofnnlamps. Each lamp is colored red, green or blue....
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...
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, ...
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...
题目描述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...
题目描述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...
题目描述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 ...
题目描述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...
题目描述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...
题目描述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 ...