
日常训练
日常训练
olamins_
退役acmer
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2020牛客多校第二场H-Happy Triangle (动态开点线段树&SET)
时间限制:C/C++ 2秒,其他语言4秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Given a multiset MS{MS}MS and q{q}q operations. MS{MS}MS is empty initailly, and operations are in three types, which are as follows:1. insert an element x{x}x into MS{MS}...原创 2020-09-24 17:06:49 · 181 阅读 · 0 评论 -
牛客练习赛68 C-牛牛的无向图 (MST&边贡献)
时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述牛牛有一张 n 个点,m 条边的无向图,每条边有一个边权 wiw_iwi我们定义一条路径的权值是这个路径包含的边的权值的最大值。定义 d(u,v) 表示在无向图中点 u 能到达点 v 的所有路径中权值最小的路径的权值现在牛牛给你 q 次询问,每次询问给出一个 L ,询问 ∑i=1n∑j=i+1n[d(i,j)≤L]\sum_{i...原创 2020-08-28 22:00:10 · 491 阅读 · 0 评论 -
The 2019 ICPC Asia Shanghai Regional Contest(重现赛) M-Blood Pressure Game(费用流&算贡献)
链接:https://ac.nowcoder.com/acm/contest/4370/M来源:牛客网题目描述1Gugulu, a JBer, who was an ACMer one year ago, comes to Shanghai University taking part in the International Collegiate Programming Contest again. However, every time when Gugulu came to Shangh.原创 2020-07-27 11:01:51 · 683 阅读 · 0 评论 -
#牛客网 2018年牛客多校算法寒假训练营练习比赛(第四场)图论 + 地图搜索题解
A-石油采集题目描述随着海上运u输石油泄漏的问题,一个新的有利可图的行业正在诞生,那就是撇油行业。如今,在墨西哥湾漂浮的大量石油,吸引了许多商人的目光。这些商人们有一种特殊的飞机,可以一瓢略过整个海面20米乘10米这么大的长方形。(上下相邻或者左右相邻的格子,不能斜着来)当然,这要求一瓢撇过去的全部是油,如果一瓢里面有油有水的话,那就毫无意义了,资源完全无法利用。现在,商人想要知道,在这片...原创 2019-07-02 13:52:44 · 1267 阅读 · 0 评论 -
#牛客网 2018年牛客多校算法寒假训练营练习比赛(第五场)
A-逆序数题目描述在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。比如一个序列为4 5 1 3 2, 那么这个序列的逆序数为7,逆序对分别为(4, 1), (4, 3), (4, 2), (5, 1), (5, 3), (5, 2),(3, 2)。输入描述:第一行有一个整数n(1 ...原创 2019-07-04 15:46:56 · 385 阅读 · 0 评论 -
#牛客网 牛客假日团队赛5
A-Bad Hair Day题目描述Some of Farmer John's N cows (1 ≤ N ≤ 80,000) are having a bad hair day! Since each cow is self-conscious about her messy hairstyle, FJ wants to count the number of other cow...原创 2019-07-08 15:22:09 · 386 阅读 · 0 评论 -
#牛客网 “华为杯”中国矿业大学程序设计学科竞赛重现赛
A-细胞分裂题目描述CB不光是ACM大佬,同时也是生物领域的知名专家。现在,他正在为一个细胞实验做准备工作:培养细胞样本。CB博士手里现在有N种细胞,编号从1~N,一个第i种细胞经过1秒钟可以分裂为Si个同种细胞(Si为正整数)。现在他需要选取某种细胞的一个放进培养皿,让其自由分裂,进行培养。一段时间以后,再把培养皿中的所有细胞平均分入M个试管,形成M份样本,用于实验。CB博士...原创 2019-07-09 13:57:55 · 553 阅读 · 0 评论 -
#牛客网 牛客假日团队赛6
A-Card Stacking题目描述Bessie is playing a card game with her N-1 (2 <= N <= 100) cow friends using a deck with K (N <= K <= 100,000; K is a multiple of N) cards. The deck contains M = K...原创 2019-07-18 19:53:25 · 523 阅读 · 0 评论 -
2017 ICPC Mid-Central USA Region 题解
Problem ANine KnightsIn the game of chess, knights are unique due to their “L-shaped” movement. A knight can move, as shown in Figure A.1, by either moving two squares sideways and one square up o...原创 2019-08-03 23:22:38 · 1518 阅读 · 0 评论 -
#2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest 部分题解
A. Berstagramtime limit per test3 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputPolycarp recently signed up to a new social network Berstagram. He ...原创 2019-11-06 22:33:39 · 2680 阅读 · 2 评论 -
#2018-2019 ACM-ICPC, NEERC, Southern Subregional Contest, Qualification Stage (快乐场)
A. Coffee Breaktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently Monocarp got a job. His working day lasts exactlymmmin...原创 2019-11-13 12:34:29 · 1017 阅读 · 3 评论