Atcoder
文章平均质量分 84
深海沧澜夜未央
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
AtCoder Regular Contest 092 C - 2D Plane 2N Points 贪心 匈牙利算法模板
Problem Statement On a two-dimensional plane, there are N red points and N blue points. The coordinates of the i-th red point are (ai,bi), and the coordinates of the i-th blue point are (ci,di). A red...原创 2018-03-18 17:48:17 · 515 阅读 · 0 评论 -
AtCoder Grand Contest 025 B - RGB Coloring 组合数
Time limit : 2sec / Memory limit : 1024MB Score : 700 points Problem Statement Takahashi has a tower which is divided into N layers. Initially, all the layers are uncolored. Takahashi is going to p...原创 2018-08-15 16:31:06 · 422 阅读 · 0 评论 -
AtCoder Regular Contest 098 C - Attention DP思想,寻找相邻关系
Problem StatementThere are N people standing in a row from west to east. Each person is facing east or west. The directions of the people is given as a string S of length N. The i-th person from the w...原创 2018-05-26 21:28:47 · 495 阅读 · 0 评论 -
AtCoder Beginner Contest 096 D - Five, Five Everywhere
Problem StatementPrint a sequence a1,a2,…,aN whose length is N that satisfies the following conditions:ai (1≤i≤N) is a prime number at most 55 555.The values of a1,a2,…,aN are all different.In every...原创 2018-05-06 13:33:35 · 307 阅读 · 0 评论 -
AtCoder Regular Contest 095 D - Binomial Coefficients
Problem StatementLet comb(n,r) be the number of ways to choose r objects from among n objects, disregarding order. From n non-negative integers a1,a2,…,an, select two numbers ai>aj so that comb(ai,...原创 2018-04-15 10:35:44 · 725 阅读 · 0 评论 -
AtCoder Regular Contest 095 C - Many Medians(去掉一个数求中位数)
Problem StatementWhen l is an odd number, the median of l numbers a1,a2,…,al is the (l+12)-th largest value among a1,a2,…,al.You are given N numbers X1,X2,…,XN, where N is an even number. For each i=1...原创 2018-04-15 10:32:27 · 1370 阅读 · 0 评论 -
AtCoder Regular Contest 093 D - Grid Components
Problem StatementYou are given two integers A and B.Print a grid where each square is painted white or black that satisfies the following conditions, in the format specified in Output section:Let the ...原创 2018-03-26 08:46:09 · 469 阅读 · 0 评论 -
AtCoder Regular Contest 094 E - Tozan and Gezan (博弈论 2个和相同序列双方轮流减一得最后完全相同序列)
Problem StatementYou are given sequences A and B consisting of non-negative integers. The lengths of both A and B are N, and the sums of the elements in A and B are equal. The i-th element in A is Ai,...原创 2018-04-09 09:17:04 · 821 阅读 · 0 评论 -
AtCoder Beginner Contest 093 D - Worst Case (寻找(x*y)小于(a*b)的最大组数)
Problem Statement101010 participants, including Takahashi, competed in two programming contests. In each contest, all participants had distinct ranks from first through 101010-th.The score of a partic...原创 2018-04-08 09:02:03 · 692 阅读 · 0 评论 -
AtCoder Beginner Contest 093 C Same Integers (贪心水题)
C - Same IntegersTime limit : 2sec / Memory limit : 256MBScore : 300 pointsProblem StatementYou are given three integers A, B and C. Find the minimum number of operations required to make A, B and C a...原创 2018-04-07 21:33:40 · 653 阅读 · 0 评论 -
AtCoder Beginner Contest 084 C - Special Trains(思路)
Problem Statement A railroad running from west to east in Atcoder Kingdom is now complete. There are N stations on the railroad, numbered 1 through N from west to east. Tomorrow, the openin原创 2017-12-31 11:04:36 · 454 阅读 · 0 评论 -
AtCoder Beginner Contest 089 D - Practical Skill Test 边界处理
Problem StatementWe have a grid with H rows and W columns. The square at the i-th row and the j-th column will be called Square (i,j).The integers from 1 through H×W are written throughout the grid, a...原创 2018-03-04 23:31:45 · 716 阅读 · 0 评论 -
AtCoder Regular Contest D - Remainder Reminder 取余问题
Problem StatementTakahashi had a pair of two positive integers not exceeding N, (a,b), which he has forgotten. He remembers that the remainder of a divided by b was greater than or equal to K. Find th...原创 2018-03-12 00:44:50 · 856 阅读 · 0 评论 -
AtCoder Beginner Contest 087 D - People on a Line 并查集(区间和问题)
Problem StatementThere are N people standing on the x-axis. Let the coordinate of Person i be xi. For every i, xi is an integer between 0 and 109 (inclusive). It is possible that more than one person ...原创 2018-02-14 11:56:55 · 454 阅读 · 0 评论 -
AtCoder Grand Contest 020 C - Median Sum (背包问题+bitset )
Time limit : 2sec / Memory limit : 512MB Score : 700 points Problem Statement You are given N integers A1, A2, ..., AN. Consider the sums of all non-empty subsequences of A. There are原创 2018-01-19 20:05:18 · 620 阅读 · 0 评论 -
AtCoder Beginner Contest 085 D Katana Thrower (贪心+计算机除法特性)
Problem Statement You are going out for a walk, when you suddenly encounter a monster. Fortunately, you have N katana (swords), Katana 1, Katana 2, …, Katana N, and can perform the following two kind原创 2018-01-18 11:43:20 · 539 阅读 · 0 评论 -
AtCoder Grand Contest 020 B - Ice Rink Game(贪心+计算机乘法)
Time limit : 2sec / Memory limit : 512MB Score : 500 points Problem Statement An adult game master and N children are playing a game on an ice rink. The game consists of K rounds. In the原创 2018-01-18 12:35:07 · 498 阅读 · 0 评论 -
AtCoder Beginner Contest 085 C Otoshidama(计算机整数乘法问题+方程求解)
Problem StatementThe commonly used bills in Japan are 10000-yen, 5000-yen and 1000-yen bills. Below, the word "bill" refers to only these.According to Aohashi, he received an otoshidama (New Year mone原创 2018-01-09 15:04:54 · 645 阅读 · 0 评论 -
AtCoder AtCoder Beginner Contest 076 C: Dubious Document 2(set与字典序)
Problem Statement E869120 found a chest which is likely to contain treasure. However, the chest is locked. In order to open it, he needs to enter a string S consisting of lowercase English letters原创 2017-11-02 08:06:03 · 954 阅读 · 0 评论 -
AtCoder Beginner Contest 084 D - 2017-like Number (区间问题 a[r]-a[l-1])
Problem Statement We say that a odd number N is similar to 2017 when both N and (N+1)⁄2 are prime. You are given Q queries. In the i-th query, given two odd numbers li and ri, find the numb原创 2017-12-31 11:09:53 · 478 阅读 · 0 评论
分享