
集合——集合与集合运算
Alex_McAvoy
想要成为渔夫的猎手
展开
-
集合 —— 集合与集合运算
【概述】集合,是集合论中主要研究对象,是指具有某种特定性质的具体的或抽象的对象汇总而成的集体,其中,构成集合的这些对象则称为该集合的元素。集合中元素的数目称为集合的基数,集合 A 的基数记作:card(A),当其为有限大时,集合 A 称为有限集,反之则为无限集,简单来说,含有有限个元素的集合叫做有限集,含无限个元素的集合叫做无限集。一个集合具有三个特性:确定性、互异性、无序性。其中,确...原创 2019-08-08 12:13:55 · 6531 阅读 · 0 评论 -
Make a Rectangle(Atcoder-2696)
Problem DescriptionWe have N sticks with negligible thickness. The length of the i-th stick is Ai.Snuke wants to select four different sticks from these sticks and form a rectangle (including a s...原创 2019-06-20 16:09:16 · 559 阅读 · 0 评论 -
矩阵中不重复的元素(51Nod-1024)
题目一个m*n的矩阵。该矩阵的第一列是a^b,(a+1)^b,.....(a + n - 1)^b第二列是a^(b+1),(a+1)^(b+1),.....(a + n - 1)^(b+1).......第m列是a^(b + m - 1),(a+1)^(b + m - 1),.....(a + n - 1)^(b + m - 1)(a^b表示a的b次方)下面是一个4*4的矩阵...原创 2019-04-17 18:03:12 · 372 阅读 · 0 评论 -
找连续数(HDU-5247)
Problem Description小度熊拿到了一个无序的数组,对于这个数组,小度熊想知道是否能找到一个k 的区间,里面的 k 个数字排完序后是连续的。现在小度熊增加题目难度,他不想知道是否有这样的 k 的区间,而是想知道有几个这样的 k 的区间。Input输入包含一组测试数据。第一行包含两个整数n,m,n代表数组中有多少个数字,m 代表针对于此数组的询问次数,n不会超过1...原创 2019-01-14 22:02:18 · 540 阅读 · 0 评论 -
Equalize the Remainders(CF-999D)
Problem DescriptionYou are given an array consisting of n integers a1,a2,…,an, and a positive integer m. It is guaranteed that m is a divisor of n.In a single move, you can choose any position i ...原创 2018-08-07 19:42:36 · 477 阅读 · 1 评论 -
The Brand New Function(CF-224C)
Problem DescriptionPolycarpus has a sequence, consisting of n non-negative integers: a1, a2, ..., an.Let's define function f(l, r) (l, r are integer, 1 ≤ l ≤ r ≤ n) for sequence a as an operation...原创 2019-08-07 20:38:20 · 322 阅读 · 0 评论 -
Colorful Graph(CF-246D)
Problem DescriptionYou've got an undirected graph, consisting of n vertices and m edges. We will consider the graph's vertices numbered with integers from 1 to n. Each vertex of the graph has a col...原创 2019-08-07 21:13:16 · 371 阅读 · 0 评论