
codeforces
文章平均质量分 81
嵩韵儿
加油
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Book Reading(图书阅读)
http://codeforces.com/problemset/problem/1213/C Polycarp is reading a book consisting ofnpages numbered from1ton. Every time he finishes the page with the number divisible bym, he writes do...原创 2019-09-16 19:20:57 · 850 阅读 · 0 评论 -
Chips Moving(缺口移动)
http://codeforces.com/problemset/problem/1213/A You are givennnchips on a number line. Theii-th chip is placed at the integer coordinatexixi. Some chipscan have equal coordinates. You can perf...原创 2019-09-16 19:33:43 · 182 阅读 · 0 评论 -
Codeforces Round #710 (Div. 3)
目录 A.Strange Table B.Partial Replacement C.Double-ended Strings D.Epic Transformation E.Restoring the Permutation F.Triangular Paths G.Maximize the Remaining String A.Strange Table 题意:给出n,m,x,表示nm矩阵,输出以按列排列 的矩阵中 数x 的位置 的按行排列的值 输入 3 5 11 输...原创 2021-05-30 20:06:14 · 245 阅读 · 0 评论 -
CF Round #713 (Div. 3)
目录 A. Spy Detected! B. Almost Rectangle C.A-B Palindrome D.Corrupted Array E.Permutation by Sum F.Education A.Spy Detected! B.Almost Rectangle C.A-B Palindrome D.Corrupted Array E.Permutation by Sum F.Education原创 2021-05-29 19:36:17 · 196 阅读 · 0 评论 -
CF#715 (Div. 2)、Educational Codeforces Round 107、108 (Rated for Div. 2)
Average Height Click to the topic link 题意:n个数排序,尽可能多的使得 相邻两个数的平均数是整数; 题解:即只需奇数排在一起,偶数排在一起~ #include<stdio.h> #include<string.h> #include<iostream> #include<algorithm> using namespace std; typedef long long ll; const int N=100..原创 2021-05-19 20:24:36 · 246 阅读 · 0 评论 -
CF- #720 (Div. 2) 、CF-#719 (Div. 3)
Nastia and Nearly Good Numbers #include<bits/stdc++.h> using namespace std; typedef long long ll; /* a|b: b=ka,a整除b 或 b能被a整除 good number:能被 a*b 整除 nearly number: 能被 a 整除*/ //x+y=z 其中一个是good number,其余为nearly number int main() { int t; cin>&原创 2021-05-13 11:48:47 · 147 阅读 · 0 评论 -
CF-B. Morning Jogging
题目链接 B. Morning Jogging The 2050 volunteers are organizing the "Run! Chase the Rising Sun" activity. Starting on Apr 25 at 7:30 am, runners will complete the 6km trail around the Yunqi town. There aren+1n+1checkpoints on the trail. They are numbered b..原创 2021-04-29 20:22:19 · 574 阅读 · 3 评论 -
CF-A Sum of 2050
题目链接 A number is called2050-numberif it is2050, 20500, ..., (2050⋅10k for integer k≥0). Given a numbern, you are asked to representnas the sum of some (not necessarily distinct) 2050-numbers. Compute the minimum number of 2050-numbers required for ...原创 2021-04-29 19:54:53 · 242 阅读 · 0 评论 -
The Delivery Dilemma(运送难题)
#681 div.2 C题链接 得到dishes的两种方式: the dish will be delivered by a courier from the restauranti, in this case the courier will arrive inaiminutes, Petya goes to the restaurantion his own and picks up the dish, he will spendbiminutes on this. 举个栗子...原创 2020-11-10 21:52:57 · 539 阅读 · 0 评论 -
k-Amazing Numbers (惊奇的数字)
CF题目链接 Long time no see...时隔多月,终于又回来了....csdn大佬云集,study harder and make progress everyday... You are given an arrayaconsisting ofnintegers numbered from1ton.给你一个数组a,存有n个数,从1~n Let's define thek-amazing number of the array as the minimum number...原创 2020-10-10 19:57:29 · 639 阅读 · 0 评论 -
Phoenix and Balance (平衡)
官方题解 codeforces.com/problemset/problem/1348/A 题意:给你一个整数n,然后将2的1次方~2的n次方分成两部分,使两部分的和的差最小 思路:以2为首项,2为公比的等比数列,要求分成两个数列,使得这两个数列和的差最小。对于指数级增长的数列,最后一个肯定为最大,即(2^n)>(2 ^ 1+2 ^2+2 ^3+…+2 ^(n-1)),所以把2的n...原创 2020-05-04 14:09:04 · 293 阅读 · 0 评论 -
Sum of Odd Integers (奇数的和)
CodeForces - 1327A传送门 数据: Input The first line of the input contains one integer t (1≤t≤105) — the number of test cases. The next tt lines describe test cases. The only line of the test case cont...原创 2020-03-28 21:14:17 · 592 阅读 · 0 评论 -
Pair of Topics (一队主题)
题目传送门 数据: Input 5 4 8 2 6 2 4 5 4 1 3 Output 7 Input 4 1 3 2 4 1 3 2 4 Output 0 输入n(2<=n<=2*2e5) 然后n个a[i] (表示老师感兴趣的话题) ; n个b[i] (表示学生感兴趣的话题); (0<a,b<1e9) 题意:...原创 2020-03-19 22:27:56 · 333 阅读 · 0 评论 -
Too Many Segments (easy version) (区间段太多(easy)(hard))
http://codeforces.com/problemset/problem/1249/D1 The only difference between easy and hard versions is constraints. You are given nn segments on the coordinate axis OX . Segments can intersect, ...原创 2019-11-03 17:35:57 · 485 阅读 · 0 评论 -
By Elevator or Stairs? (乘电梯还是楼梯?)
http://codeforces.com/problemset/problem/1249/E 题意:n层楼,a[i] (0<i<n)表示从 i 楼到 i + 1 楼走楼梯的时间,b[i] (0<i<n)表示从 i 楼到 i + 1 楼乘电梯的时间,其中每一次乘电梯需要等待 c 时间,求从1楼到 1 ~ n 层楼所需要的最短时间 思路:二维数组d...原创 2019-11-03 17:27:35 · 757 阅读 · 0 评论 -
Good Numbers (hard version) (好数字(hard))
http://codeforces.com/problemset/problem/1249/C2 The only difference between easy and hard versions is the maximum value of n . You are given a positive integer number n . You really love good n...原创 2019-11-02 18:46:40 · 536 阅读 · 0 评论 -
Books Exchange (hard version) (图书交换(hard))
http://codeforces.com/problemset/problem/1249/B2 The only difference between easy and hard versions is constraints. There are n kids, each of them is reading a unique book. At the end of any day...原创 2019-11-02 18:30:06 · 712 阅读 · 0 评论 -
Standard Free2play (标准最多跳二层楼)
http://codeforces.com/problemset/problem/1238/C You are playing a game where your character should overcome different obstacles. The current problem is to come down from a cliff. The cliff has he...原创 2019-10-26 14:00:31 · 730 阅读 · 0 评论 -
Minimizing Difference (极小化差)
题目 You are given a sequence a1,a2,…,an consisting of nn integers. You may perform the following operation on this sequence: choose any element and either increase or decrease it by one. Calcula...原创 2019-10-19 20:14:41 · 1019 阅读 · 0 评论 -
Paint the Tree(画这棵树)
题目 You are given a tree consisting of nn vertices. A tree is an undirected connected acyclic graph. Example of a tree. You have to paint each vertex into one of three colors. For each vertex, yo...原创 2019-10-19 19:58:26 · 695 阅读 · 0 评论 -
Anadi and Domino (阿纳迪和多米诺)
https://codeforces.com/problemset/problem/1230/C Anadi has a set of dominoes. Every domino has two parts, and each part contains some dots. For every a and b such that 1≤a≤b≤6 , there is exactly ...原创 2019-10-05 14:20:44 · 644 阅读 · 0 评论