上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 2019.5.16 二分:POJ - 3258 有一堆牛要过河,河的长度是l,河中间有n个石头,牛只能踩着石头过河,问去掉m个石头后(去掉这m个石头的方式是随机的)的每种情况牛能走的石头间距最小值中,最大的那一个是多少。 输入:25 5 2//河的长度,一共有几块石头,去掉m块 2 14 11 21 阅读全文
posted @ 2019-05-17 14:29 *starry* 阅读(351) 评论(2) 推荐(0) 编辑
摘要: Black & White · 题解: 阅读全文
posted @ 2019-05-05 20:54 *starry* 阅读(181) 评论(2) 推荐(0) 编辑
摘要: Little Sub and Johann 题目描述 Little Sub and Johann are good friends and they often play games together. Recently, they like playing with stones.They hav 阅读全文
posted @ 2019-05-04 22:15 *starry* 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Problem Arrangement ZOJ - 3777 The 11th Zhejiang Provincial Collegiate Programming Contest is coming! As a problem setter, Edward is going to arrange 阅读全文
posted @ 2019-04-22 21:41 *starry* 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 蓝桥杯 表格计算 某次无聊中, atm 发现了一个很老的程序。这个程序的功能类似于 Excel ,它对一个表格进行操作。不妨设表格有 n 行,每行有 m 个格子。每个格子的内容可以是一个正整数,也可以是一个公式。公式包括三种:1. SUM(x1,y1:x2,y2) 表示求左上角是第 x1 行第 y1 阅读全文
posted @ 2019-04-19 16:21 *starry* 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 蓝桥杯 穿越雷区 X星的坦克战车很奇怪,它必须交替地穿越正能量辐射区和负能量辐射区才能保持正常运转,否则将报废。某坦克需要从A区到B区去(A,B区本身是安全区,没有正能量或负能量特征),怎样走才能路径最短?已知的地图是一个方阵,上面用字母标出了A,B区,其它区都标了正号或负号分别表示正负能量辐射区。 阅读全文
posted @ 2019-04-19 10:01 *starry* 阅读(411) 评论(0) 推荐(0) 编辑
摘要: Query on A Tree HDU - 6191 Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 132768/132768 K (Java/Others)Total Submission(s): 1732 Accepted Subm 阅读全文
posted @ 2019-04-14 09:38 *starry* 阅读(250) 评论(0) 推荐(0) 编辑
摘要: A Game Between Alice and Bob zoj-3529 Alice and Bob play the following game. A series of numbers is written on the blackboard. Alice and Bob take turn 阅读全文
posted @ 2019-04-06 20:20 *starry* 阅读(188) 评论(0) 推荐(0) 编辑
摘要: CSL 的字符串 题解: 从前往后扫一遍 如果当前这个字符本身就是到当前为止第一次出现的,那肯定要留下它吧,就把它放到ans数组里面,并且把这个字母的个数减一(最开始统计的每个字母出现的个数相当于每个字母的剩余个数)然后从这个字母开始遍历ans数组中该字母前面的所有字母 ,如果前面的字母的字典序大于 阅读全文
posted @ 2019-04-01 16:29 *starry* 阅读(233) 评论(0) 推荐(0) 编辑
摘要: String painter HDU - 2476 There are two strings A and B with equal length. Both strings are made up of lower case letters. Now you have a powerful str 阅读全文
posted @ 2019-03-28 17:07 *starry* 阅读(384) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页