YunYan

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页

2019年9月22日

摘要: https://www.luogu.org/problem/P1162 由数字00组成的方阵中,有一任意形状闭合圈,闭合圈由数字11构成,围圈时只走上下左右44个方向。现要求把闭合圈内的所有空间都填写成22.例如:6 \times 66×6的方阵(n=6n=6),涂色前和涂色后的方阵如下: 0 0 阅读全文
posted @ 2019-09-22 10:44 Target--fly 阅读(136) 评论(0) 推荐(0) 编辑

2019年9月21日

摘要: A group of N people wishes to go across a river with only one boat, which can at most carry two persons. Therefore some sort of shuttle arrangement mu 阅读全文
posted @ 2019-09-21 22:23 Target--fly 阅读(199) 评论(0) 推荐(0) 编辑

2019年9月20日

摘要: You may have already known that a standard ICPC team consists of exactly three members. The perfect team however has more restrictions. A student can 阅读全文
posted @ 2019-09-20 17:36 Target--fly 阅读(387) 评论(0) 推荐(0) 编辑

2019年9月18日

摘要: https://www.luogu.org/problem/P1903 后台数据太强了,只得了60分 题目描述 墨墨购买了一套N支彩色画笔(其中有些颜色可能相同),摆成一排,你需要回答墨墨的提问。墨墨会向你发布如下指令: 1、 Q L R代表询问你从第L支画笔到第R支画笔中共有几种不同颜色的画笔。 阅读全文
posted @ 2019-09-18 20:34 Target--fly 阅读(136) 评论(0) 推荐(0) 编辑

2019年9月17日

摘要: 连接 https://ac.nowcoder.com/acm/contest/1085/G 链接:https://ac.nowcoder.com/acm/contest/1085/G来源:牛客网 题目描述 小sun最近突然对区间来了兴趣,现在他有这样一个问题想问问你: 给你n个数,每个数为aia_i 阅读全文
posted @ 2019-09-17 14:36 Target--fly 阅读(421) 评论(0) 推荐(0) 编辑

2019年9月13日

摘要: http://www.51nod.com/Challenge/TopicProblemList.html#topicId=291 二分答案思路就是先确定好答案的范围,一般越大越好,去个left为答案的最小取值,right为答案的最大取值 然后二分,,同时判断当前状态时候满足答案,如果满足的话,还要考 阅读全文
posted @ 2019-09-13 21:03 Target--fly 阅读(364) 评论(0) 推荐(0) 编辑

2019年9月11日

摘要: All of us love treasures, right? That's why young Vasya is heading for a Treasure Island. Treasure Island may be represented as a rectangular table n× 阅读全文
posted @ 2019-09-11 23:33 Target--fly 阅读(203) 评论(0) 推荐(0) 编辑

摘要: 例题1 1010 只包含因子2 3 5的数 http://www.51nod.com/Challenge/Problem.html#problemId=1010 K的因子中只包含2 3 5。满足条件的前10个数是:2,3,4,5,6,8,9,10,12,15。 所有这样的K组成了一个序列S,现在给出 阅读全文
posted @ 2019-09-11 17:52 Target--fly 阅读(161) 评论(0) 推荐(0) 编辑

2019年9月7日

摘要: 勾股定理 : 当其中一个数a大于1并且为奇数时即a=2*n+1, 那么另外两个数分别为 b=2*n*n+2*n; c=b+1; 当a为大于等于4的偶数时,即a=2*n时,那么另外两个数分别为 b=n*n-1 c=n*n+1; 阅读全文
posted @ 2019-09-07 09:54 Target--fly 阅读(203) 评论(0) 推荐(0) 编辑

2019年9月6日

摘要: 链接:https://ac.nowcoder.com/acm/contest/1083/A来源:牛客网 给出一个字符串s,你需要做的是统计s中子串”abc”的个数。子串的定义就是存在任意下标a<b<c,那么”s[a]s[b]s[c]”就构成s的一个子串。如”abc”的子串有”a”、”b”、”c”、” 阅读全文
posted @ 2019-09-06 23:05 Target--fly 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页