随笔分类 - 题库—牛客
摘要:链接:https://ac.nowcoder.com/acm/contest/9977/B 来源:牛客网 题目描述 牛牛有一个长和高都为为nn的网格三角形,牛牛想从从左下角点走到右上角点,但是牛牛只能向上或者向右沿着网格的边走,牛牛想知道从左下角点走到右上角点的方案数的奇偶性。牛牛现在给你nn,请你
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/9925/D 来源:牛客网 题目描述 As a world-famous traveler, Prof. Pang's research interest is to travel as many places as po
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/9925/M 来源:牛客网 题目描述 Your git project (you don't need to be familiar with git to solve this problem) has some fil
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/9925/I 来源:牛客网 题目描述 Prof. Du and Prof. Pang plan to build a sky garden near the city of Allin. In the garden, th
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/2970/A 来源:牛客网 题目描述 给出一个长度为n的操作序列。每个位置为“&”,“|”,“”中的一个。&表示按位与,|表示按位或,表示按位异或。 定义一个长度为n+1的01数列(即该数列只包含0和1)是合法的,当且仅当
阅读全文
摘要:题目描述 Garrison and Anderson are working in a company named “Adjustment Office”. In competing companies workers change the reality, in this company they
阅读全文
摘要:题目描述 The kingdom of Lazyland is the home to n idlers. These idlers are incredibly lazy and create many problems to their ruler, the mighty King of Laz
阅读全文
摘要:坑比输入,比赛时没A掉可惜了 题目描述 这里有一棵树,每个点和每条边都存在一个价值。对于树上点对的价值,包括点对的起点和终点以及路径上边权值之和,不包括路径上其他点值。 求这颗树上最大的点对价值为多少。点对至少需要两个点。 输入描述: 输入t,代表有t组样例。每组样例第一行输入n,代表有n个点。接下
阅读全文
摘要:https://ac.nowcoder.com/acm/contest/5758#description 做的迟了+只会水题.jpg 剩下的咕咕咕慢慢补 A. 题目描述 这里有一棵树,每个点和每条边都存在一个价值。对于树上点对的价值,包括点对的起点和终点以及路径上边权值之和,不包括路径上其他点值。
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/549/C来源:牛客网 题目描述 小A最近开始沉迷买彩票,并且希望能够通过买彩票发家致富。已知购买一张彩票需要3元,而彩票中奖的金额分别为1,2,3,4元,并且比较独特的是这个彩票中奖的各种金额都是等可能的。现在小A连续购
阅读全文