随笔分类 - OJ Codeforces
摘要:D. Distance in Tree time limit per test 3 seconds memory limit per test 512 megabytes input standard input output standard output A tree is a connecte
阅读全文
摘要:B. Working out time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Summer is coming! It's ti
阅读全文
摘要:F. Asya And Kittens time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output F. Asya And Kittens
阅读全文
摘要:C. Birthday time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Birthday time limit per te
阅读全文
摘要:B. Draw! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Draw! time limit per test 2
阅读全文
摘要:A. Sea Battle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Sea Battle time limit pe
阅读全文
摘要:D. Game with modulo time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output This is an interactiv
阅读全文
摘要:J. Rising Sun time limit per test 1.0 s memory limit per test 1024 MB input standard input output standard output Joon has a midterm exam tomorrow, bu
阅读全文
摘要:D. Sum in the tree time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Mitya has a rooted tr
阅读全文
摘要:C. Postcard time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Andrey received a postcard fr
阅读全文
摘要:B. Squares and Segments time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little Sofia is i
阅读全文
摘要:A. Snowball time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Today's morning was exception
阅读全文
摘要:C. Ancient Berland Circus time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output Nowadays all ci
阅读全文
摘要:D. Maximum Diameter Graph time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Maximum Dia
阅读全文
摘要:C. Multi-Subject Competition time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Multi-Su
阅读全文
摘要:B. Vova and Trophies time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Vova and Trophie
阅读全文
摘要:A. Vasya and Book time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Vasya and Book time
阅读全文
摘要:D. Array Restoration 这题想一下就会发现是只要两个相同的数之间没有比它小的就可以,就是保存一下数第一次出现和最后一次出现的位置,然后查询一下这个区间就可以,如果有0的话就进行填充。 这个题我是用RMQ(ST)进行查询的,在初始化的时候,如果有0就把0变成2e5+1,因为数据最大2
阅读全文
摘要:C. Bracket Subsequence 。。。 代码:
阅读全文
摘要:B. Pair of Toys 智障题目(嘤嘤嘤~) 代码:
阅读全文