Loading

摘要: Returning back to problem solving, Gildong is now studying about palindromes. He learned that a palindrome is a string that is the same as its reverse 阅读全文
posted @ 2020-02-16 10:43 脂环 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Being tired of participating in too many Codeforces rounds, Gildong decided to take some rest in a park. He sat down on a bench, and soon he found two 阅读全文
posted @ 2020-02-16 10:34 脂环 阅读(289) 评论(0) 推荐(0) 编辑
摘要: Ayoub thinks that he is a very smart person, so he created a function f(s)f(s) , where ss is a binary string (a string which contains only symbols "0" 阅读全文
posted @ 2020-02-15 13:49 脂环 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 0.注意爆int有可能是ans+=(long long)a[x]*b*2;像这种语句如果没加(long long)就会升天。 1.看清数据范围,不开long long见祖宗。 2.不要乱用指针。 3.memset不要乱用,可能会T,同时不要用它初始化double数组等等。 4.每个test case 阅读全文
posted @ 2020-02-15 13:17 脂环 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but 阅读全文
posted @ 2020-02-15 00:02 脂环 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Dark is going to attend Motarack's birthday. Dark decided that the gift he is going to give to Motarack is an array aa of nn non-negative integers. Da 阅读全文
posted @ 2020-02-14 20:22 脂环 阅读(397) 评论(0) 推荐(2) 编辑
摘要: You are given three strings aa , bb and cc of the same length nn . The strings consist of lowercase English letters only. The ii -th letter of aa is a 阅读全文
posted @ 2020-02-14 20:12 脂环 阅读(378) 评论(0) 推荐(0) 编辑
摘要: Polycarp wants to assemble his own keyboard. Layouts with multiple rows are too complicated for him — his keyboard will consist of only one row, where 阅读全文
posted @ 2020-02-13 13:10 脂环 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Your company was appointed to lay new asphalt on the highway of length nn. You know that every day you can either repair one unit of the highway (lay 阅读全文
posted @ 2020-02-13 12:24 脂环 阅读(190) 评论(0) 推荐(0) 编辑
摘要: You are given a string ss. Each character is either 0 or 1. You want all 1's in the string to form a contiguous subsegment. For example, if the string 阅读全文
posted @ 2020-02-13 12:16 脂环 阅读(199) 评论(0) 推荐(0) 编辑