Loading

上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 75 下一页
摘要: 题目描述 如题,已知一个数列,你需要进行下面两种操作: 将某区间每一个数数加上 xxx; 求出某一个数的值。 输入格式 第一行包含两个整数 NNN、MMM,分别表示该数列数字的个数和操作的总个数。 第二行包含 NNN 个用空格分隔的整数,其中第 iii 个数字表示数列第 ii i 项的初始值。 接下 阅读全文
posted @ 2020-04-13 19:45 脂环 阅读(185) 评论(0) 推荐(0)
摘要: You have an array aa of length nn . For every positive integer xx you are going to perform the following operation during the xx -th second: Select so 阅读全文
posted @ 2020-04-13 11:06 脂环 阅读(351) 评论(0) 推荐(0)
摘要: You have array of nn numbers a1,a2,…,ana1,a2,…,an . Rearrange these numbers to satisfy |a1−a2|≤|a2−a3|≤…≤|an−1−an||a1−a2|≤|a2−a3|≤…≤|an−1−an| , where 阅读全文
posted @ 2020-04-13 10:50 脂环 阅读(266) 评论(0) 推荐(0)
摘要: You have integer nn. Calculate how many ways are there to fully cover belt-like area of 4n−24n−2 triangles with diamond shapes. Diamond shape consists 阅读全文
posted @ 2020-04-13 10:41 脂环 阅读(442) 评论(0) 推荐(0)
摘要: You are given a complete directed graph KnKn with nn vertices: each pair of vertices u≠vu≠v in KnKn have both directed edges (u,v)(u,v) and (v,u)(v,u) 阅读全文
posted @ 2020-04-12 16:32 脂环 阅读(273) 评论(0) 推荐(1)
摘要: You are playing another computer game, and now you have to slay nn monsters. These monsters are standing in a circle, numbered clockwise from 11 to nn 阅读全文
posted @ 2020-04-12 16:26 脂环 阅读(332) 评论(0) 推荐(1)
摘要: 题目描述 小凯手中有两种面值的金币,两种面值均为正整数且彼此互素。每种金币小凯都有 无数个。在不找零的情况下,仅凭这两种金币,有些物品他是无法准确支付的。现在小 凯想知道在无法准确支付的物品中,最贵的价值是多少金币?注意:输入数据保证存在 小凯无法准确支付的商品。 输入格式 两个正整数 aaa 和 阅读全文
posted @ 2020-04-11 16:38 脂环 阅读(295) 评论(0) 推荐(0)
摘要: Many years ago Berland was a small country where only nn people lived. Each person had some savings: the ii -th one had aiai burles. The government co 阅读全文
posted @ 2020-04-11 11:48 脂环 阅读(332) 评论(0) 推荐(0)
摘要: output standard output Polycarp has recently created a new level in this cool new game Berlio Maker 85 and uploaded it online. Now players from all ov 阅读全文
posted @ 2020-04-11 11:11 脂环 阅读(249) 评论(0) 推荐(0)
摘要: Adera是Microsoft应用商店中的一款解谜游戏。 异象石是进入Adera中异时空的引导物,在Adera的异时空中有一张地图。 这张地图上有N个点,有N-1条双向边把它们连通起来。 起初地图上没有任何异象石,在接下来的M个时刻中,每个时刻会发生以下三种类型的事件之一: 地图的某个点上出现了异象 阅读全文
posted @ 2020-04-10 17:42 脂环 阅读(263) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 75 下一页