
思维&构造
文章平均质量分 81
Low丶Coder
这个作者很懒,什么都没留下…
展开
-
Codeforeces 849A Odds and Ends
A. Odds and Endstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhere do odds begin, and where do they end?原创 2017-09-02 11:28:22 · 250 阅读 · 0 评论 -
HDU 1029 Ignatius and the Princess IV
Ignatius and the Princess IVTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others)Total Submission(s): 39051 Accepted Submission(s): 17048Problem Description"OK, you ar...原创 2018-03-04 17:25:26 · 147 阅读 · 0 评论 -
EOJ 数列区间翻转
B1. 数列区间翻转Time limit per test: 1.5 secondsMemory limit: 256 megabytes现在有一列数 1,2,3,…,n−1,n,现在进行一系列操作,每次操作将一个区间内的数翻转,最后回答第 k 个位置上的数。Input第一行三个整数 n,m,k (1≤n,m≤105,1≤k≤n)。接下来 m 行,每行两个整数 l,r (1≤l≤r≤n),表示将区...原创 2018-03-23 10:01:57 · 536 阅读 · 0 评论 -
Codeforces 1005DPolycarp and Div 3
D. Polycarp and Div 3time limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp likes numbers that are divisible by 3.He has a huge number ss. Polyc...原创 2018-07-11 00:20:15 · 395 阅读 · 0 评论 -
Codeforces Round #160 (Div. 1) A. Maxim and Discounts
A. Maxim and Discounts Maxim always goes to the supermarket on Sundays. Today the supermarket has a special offer of discount systems.There are m types of discounts. We assume that the discounts...原创 2018-07-24 09:58:14 · 246 阅读 · 0 评论 -
Codeforces Round #158 (Div. 2) D. Black and White Tree
D. Black and White TreeThe board has got a painted tree graph, consisting of n nodes. Let us remind you that a non-directed graph is called a tree if it is connected and doesn't contain any cycles....原创 2018-07-24 16:14:43 · 231 阅读 · 0 评论 -
Codeforces Round #210 (Div. 1) A. Levko and Array Recovery
A. Levko and Array RecoveryLevko loves array a1, a2, ... , an, consisting of integers, very much. That is why Levko is playing with array a, performing all sorts of operations with it. Each operatio...原创 2018-07-23 09:40:03 · 175 阅读 · 0 评论 -
Codeforces848B Rooter's Song
Rooter's Song Wherever the destination is, whoever we meet, let's render this song together.On a Cartesian coordinate plane lies a rectangular stage of size w × h, represented by a rectangle with ...原创 2018-08-07 17:05:19 · 246 阅读 · 0 评论 -
Codeforces Gym 100796E Permutation Polygon [树状数组]
E. Permutation PolygonThere are n cities in Regularia, Alice's homeland. They are located at the vertices of a regular n-gon. The cities are numbered from 1 to nin a clockwise order (see the figure)...原创 2018-08-23 17:38:11 · 469 阅读 · 0 评论