摘要:题目链接:https://codeforces.com/contest/1228/problem/B
阅读全文
摘要:题目链接:https://codeforces.com/contest/1200/problem/C 思路:两个方块能互相到达的条件是,内圈的墙与外圈的墙在一条线上的区域内。每个区域内的外圈方块数与内圈方块数是相同的。 发现每个区域内圈方块数等于总内圈方块数除以总内圈方块数与外圈方块数的最大公因数,
阅读全文
摘要:题目链接:https://codeforces.com/contest/1200/problem/B WA了八发。。。 思路:在保证能跳到下一个砖块的前提下,包里的砖块数最大,防止需要砖块时不够的情况。每一种情况都得考虑到:
阅读全文
摘要:https://codeforces.com/contest/1102/problem/D 主要是满足字典序最小的时候。
阅读全文
摘要:只要知道圆心角与圆周角的关系即可 圆心角=2×圆周角 因为该题是正n边形,每个点到中心的距离相等,即可把这n个点放在圆周上 确定两个点一条边,还可以与剩下的n-2个点形成角度。 每个角度即是圆心角的1/2.
阅读全文
摘要:electronic a.电子的 heist v.抢劫 in ascending order 升序 indice n.标记 device n.装置设备 staff n.职员 in arbitrary order 任意顺序 pairwise distinct两两相异 题意就是:一个电子商品店被抢劫了,
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:modify 改变 C. Equalize time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output modify 改变 C. Equali
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:题意:有n个通道,按顺序每一次站一个通道,直到所站的通道没有人 分析:模拟这个过程
阅读全文
摘要:题意:字符串a,字符串b,给你q个区间,让你求a的区间内字符串b出现了多少次 之前用的前缀数组做的,没想起来,发现这个其实也可以
阅读全文
摘要:Katya studies in a fifth grade. Recently her class studied right triangles and the Pythagorean theorem. It appeared, that there are triples of positiv
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文