随笔分类 - codeforces
摘要:D. Numbers on Tree 构造,树dfs 题目链接:https://codeforces.com/contest/1287/problem/D、 D. Numbers on Tree time limit per test 1 second memory limit per test 2
阅读全文
摘要:关于 set/map 等容器对string类的 性能指标 测试题目: https://codeforces.com/contest/1287/problem/B 测试的字符串条件其中: 字符串长度为<=30, 字符串个数为<=1500, 且每一个加入和查询的字符串长度相等。 使用set/map 等容
阅读全文
摘要:"Educational Codeforces Round 80 (Rated for Div. 2)" A. Deadline 如果n =d 直接yes 否则对于公式 $x+ceil(d/(x+1)) include include include include include include
阅读全文
摘要:Educational Codeforces Round 41 (Rated for Div. 2) E. Tufurama (CDQ分治 求 二维点数) time limit per test 2 seconds memory limit per test 256 megabytes input
阅读全文
摘要:D. Pair Of Lines time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given n points
阅读全文
摘要:"292D Connected Components" D. Connected Components time limit per test 2 seconds memory limit per test 256 megabytes input standard input output stan
阅读全文
摘要:"Educational Codeforces Round 63 (Rated for Div. 2)" D. Beautiful Array time limit per test 2 seconds memory limit per test 256 megabytes input standa
阅读全文
摘要:C. Vasily the Bear and Sequence time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasily th
阅读全文
摘要:Vasya and Beautiful Arrays "CodeForces 354C " Vasya's got a birthday coming up and his mom decided to give him an array of positive integers a of leng
阅读全文
摘要:"Codeforces Round 329 (Div. 2)" D. Happy Tree Party time limit per test 3 seconds memory limit per test 256 megabytes input standard input output stan
阅读全文
摘要:G. Castle Defense time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output Today you are going
阅读全文
摘要:"Educational Codeforces Round 40 (Rated for Div. 2)" C. Matrix Walk time limit per test 1 second memory limit per test 256 megabytes input standard in
阅读全文
摘要:Coprime Arrays "CodeForces 915G " Let's call an array a of size n coprime iff gcd ( a 1, a 2, ..., a n ) = 1, where gcd is the greatest common divisor
阅读全文
摘要:Make It Connected "CodeForces 1095F " You are given an undirected graph consisting of nn vertices. A number is written on each vertex; the number on v
阅读全文
摘要:Physical Education Lessons "CodeForces 915E " This year Alex has finished school, and now he is a first year student of Berland State University. For
阅读全文
摘要:Almost Acyclic Graph "CodeForces 915D " time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Y
阅读全文
摘要:Educational Codeforces Round 37 (Rated for Div. 2)C. Swap Adjacent Elements time limit per test 1 second memory limit per test 256 megabytes input sta
阅读全文
摘要:G. List Of Integers time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output Let's denote as L (
阅读全文
摘要:F. SUM and REPLACE time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Let D(x) be the number of
阅读全文
摘要:Connected Components? "CodeForces 920E " You are given an undirected graph consisting of n vertices and edges. Instead of giving you the edges that ex
阅读全文

浙公网安备 33010602011771号