Loading

上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 75 下一页
摘要: The map of Bertown can be represented as a set of nn intersections, numbered from 11 to nn and connected by mm one-way roads. It is possible to move a 阅读全文
posted @ 2020-03-03 23:15 脂环 阅读(126) 评论(0) 推荐(0) 编辑
摘要: You are given a string ss consisting of lowercase Latin letters. Let the length of ss be |s||s| . You may perform several operations on this string. I 阅读全文
posted @ 2020-03-03 00:59 脂环 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Tanya wants to go on a journey across the cities of Berland. There are nn cities situated along the main railroad line of Berland, and these cities ar 阅读全文
posted @ 2020-03-03 00:53 脂环 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Polycarp is preparing the first programming contest for robots. There are nn problems in it, and a lot of robots are going to participate in it. Each 阅读全文
posted @ 2020-03-03 00:47 脂环 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 有 NN 种物品和一个容量是 VV 的背包。 第 ii 种物品最多有 sisi 件,每件体积是 vivi,价值是 wiwi。 求解将哪些物品装入背包,可使物品体积总和不超过背包容量,且价值总和最大。 输出最大价值。 输入格式 第一行两个整数,N,VN,V,用空格隔开,分别表示物品种数和背包容积。 接 阅读全文
posted @ 2020-02-29 00:15 脂环 阅读(156) 评论(0) 推荐(0) 编辑
摘要: You are given three integers a≤b≤ca≤b≤c . In one move, you can add +1+1 or −1−1 to any of these integers (i.e. increase or decrease any number by one) 阅读全文
posted @ 2020-02-27 23:55 脂环 阅读(148) 评论(0) 推荐(0) 编辑
摘要: You want to perform the combo on your opponent in one popular fighting game. The combo is the string ss consisting of nn lowercase Latin letters. To p 阅读全文
posted @ 2020-02-27 22:37 脂环 阅读(221) 评论(0) 推荐(0) 编辑
摘要: output standard output You are given an array aa of length nn . You are also given a set of distinct positions p1,p2,…,pmp1,p2,…,pm , where 1≤pi<n1≤pi 阅读全文
posted @ 2020-02-27 18:35 脂环 阅读(275) 评论(0) 推荐(0) 编辑
摘要: You are given two positive integers aa and bb . In one move, you can change aa in the following way: Choose any positive odd integer xx (x>0x>0 ) and 阅读全文
posted @ 2020-02-27 14:57 脂环 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 题目描述 某地临时居民想获得长期居住权就必须申请拿到红牌。获得红牌的过程是相当复杂 ,一共包括NNN个步骤。每一步骤都由政府的某个工作人员负责检查你所提交的材料是否符合条件。为了加快进程,每一步政府都派了MMM个工作人员来检查材料。不幸的是,并不是每一个工作人员效率都很高。尽管如此,为了体现“公开政 阅读全文
posted @ 2020-02-26 23:55 脂环 阅读(164) 评论(0) 推荐(0) 编辑
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 75 下一页