
ACM - 平常水题
dwenhu___
这个作者很懒,什么都没留下…
展开
-
平常水题 - CodeForces - 304A
In mathematics, the Pythagorean theorem — is a relation in Euclidean geometry among the three sides of a right-angled triangle. In terms of areas, it states:In any right-angled triangle, the area原创 2017-03-19 19:12:26 · 292 阅读 · 0 评论 -
hdu -- 6105 -- Gameia(博弈)
GameiaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1006 Accepted Submission(s): 428Problem Description Alice and Bob are playing a game原创 2017-08-11 22:27:40 · 314 阅读 · 0 评论 -
At.beginner.073 D - joisino's travel (floyd + 全排列)
D - joisino’s travel Time limit : 2sec / Memory limit : 256MBScore : 400 pointsProblem Statement There are N towns in the State of Atcoder, connected by M bidirectional roads.The i-th road connects T原创 2017-09-15 20:52:57 · 312 阅读 · 0 评论 -
平常水题 - Sheldon Numbers(逆向思维,位运算)
Sheldon NumbersAccording to Sheldon Cooper, the best number is 73. In his own words,“The best number is 73. 73 is the 21st prime number. Its mirror, 37,is the 12th, and its mirror, 21, is the pr原创 2017-03-31 20:14:58 · 1049 阅读 · 3 评论 -
B. Preparing for Merge Sort(二分)
2017-2018 ACM-ICPC, NEERC, Southern Subregional Contest, qualification stage (Online Mirror, ACM-ICPC Rules, Teams Preferred)B. Preparing for Merge Sort time limit per test2 seconds memory limit per原创 2017-09-21 21:25:23 · 597 阅读 · 0 评论 -
2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛 F.islands (强联通分量 + 缩点)
On the mysterious continent of Tamriel, there is a great empire founded by human.To develope the trade, the East Empire Company is set up to transport goods from place to place.Recently, the company wa原创 2017-09-14 22:26:03 · 352 阅读 · 0 评论 -
Problem G. Rectangular Polygon(dp + 转移重现)
2006-2007 Winter Petrozavodsk Camp, Andrew Stankevich Contest 23 (ASC 23)Problem G. Rectangular Polygon Input file: polygon.in Output file: polygon.out Time limit: 1 second Memory limit: 64 megabyt原创 2017-10-13 20:30:56 · 434 阅读 · 0 评论 -
D. Almost Identity Permutations(dp)
D. Almost Identity Permutations time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output A permutation p of size n is an array such that every inte原创 2017-11-17 20:40:06 · 692 阅读 · 0 评论 -
2017中国大学生程序设计竞赛-哈尔滨站 (B.尺取 + 二分)
Problem Description Alice are given an array A[1..N] with N numbers.Now Alice want to build an array B by a parameter K as following rules:Initially, the array B is empty. Consider each interval in ar原创 2017-11-16 12:05:59 · 668 阅读 · 0 评论 -
3461. 在哈尔滨的寒风中(找规律)
Time limit per test: 1.0 seconds Memory limit: 256 megabytes kblack 来到了寒冬中的哈尔滨,哈尔滨的寒风令 kblack 瑟瑟发抖。世界上最远的距离,是你与宾馆只差一条冰街,而你却忘了穿上秋裤。kblack 终于冲进了宾馆,宾馆大厅的地板铺满了五颜六色的地砖,可以被看作是一块 n×m 格的棋盘,为了能使冻僵了的双脚尽快暖和起来,k原创 2017-12-08 23:23:15 · 425 阅读 · 0 评论 -
CF - div2 - 459 - C - The Monster
C. The Monstertime limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output As Will is stuck in the Upside Down, he can still communicate with his mom,原创 2018-01-30 22:02:19 · 735 阅读 · 0 评论 -
寒武纪重现(HDU)- 1008(6261) - Rikka with Mutex(二分 + 错误总结)
Rikka with Mutex Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 32 Accepted Submission(s): 12Problem Description Sometimes, technica...原创 2018-02-08 20:23:05 · 800 阅读 · 0 评论 -
AtCoder - Petrozavodsk - Contest - 001 - D (缩点 + 贪心 + 错误总结)
D - ForestTime limit : 2sec / Memory limit : 256MBScore : 600 pointsProblem Statement You are given a forest with N vertices and M edges. The vertices are numbered 0 through N−1. The edges are原创 2018-02-06 20:40:37 · 616 阅读 · 0 评论 -
AT - Grand - 004 - B - Colorful Slimes(思维理解)
B - Colorful Slimes Time limit : 2sec / Memory limit : 256MBScore : 400 pointsProblem Statement Snuke lives in another world, where slimes are real creatures and kept by some people. Slimes come...原创 2018-02-12 21:19:04 · 852 阅读 · 0 评论 -
hdu -- 6098 -- Inversion(排序)
InversionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 221 Accepted Submission(s): 150Problem Description Give an array A, the index star原创 2017-08-11 15:24:03 · 216 阅读 · 0 评论 -
平常水题 Educational Codeforces Round 26 C (错误总结)
平常水题 Educational Codeforces Round 26 CC. Two Seals time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output One very important person has a pie原创 2017-08-04 15:08:01 · 355 阅读 · 0 评论 -
Codeforces Round #427 (Div. 2) C (前缀和思想)
Codeforces Round #427 (Div. 2) C (前缀和思想)C. Star sky time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard outputThe Cartesian coordinate system is set原创 2017-08-04 14:37:14 · 277 阅读 · 0 评论 -
平常水题 - HDU1166 (线段树的建立,更新与询问)
敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2017-04-06 22:52:26 · 293 阅读 · 0 评论 -
平常水题 - CodeForces - 660C(二分)
You are given an array a with n elements. Each element of a is either 0 or 1.Let's denote the length of the longest subsegment of consecutive elements in a, consisting of only numbers one, as f(a)原创 2017-03-29 21:05:47 · 400 阅读 · 0 评论 -
平常水题 - Expedition (优先队列)
Expedition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 15066 Accepted: 4232Descriptio原创 2017-03-30 19:16:30 · 232 阅读 · 0 评论 -
平常水题 - Atcoder 058 - C - 怪文書 / Dubious Document(字符串的处理)
C - 怪文書 / Dubious Document Time limit : 2sec / Memory limit : 256MBScore : 300 pointsProblem StatementSnuke loves "paper cutting": he c原创 2017-04-09 20:22:03 · 731 阅读 · 0 评论 -
平常水题 - CodeForces - 359C(质数)
C. Prime Numbertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSimon has a prime number x and an array of n原创 2017-04-09 20:31:29 · 347 阅读 · 0 评论 -
平常水题 - CodeForces - 222B
The Free Meteor Association (FMA) has got a problem: as meteors are moving, the Universal Cosmic Descriptive Humorous Program (UCDHP) needs to add a special module that would analyze this movement.原创 2017-03-26 16:50:02 · 540 阅读 · 0 评论 -
平常水题 - CodeForces - 703C(二分 + 几何)
C. Chris and Roadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnd while Mishka is enjoying her trip...原创 2017-04-13 20:34:40 · 553 阅读 · 0 评论 -
平常水题 - The Suspects POJ-1611(并查集)
The SuspectsTime Limit: 1000MS Memory Limit: 20000KTotal Submissions: 13311 Accepted: 6297DescriptionSevere acute respiratory syndrome (SARS), a原创 2017-04-14 15:42:42 · 241 阅读 · 0 评论 -
平常水题 - Codeforces 659D Bicycle Race(几何公式)
D. Bicycle Racetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMaria participates in a bicycle race.The原创 2017-04-14 22:05:17 · 282 阅读 · 0 评论 -
平常水题 - atcoder 062 - D - 3N Numbers
D - 3N NumbersTime limit : 2sec / Memory limit : 256MBScore : 500 pointsProblem StatementLet N be a positive integer.There is a numerical sequence of length 3N, a=(a1,a2,…,a3N). Snuke原创 2017-05-25 19:07:31 · 586 阅读 · 0 评论 -
平常水题 - J. Architect of Your Own Fortune (二分图匹配)
J. Architect of Your Own FortuneVasya is a schoolboy who rides a trolley bus and then a bus to get to school. He’salways very happy to get a “lucky ticket,” which means the total of the first thre原创 2017-05-16 19:58:30 · 823 阅读 · 0 评论 -
平常水题 — Codeforces Round #415 (Div. 2) B. Summer sell-off (贪心 + 错误总结)
B. Summer sell-offtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSummer holidays! Someone is going on trips, someone is visiting grandpa原创 2017-06-15 21:35:38 · 351 阅读 · 0 评论 -
平常水题 - 蚂蚁(栈的使用)
蚂蚁Time limit per test: 0.5 secondsTime limit all tests: 5.0 secondsMemory limit: 256 megabytes水平线上有 N 只蚂蚁,每只蚂蚁的位置及大小均不同。他们沿着 X 轴爬行,有的向左,有的向右,爬行的速度是一样的,两只蚂蚁相遇大一点的会吃掉小的。现在从左到右给出每只蚂蚁的大小和爬行的原创 2017-05-21 21:19:18 · 796 阅读 · 0 评论 -
Codeforces911D---Inversion Counting
题目大意:给你 nnn 个数,和 mmm 个操作询问,每个询问给你 l,rl,rl,r 两个数,问你反转 l,rl,rl,r 区间的元素后,整个序列的逆序对的个数是奇数个还是偶数个,奇数个输出 oddoddodd ,偶数个则输出 eveneveneven ,该逆序对以从小到大为标准次序,反转后不会恢复为原序列,且保证 nnn 个数中每个数都不相同。数据范围1≤n≤150...原创 2018-04-17 11:05:33 · 243 阅读 · 0 评论