原创 CodeForce 890A ACM ICPC

Description: In a small but very proud high school it was decided to win ACM ICPC. This goal requires to compose as

原创 CodeForces 893C Rumor

Description: Vova promised himself that he would never play computer games... But recently Firestorm — a well-known

原创 CodeForces 888A Local Extrema

Description: You are given an array a. Some element of this array ai is a local minimum iff it is strictly less than

原创 POJ 2031 Building a Space Station

Description: You are a member of the space station engineering team, and are assigned a task in the construction proc

原创 CodeForces 888C Dominant Character

Description: You are given a string s consisting of lowercase Latin letters. Character c is called k-dominant iff ea

原创 CodeForces 890C Petya and Catacombs

Description A very brave explorer Petya once decided to explore Paris catacombs. Since Petya is not really experienc

原创 CodeForces 893A Chess For Three

Description: Alex, Bob and Carl will soon participate in a team chess tournament. Since they are all in the same tea

原创 POJ 3126 Prime Path

Description: The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they

原创 CodeForces 888B Buggy Robot

Description: Ivan has a robot which is situated on an infinite grid. Initially the robot is standing in the starting

原创 CodeForces 890B Vald and Cafes

Description: Vlad likes to eat in cafes very much. During his life, he has visited cafes n times. Unfortunately, Vl

原创 CodeForces 888D Almost Identity Permutations

Description: A permutation p of size n is an array such that every integer from 1 to n occurs exactly once in this

原创 POJ 2421 Constructing Roads

Description: There are N villages, which are numbered from 1 to N, and you should build some roads such that every tw

原创 POJ 1287 Networking

Description: You are assigned to design network connections between certain points in a wide area. You are given a se

原创 藍橋杯 歷年真題 觀光鐵路(JAVA實現非正解瞎寫騙分)

問題描述   跳蚤國正在大力發展旅遊業,每個城市都被打造成了旅遊景點。   許多跳蚤想去其他城市旅遊,但是由於跳得比較慢,它們的願望難以實現。這時,小C聽說有一種叫做火車的交通工具,在鐵路上跑得很快,便抓住了商機,創立了一家鐵路公司,向跳

原创 HDU 5973 Wrestling Match

Description: Nowadays, at least one wrestling match is held every year in our country. There are a lot of people in the