自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)

原创 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 204

原创 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 131

原创 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 153

原创 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 103

原创 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, please tell us if it's a peak or not....

2019-04-27 13:12:40 73

原创 Frogger

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

2019-04-26 00:01:58 19

原创 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 22

原创 Subsequence

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 345

原创 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 80

原创 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 110

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

2019-04-17 20:39:46 43

原创 Potion

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 86

原创 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 161

原创 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 51

原创 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 67

原创 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 flight! Well, at least he wasn’t beat up by theairline ...

2019-04-12 23:43:53 66

原创 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 115

原创 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 can toggle some bulbs by shooting his laser at th...

2019-04-10 21:12:52 202

原创 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 34

原创 Congestion Charging Zone

题目描述Tehran municipality has set up a new charging method for the Congestion Charging Zone (CCZ) which controls the passage of vehicles in Tehran’s high-congestion areas in the congestion period (CP)...

2019-04-08 19:28:01 100

原创 Hakase and Nano

题目描述Hakase and Nano are playing an ancient pebble game (pebble is a kind of rock). There are n packsof pebbles, and the i-th pack contains ai pebbles. They take turns to pick up pebbles. In each tu...

2019-04-06 22:10:04 34

原创 Super-palindrome

题目描述You are given a string that is consisted of lowercase English alphabet. You are supposed to change itinto a super-palindrome string in minimum steps. You can change one character in string to a...

2019-04-06 19:49:46 73

原创 Master of GCD

题目描述Hakase has n numbers in a line. At fi rst, they are all equal to 1. Besides, Hakase is interested in primes. She will choose a continuous subsequence [l, r] and a prime parameter x each time and...

2019-04-06 19:04:35 35

原创 流连人间的苏苏

题目描述苏苏在做红尘仙的任务时,发现坐落于风景秀丽、四季如春的昆明市的云南中医学院。没过多久,苏苏就喜欢上了这个学校。以致于苏苏忘了回涂山的时间,现在她只剩下d天的时间待在云南中医学院。由于时间紧迫,苏苏想方设法为建设更好的云南中医学院。假设学校里某条街道有n个房子。每天选择两个门牌号l、r,给这两个门牌号之间的所有房子的门前都栽一棵树,已经有树的不需要再种。苏苏想知道在某天,...

2019-04-05 10:20:24 41

原创 不存在的泳池

小w是云南中医学院的同学,有一天他看到了学校的百度百科介绍:截止到2014年5月,云南中医学院图书馆纸本藏书74.8457万册,纸质期刊388种,馆藏线装古籍图书1.8万册,电子资源总量35TB,拥有中、外文数据库25个,电子图书29.5万册(镜像)、包库130万册。古籍线装图书1.8万余册,有39种列为本馆珍善本,如《彻滕八编》、《赵氏医贯》等明清版本、台湾文渊阁版本《四库全书》,按《全国古籍...

2019-04-05 09:43:56 33

原创 L2-032 彩虹瓶 (25 分)

彩虹瓶的制作过程(并不)是这样的:先把一大批空瓶铺放在装填场地上,然后按照一定的顺序将每种颜色的小球均匀撒到这批瓶子里。假设彩虹瓶里要按顺序装 N 种颜色的小球(不妨将顺序就编号为 1 到 N)。现在工厂里有每种颜色的小球各一箱,工人需要一箱一箱地将小球从工厂里搬到装填场地。如果搬来的这箱小球正好是可以装填的颜色,就直接拆箱装填;如果不是,就把箱子先码放在一个临时货架上,码放的方法就是一箱一箱...

2019-04-01 23:59:15 71

原创 L2-031 深入虎穴 (25 分)

著名的王牌间谍 007 需要执行一次任务,获取敌方的机密情报。已知情报藏在一个地下迷宫里,迷宫只有一个入口,里面有很多条通路,每条路通向一扇门。每一扇门背后或者是一个房间,或者又有很多条路,同样是每条路通向一扇门…… 他的手里有一张表格,是其他间谍帮他收集到的情报,他们记下了每扇门的编号,以及这扇门背后的每一条通路所到达的门的编号。007 发现不存在两条路通向同一扇门。内线告诉他,情报就藏在迷...

2019-04-01 20:38:56 56

空空如也

空空如也

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