博客园 首页 私信博主 显示目录 隐藏目录 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: Coffee and Coursework (Hard Version) time limit per test 2.5 seconds memory limit per test 256 megabytes input standard input output standard output C 阅读全文
posted @ 2019-03-03 15:35 Brave_WTZ 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Coffee and Coursework (Easy version) time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Coff 阅读全文
posted @ 2019-03-03 12:49 Brave_WTZ 阅读(489) 评论(0) 推荐(0) 编辑
摘要: Palindromic Matrix time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Palindromic Matrix ti 阅读全文
posted @ 2019-03-03 00:00 Brave_WTZ 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Tanya and Candies time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Tanya and Candies time 阅读全文
posted @ 2019-03-02 17:44 Brave_WTZ 阅读(229) 评论(0) 推荐(1) 编辑
摘要: Water Buying time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Water Buying time limit per 阅读全文
posted @ 2019-03-01 23:51 Brave_WTZ 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 很久以前,T王国空前繁荣。为了更好地管理国家,王国修建了大量的快速路,用于连接首都和王国内的各大城市。 为节省经费,T国的大臣们经过思考,制定了一套优秀的修建方案,使得任何一个大城市都能从首都直接或者通过其他大城市间接到达。 同时,如果不重复经过大城市,从首都到达每个大城市的方案都是唯一的。 J是T 阅读全文
posted @ 2019-03-01 23:03 Brave_WTZ 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 如图p1.jpg所示,3 x 3 的格子中填写了一些整数。 我们沿着图中的红色线剪开,得到两个部分,每个部分的数字和都是60。 本题的要求就是请你编程判定:对给定的m x n 的格子中的整数,是否可以分割为两个部分,使得这两个区域的数字和相等。 如果存在多种解答,请输出包含左上角格子的那个区域包含的 阅读全文
posted @ 2019-03-01 17:08 Brave_WTZ 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 小明开了一家糖果店。他别出心裁:把水果糖包成4颗一包和7颗一包的两种。 糖果不能拆包卖。 小朋友来买糖的时候,他就用这两种包装来组合。当然有些糖果数目是无法组合出来的,比如要买 10 颗糖。 你可以用计算机测试一下,在这种包装情况下,最大不能买到的数量是17。大 于17的任何数字都可以用4和7组合出 阅读全文
posted @ 2019-03-01 15:50 Brave_WTZ 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 小李的店里专卖其它店中下架的样品电视机,可称为:样品电视专卖店。 其标价都是4位数字(即千元不等)。 小李为了标价清晰、方便,使用了预制的类似数码管的标价签,只要用颜色笔涂数字就可以了(参见p1.jpg)。 这种价牌有个特点,对一些数字,倒过来看也是合理的数字。如:1 2 5 6 8 9 0 都可以 阅读全文
posted @ 2019-03-01 09:45 Brave_WTZ 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 困难的串【题意】 如果一个字符串包含两个相邻的重复子串,则称它是“容易的串”,其他串称为“困难的串”。例如, BB、ABCDABCD都是容易的串,而D、DC、ABDAD、CBABCBA都是困难的串。 输入正整数n和L,输出由前L个字符组成的、字典序第k个困难的串。例如,当L=3时,前7个困难的串 分 阅读全文
posted @ 2019-03-01 09:27 Brave_WTZ 阅读(380) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页