随笔分类 -  模拟

摘要:A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome becau 阅读全文
posted @ 2017-11-30 20:57 Zireael 阅读(221) 评论(0) 推荐(0)
摘要:Eddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divided into the multiply of p 阅读全文
posted @ 2017-11-30 19:58 Zireael 阅读(142) 评论(0) 推荐(0)
摘要:A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits which are set. Here's a 4 阅读全文
posted @ 2017-11-30 19:24 Zireael 阅读(231) 评论(0) 推荐(0)
摘要:Hands that shed innocent blood! There are n guilty people in a line, the i th of them holds a claw with length Li. The bell rings and every person kil 阅读全文
posted @ 2017-11-27 21:08 Zireael 阅读(303) 评论(0) 推荐(0)
摘要:You are given a string s consisting of lowercase Latin letters. Character c is called k dominant iff each substring of s with length at least k contai 阅读全文
posted @ 2017-11-26 19:32 Zireael 阅读(432) 评论(0) 推荐(0)
摘要:题目描述 有一块n m的地,每块地要么长满杂草(用'W'表示),要么是空地(用'G'表示),现在有一个人站在(1,1),面向(1,m),他可以按如下两种方式移动: 1、向面朝的方向移动一格,耗费1单位时间 2、向下移动一格,并反转面朝的方向(右变左,左变右),耗费1单位时间 现在他想知道清除所有的杂 阅读全文
posted @ 2017-11-25 20:28 Zireael 阅读(259) 评论(0) 推荐(0)
摘要:Problem Description A permutation p1,p2,...,pn of 1,2,...,n is called a lucky permutation if and only if pi≡0(mod|pi−pi−2|) for i=3...n. Now you need 阅读全文
posted @ 2017-11-12 09:32 Zireael 阅读(759) 评论(0) 推荐(0)
摘要:Recently, Dima met with Sasha in a philatelic store, and since then they are collecting coins together. Their favorite occupation is to sort collectio 阅读全文
posted @ 2017-10-29 15:32 Zireael 阅读(216) 评论(0) 推荐(0)
摘要:There are some ambiguities when one writes Berland names with the letters of the Latin alphabet. For example, the Berland sound u can be written in th 阅读全文
posted @ 2017-10-26 14:18 Zireael 阅读(277) 评论(0) 推荐(0)
摘要:Polycarp has interviewed Oleg and has written the interview down without punctuation marks and spaces to save time. Thus, the interview is now a strin 阅读全文
posted @ 2017-10-21 09:07 Zireael 阅读(184) 评论(0) 推荐(0)
摘要:Exponential notation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a pos 阅读全文
posted @ 2017-08-06 17:22 Zireael 阅读(252) 评论(0) 推荐(0)