随笔分类 - 题库—比赛/重现赛
摘要:Pang believes that one cannot make an omelet without breaking eggs. For a subset 𝐴A of {1,2,…,𝑛}{1,2,…,n}, we calculate the score of 𝐴A as follows:
阅读全文
摘要:链接: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
阅读全文
摘要:#2020计蒜之道 预赛第一场 A、B 链接:https://www.jisuanke.com/contest/11344/challenges ##A. 五子棋 枚举每个空格点的位置,然后判水平垂直以及两条对角线即可。判的时候可以沿那个方向往两边走,有连续棋子多于4个的话就获胜。 #include
阅读全文
摘要:#include <bits/stdc++.h> using namespace std; int a[1005][1005] = {0}, n, m; int main() { int t; cin >> t; while(t--) { memset(a, 0, sizeof(a)); cin >
阅读全文
摘要:https://www.jisuanke.com/contest/11360/challenges 其他题慢慢补 C. Pawn‘s Revenge You are playing a special chess game against a professor and you've almost
阅读全文
摘要:好,好难 https://ac.nowcoder.com/acm/contest/5477 A. 题目描述 天才程序员菜哭武和张老师有一天到一个城市旅游,旅途中菜哭武觉得无聊就想和张老师玩一个游戏。菜哭武有n个石子,每个石子都标有1到n之间到数,且各不相同,一开始他们会随机从这堆石子选一个石子放置到
阅读全文
摘要:https://ac.nowcoder.com/acm/contest/5758#description 做的迟了+只会水题.jpg 剩下的咕咕咕慢慢补 A. 题目描述 这里有一棵树,每个点和每条边都存在一个价值。对于树上点对的价值,包括点对的起点和终点以及路径上边权值之和,不包括路径上其他点值。
阅读全文