上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: D. Too Easy Problems time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Too Easy Problem 阅读全文
posted @ 2018-01-17 11:35 hit_yjl 阅读(346) 评论(0) 推荐(0)
摘要: 对于一个串S,当它同时满足如下条件时,它就是一个01偏串:1、只由0和1两种符组成;2、在S的每一个前缀中,0的个数不超过1的个数;3、S中0的个数和1的个数相等。现在给定01偏串S,请计算一下S在所有长度为n的01偏串中作为子串出现的次数的总和。由于结果比较大,结果对1e9+7取余后输出。样例解释 阅读全文
posted @ 2017-11-26 21:42 hit_yjl 阅读(245) 评论(0) 推荐(0)
摘要: 给定一个自然数N,找出一个M,使得M > 0且M是N的倍数,并且M的10进制表示只包含0或1。求最小的M。 例如:N = 4,M = 100。 给定一个自然数N,找出一个M,使得M > 0且M是N的倍数,并且M的10进制表示只包含0或1。求最小的M。 例如:N = 4,M = 100。 例如:N = 阅读全文
posted @ 2017-11-26 10:46 hit_yjl 阅读(223) 评论(0) 推荐(0)
摘要: 问题描述:将x个相同的物品分成y坨(允许空坨,考虑坨的顺序),方案总数为C(x + y - 1, x)。 百度了一下发现这个东西叫可重排列。现在会两种证明方法。 (1)相当于把x个物品和y - 1个隔板这x + y - 1个元素随机排列,那么排完后每一种排列都实际上都是一种分配方案,所以答案为C(x 阅读全文
posted @ 2017-11-25 18:31 hit_yjl 阅读(729) 评论(0) 推荐(0)
摘要: Problem Description There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful string pa 阅读全文
posted @ 2017-11-23 16:02 hit_yjl 阅读(160) 评论(0) 推荐(0)
摘要: 数据结构实验这周末交 明天大物实验 matlab大作业 概率论教材 csapp教材 下周二英语presentation 补暑假题 数据结构教材 阅读全文
posted @ 2017-11-21 23:43 hit_yjl 阅读(119) 评论(0) 推荐(0)
摘要: How Many Answers Are Wrong Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10432 Accepted Submiss 阅读全文
posted @ 2017-11-21 23:35 hit_yjl 阅读(178) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-11-19 14:18 hit_yjl 阅读(0) 评论(0) 推荐(0)
摘要: F. Connecting Vertices time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output There are n point 阅读全文
posted @ 2017-11-11 23:59 hit_yjl 阅读(334) 评论(0) 推荐(0)
摘要: G. Xor-MST time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output G. Xor-MST time limit per tes 阅读全文
posted @ 2017-11-10 18:21 hit_yjl 阅读(427) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页