上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 60 下一页
摘要: 题意: 数竞选手小r最喜欢做的题型是数列大题,并且每一道都能得到满分。 你可能不相信,但其实他发现了一个结论:只要是数列,无论是给了通项还是给了递推式,无论定义多复杂,都可以被搞成等差数列。这样,只要他精通了等差数列,他就能做出任何数列题目。 等差数列是数列的一种。在等差数列中,任何相邻两项的差相等 阅读全文
posted @ 2019-06-08 23:44 YDDDD 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/912/F 题意: 动态规划(Dynamic programming,简称dp)是一种通过把原问题分解为相对简单的子问题的方式求解复杂问题的方法。例如,假设小x一步能爬1层或2层台阶,求小x爬n层台阶共有几种方法,就可以用 阅读全文
posted @ 2019-06-08 23:41 YDDDD 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/912/B 题意: 链接:https://ac.nowcoder.com/acm/contest/912/B来源:牛客网 CUST的队员打完省赛后,小r带着大家去打保龄球。 保龄球是一项难度非常高的游戏,然而这根本难不住校 阅读全文
posted @ 2019-06-08 23:38 YDDDD 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codeforces.com/contest/1173/problem/C 题意: Nauuo is a girl who loves playing cards. One day she was playing cards but found that the cards w 阅读全文
posted @ 2019-06-08 15:56 YDDDD 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codeforces.com/contest/1173/problem/B 题意: Nauuo is a girl who loves playing chess. One day she invented a game by herself which needs nn ch 阅读全文
posted @ 2019-06-08 15:50 YDDDD 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codeforces.com/contest/1173/problem/A 题意: Nauuo is a girl who loves writing comments. One day, she posted a comment on Codeforces, wonderin 阅读全文
posted @ 2019-06-08 15:47 YDDDD 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/904/B 题意: DongDong每年过春节都要回到老家探亲,然而DongDong记性并不好,没法想起谁是谁的亲戚(定义:若A和B是亲戚,B和C是亲戚,那么A和C也是亲戚),她只好求助于会编程的你了。 思路: 并查集模板 阅读全文
posted @ 2019-06-07 23:27 YDDDD 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/904/A 题意: DongDong是一个喜欢密码学的女孩子,她养的萨摩耶叼着一张带着加密信息的纸条交给了她,如果她不能破解这张密码,萨摩耶是不会高兴的。 给定n,m,给出长度为n的01串,每次向后移动一位,移动m-1次, 阅读全文
posted @ 2019-06-07 23:25 YDDDD 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codeforces.com/contest/1175/problem/B 题意: You are given a function ff written in some basic language. The function accepts an integer value 阅读全文
posted @ 2019-06-06 12:04 YDDDD 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 链接:https://codeforces.com/contest/1175/problem/A 题意: You are given an integer nn and an integer kk. In one step you can do one of the following moves: 阅读全文
posted @ 2019-06-06 12:03 YDDDD 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 60 下一页