摘要: 题目There are lots of number games for children. These games are pretty easy to play but not so easy tomake. We will discuss about an interesting game h 阅读全文
posted @ 2022-02-17 12:04 Benincasa 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 题目We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, ‘racecar’ is a palindrome, but ‘fastc 阅读全文
posted @ 2022-02-17 11:10 Benincasa 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 题目(If you smiled when you see the title, this problem is for you ^_^)For those who don’t know KTV, see: http://en.wikipedia.org/wiki/Karaoke_boxThere 阅读全文
posted @ 2022-02-17 10:45 Benincasa 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 题目n sprinklers are installed in a horizontal strip of grass l meters long and w meters wide. Each sprinkleris installed at the horizontal center line 阅读全文
posted @ 2022-02-17 10:31 Benincasa 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 题目Consider an integer sequence consisting of N elements whereX1 = 1X2 = 2X3 = 3Xi = (Xi−1 + Xi−2 + Xi−3)%M + 1 for i = 4 to NFind 2 values a and b so 阅读全文
posted @ 2022-02-17 10:08 Benincasa 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 题目You have a maze with obstacles and non-zero digits in it:You can start from any square, walk in the maze, and finally stop at some square. Each step 阅读全文
posted @ 2022-02-07 00:45 Benincasa 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 题目 At the children's day, the child came to Picks's house, and messed his house up. Picks was angry at him. A lot of important things were lost, in pa 阅读全文
posted @ 2022-02-07 00:22 Benincasa 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 题目 You are given circular array a0, a1, ..., an - 1. There are two types of operations with it: inc(lf, rg, v) — this operation increases each element 阅读全文
posted @ 2022-02-07 00:10 Benincasa 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 题目In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjac 阅读全文
posted @ 2022-02-07 00:02 Benincasa 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 题目题目描述 原题来自:AHOI 2009 老师交给小可可一个维护数列的任务,现在小可可希望你来帮他完成。 有长为 n 的数列,不妨设为 a1,a2,⋯ ,ana_1,a_2,\cdots ,a_na1​,a2​,⋯,an​。有如下三种操作形式: 把数列中的一段数全部乘一个值; 把数列中的一段数全部 阅读全文
posted @ 2022-02-06 23:38 Benincasa 阅读(45) 评论(0) 推荐(0) 编辑