随笔分类 -  Codeforces

B. Filling the Grid codeforces
摘要:题目链接:https://codeforces.com/contest/1228/problem/B 阅读全文

posted @ 2019-10-04 11:27 一只小毛球 阅读(197) 评论(0) 推荐(0)

Round Corridor CodeForces - 1200C(最大公因数)
摘要:题目链接:https://codeforces.com/contest/1200/problem/C 思路:两个方块能互相到达的条件是,内圈的墙与外圈的墙在一条线上的区域内。每个区域内的外圈方块数与内圈方块数是相同的。 发现每个区域内圈方块数等于总内圈方块数除以总内圈方块数与外圈方块数的最大公因数, 阅读全文

posted @ 2019-08-16 09:27 一只小毛球 阅读(314) 评论(0) 推荐(0)

codeforces 1200B. Block Adventure(简单模拟)
摘要:题目链接:https://codeforces.com/contest/1200/problem/B WA了八发。。。 思路:在保证能跳到下一个砖块的前提下,包里的砖块数最大,防止需要砖块时不够的情况。每一种情况都得考虑到: 阅读全文

posted @ 2019-08-16 09:12 一只小毛球 阅读(364) 评论(0) 推荐(0)

codeforces 1102D Balanced Ternary String(贪心+思维)
摘要:https://codeforces.com/contest/1102/problem/D 主要是满足字典序最小的时候。 阅读全文

posted @ 2019-05-21 16:44 一只小毛球 阅读(202) 评论(0) 推荐(0)

Polygon for the Angle 1096C(圆心角与圆周角)
摘要:只要知道圆心角与圆周角的关系即可 圆心角=2×圆周角 因为该题是正n边形,每个点到中心的距离相等,即可把这n个点放在圆周上 确定两个点一条边,还可以与剩下的n-2个点形成角度。 每个角度即是圆心角的1/2. 阅读全文

posted @ 2019-05-19 10:57 一只小毛球 阅读(275) 评论(0) 推荐(0)

codeforces 1041A Heist
摘要:electronic a.电子的 heist v.抢劫 in ascending order 升序 indice n.标记 device n.装置设备 staff n.职员 in arbitrary order 任意顺序 pairwise distinct两两相异 题意就是:一个电子商品店被抢劫了, 阅读全文

posted @ 2018-10-09 20:21 一只小毛球 阅读(143) 评论(0) 推荐(0)

1047B_Cover Points
摘要:B. Cover Points time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Cover Points time limi 阅读全文

posted @ 2018-10-02 10:13 一只小毛球 阅读(135) 评论(0) 推荐(0)

1047A_Little C Loves 3 I(构造)
摘要:A. Little C Loves 3 I time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Little C Loves 3 阅读全文

posted @ 2018-10-02 09:16 一只小毛球 阅读(170) 评论(0) 推荐(0)

1037C_ Equalize(字符串)
摘要:modify 改变 C. Equalize time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output modify 改变 C. Equali 阅读全文

posted @ 2018-09-29 15:23 一只小毛球 阅读(145) 评论(0) 推荐(0)

1037B--Reach Median(中位数)
摘要:median 中位数 odd 奇数 even 奇数 median 中位数 odd 奇数 even 奇数 median 中位数 odd 奇数 even 奇数 You are given an array aa of nn integers and an integer ss. It is guaran 阅读全文

posted @ 2018-09-27 19:55 一只小毛球 阅读(251) 评论(0) 推荐(0)

Slava and tanks 877C
摘要:C. Slava and tanks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Slava and tanks ti 阅读全文

posted @ 2018-09-26 11:13 一只小毛球 阅读(236) 评论(0) 推荐(0)

World Cup 996B(排队模拟)
摘要:题意:有n个通道,按顺序每一次站一个通道,直到所站的通道没有人 分析:模拟这个过程 阅读全文

posted @ 2018-09-25 20:53 一只小毛球 阅读(191) 评论(0) 推荐(0)

1016B - Segment Occurrences(字符串的匹配)
摘要:题意:字符串a,字符串b,给你q个区间,让你求a的区间内字符串b出现了多少次 之前用的前缀数组做的,没想起来,发现这个其实也可以 阅读全文

posted @ 2018-09-25 20:33 一只小毛球 阅读(196) 评论(0) 推荐(0)

Packets 1037A(二进制数)
摘要:分析:看这个数有多少位二进制数 阅读全文

posted @ 2018-09-25 19:13 一只小毛球 阅读(193) 评论(0) 推荐(0)

Pythagorean Triples 707C
摘要:Katya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that there are triples of positiv 阅读全文

posted @ 2018-09-25 16:05 一只小毛球 阅读(188) 评论(0) 推荐(0)

Turn the Rectangles 1008B
摘要:output standard output output standard output output There are nn rectangles in a row. You can either turn each rectangle by 9090 degrees or leave it 阅读全文

posted @ 2018-09-25 11:11 一只小毛球 阅读(181) 评论(0) 推荐(0)

Sonya and Exhibition 1004B
摘要:B. Sonya and Exhibition time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Sonya and Exhi 阅读全文

posted @ 2018-09-25 10:31 一只小毛球 阅读(199) 评论(0) 推荐(0)

导航