![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
文章平均质量分 83
Hold_My_Own
When the dust settles, and it will, we'll see.
展开
-
(HDU - 1896)Stones
(HDU - 1896)Stones Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some games this原创 2017-08-25 17:54:30 · 348 阅读 · 0 评论 -
(SGU - 115)Calendar
(SGU - 115)Calendartime limit per test: 0.25 sec.memory limit per test: 4096 KBFirst year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the wee原创 2017-09-18 10:41:21 · 404 阅读 · 0 评论 -
(CodeForces - 734D)Anton and Chess
(CodeForces - 734D)Anton and Chess Anton likes to play chess. Also, he likes to do programming. That is why he decided to write the program that plays chess. However, he finds the game on 8 to 8 board to too si原创 2017-09-07 19:30:41 · 267 阅读 · 0 评论 -
(HDU - 1597)find the nth digit
(HDU - 1597)find the nth digit 假设:S1 = 1S2 = 12S3 = 123S4 = 1234.........S9 = 123456789S10 = 1234567891S11 = 12345678912............S18 = 123456789123456789..................现在我们把所有的串连接起来S = 112123原创 2017-09-07 15:57:26 · 296 阅读 · 0 评论 -
(CodeForces - 598B)Queries on a String
(CodeForces - 598B)Queries on a StringYou are given a string s and should process m queries. Each query is described by two 1-based indices li, ri and integer ki. It means that you should cyclically shift the s原创 2017-09-07 08:02:25 · 386 阅读 · 0 评论 -
(CodeForces - 600C)Make Palindrome
(CodeForces - 600C)Make Palindrome A string is called palindrome if it reads the same from left to right and from right to left. For example "kazak", "oo", "r" and "mikhailrubinchikkihcniburliahkim" are palindr原创 2017-09-14 21:37:50 · 273 阅读 · 0 评论 -
(CodeForces - 600A)Extract Numbers
(CodeForces - 600A)Extract Numbers You are given string s. Let's call word any largest sequence of consecutive symbols without symbols ',' (comma) and ';' (semicolon). For example, there are four words in strin原创 2017-09-14 21:17:15 · 265 阅读 · 0 评论 -
(UVA - 11995)I Can Guess the Data Structure!
(UVA - 11995)I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations:`1 x Throw an element x into the bag. ``2 Take out an element from the bag.`Given a sequence of oper原创 2017-08-27 10:40:12 · 334 阅读 · 0 评论 -
(POJ - 1068)Parencodings
(POJ - 1068)ParencodingsLet S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: q By an integer sequence P = p1 p2...pn where pi is the number of left parentheses be原创 2017-08-26 15:43:54 · 288 阅读 · 0 评论 -
(CodeForces - 527C)Glass Carving
(CodeForces - 527C)Glass CarvingLeonid wants to become a glass carver (the person who creates beautiful artworks by cutting the glass). He already has a rectangular w mm × h mm sheet of glass, a diamond glass原创 2017-09-04 11:19:49 · 390 阅读 · 0 评论 -
(CodeForces - 825B)Five-In-a-Row
(CodeForces - 825B)Five-In-a-Row Alice and Bob play 5-in-a-row game. They have a playing field of size 10 × 10. In turns they put either crosses or noughts, one at a time. Alice puts crosses and Bob puts nought原创 2017-08-25 20:12:14 · 305 阅读 · 0 评论 -
(CodeForces - 831A)Unimodal Array
(CodeForces - 831A)Unimodal Array Array of integers is unimodal, if:it is strictly increasing in the beginning;after that it is constant;after that it is strictly decreasing.The first block (increasing) an原创 2017-08-25 19:43:18 · 290 阅读 · 0 评论 -
(HDU - 4841)圆桌问题
(HDU - 4841)圆桌问题 圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之后,圆桌上围坐的剩余的n个人全是好人。原创 2017-08-25 19:09:03 · 432 阅读 · 0 评论 -
(HDU - 1022)Train Problem I
(HDU - 1022)Train Problem I As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is the原创 2017-08-25 18:34:49 · 201 阅读 · 0 评论 -
(CodeForces - 612C)Replace To Make Regular Bracket Sequence
(CodeForces - 612C)Replace To Make Regular Bracket Sequence You are given string s consists of opening and closing brackets of four kinds <>, {}, [], (). There are two types of brackets: opening and closing. Yo原创 2017-09-28 21:18:05 · 317 阅读 · 0 评论