上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 49 下一页
摘要: We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a regular brac 阅读全文
posted @ 2019-05-06 22:26 black_hole6 阅读(374) 评论(0) 推荐(0)
摘要: One curious child has a set of N little bricks. From these bricks he builds different staircases. Staircase consists of steps of different sizes in a 阅读全文
posted @ 2019-05-06 21:49 black_hole6 阅读(207) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/893/F来源:牛客网 输出描述: 示例1 输入 复制 2 5 1 00101 2 1 01 输出 复制 4 2 说明 第一个串翻转第三个位置,00001的价值为4;第二个串翻转第一个位置,11的价值为2。思路:记录每个串 阅读全文
posted @ 2019-05-06 20:38 black_hole6 阅读(264) 评论(0) 推荐(0)
摘要: The cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 <= K <= 400) dif 阅读全文
posted @ 2019-05-06 19:54 black_hole6 阅读(302) 评论(0) 推荐(0)
摘要: linux在当前目录下新建文件需要的命令是mkdir 文件名 然后进入新建的文件的命令是cd 文件名 返回上一层是cd .. 新建一个c语言程序的过程是先打开vim 编译器 ,然后写完后进行输入esc 输入:w进行保存 再输入:q进行退出然后进行编译链接,主要的命令是gcc -c 文件名.c。编译结 阅读全文
posted @ 2019-05-06 17:48 black_hole6 阅读(451) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/893/C来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C 阅读全文
posted @ 2019-05-05 23:33 black_hole6 阅读(462) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/893/D来源:牛客网 题目描述 有n堆石子排成一排,第i堆石子有aiai个石子。 每次,你可以选择任意相邻的两堆石子进行合并,合并后的石子数量为两堆石子的和,消耗的体力等价于两堆石子中石子数少的那个。 请问,将所有的石子 阅读全文
posted @ 2019-05-05 22:25 black_hole6 阅读(273) 评论(0) 推荐(0)
摘要: The math faculty of Berland State University has suffered the sudden drop in the math skills of enrolling students. This year the highest grade on the 阅读全文
posted @ 2019-05-04 17:44 black_hole6 阅读(191) 评论(0) 推荐(0)
摘要: 题目描述 模拟程序型计算器,依次输入指令,可能包含的指令有1. 数字:'NUM X',X为一个只包含大写字母和数字的字符串,表示一个当前进制的数2. 运算指令:'ADD','SUB','MUL','DIV','MOD',分别表示加减乘,除法取商,除法取余3. 进制转换指令:'CHANGE K',将当 阅读全文
posted @ 2019-05-04 17:03 black_hole6 阅读(490) 评论(0) 推荐(0)
摘要: 小明的实验室有N台电脑,编号1~N。原本这N台电脑之间有N-1条数据链接相连,恰好构成一个树形网络。在树形网络上,任意两台电脑之间有唯一的路径相连。不过在最近一次维护网络时,管理员误操作使得某两台电脑之间增加了一条数据链接,于是网络中出现了环路。环路上的电脑由于两两之间不再是只有一条路径,使得这些电 阅读全文
posted @ 2019-05-04 00:42 black_hole6 阅读(365) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 49 下一页