
思维
破晓aa
这个作者很懒,什么都没留下…
展开
-
Palindromes HihoCoder - 1878(找规律)
Recently, Nvoenewr learnt palindromes in his class.A palindrome is a nonnegative integer that is the same when read from left to right and when read from right to left. For example, 0, 1, 2, 11, 99,...原创 2018-11-20 08:46:41 · 406 阅读 · 1 评论 -
Frog and Portal HihoCoder - 1873(思维)
A small frog wants to get to the other side of a river. The frog is initially located at one bank of the river (position 0) and wants to get to the other bank (position 200). Luckily, there are 199 le...原创 2018-11-20 09:33:13 · 330 阅读 · 1 评论 -
Panoramic Photography Gym - 101149J(挺有意思的一个思维题)
Most of the students of the law school prefer visiting photo club to the competitions in Roman law. Members of the photo club visit different interesting places, take photos of each other in front of ...原创 2018-11-28 20:04:19 · 213 阅读 · 0 评论 -
怪盗基德 & 月之瞳宝石(二分)
题目链接:传送门时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld题目描述在这片寂静的夜色之下,他就这样静静的降临在我的面前,他的眼神就好像能看透了一切,露出了无所畏惧的笑容。一袭白斗篷和一顶白礼帽,不带一丝多余的动作,他的脸在单眼眼睛跟逆光之下。 ...原创 2019-01-01 20:36:37 · 1070 阅读 · 0 评论 -
Codeforces Round #529 (Div. 3) E. Almost Regular Bracket Sequence
You are given a bracket sequence原创 2019-01-02 10:12:46 · 435 阅读 · 0 评论 -
Codeforces Round #531 E. Monotonic Renumeration(思维题)
题目链接题意:给出一个a数组,让你构建b数组,要求满足下列条件:b1=0;for every pair of indices i and j such that 1≤i,j≤n, if ai=aj, then bi=bj (note that if ai≠aj, it is still possible that bi=bj);for every index i∈[1,n−1] ei...原创 2019-01-13 15:50:13 · 256 阅读 · 0 评论 -
Codeforces Round #531 (Div. 3) D. Balanced Ternary String (思维)
You are given a string s consisting of exactly n characters, and each character is either ‘0’, ‘1’ or ‘2’. Such strings are called ternary strings.Your task is to replace minimum number of characters...原创 2019-01-10 11:27:38 · 382 阅读 · 0 评论