Loading

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 75 下一页
摘要: Bob has given Alice a necklace as her birthday gift. That necklace has 𝑁N crystals, 𝑀M of which catches her fancy. Formally, crystals with labels of 阅读全文
posted @ 2021-11-20 21:34 脂环 阅读(1059) 评论(2) 推荐(2)
摘要: Once there was a rooted tree. The tree contained n nodes, which were numbered 1,…,n. The node numbered 1 was the root of the tree. Besides, every node 阅读全文
posted @ 2021-11-11 10:57 脂环 阅读(139) 评论(0) 推荐(0)
摘要: Once there was a mathematician, who was obsessed with meaningless number sequences. Here is one of them. 𝑎𝑛={1,𝑐⋅max0≤𝑖<𝑛𝑎𝑛&𝑖,𝑛=0otherwise,an 阅读全文
posted @ 2021-11-11 10:12 脂环 阅读(156) 评论(0) 推荐(0)
摘要: 507. Treediff Time limit per test: 0.25 second(s) Memory limit: 262144 kilobytes input: standard output: standard Andrew has just made a breakthrough 阅读全文
posted @ 2021-11-10 17:34 脂环 阅读(126) 评论(0) 推荐(0)
摘要: You are given a rooted tree with root in vertex 1. Each vertex is coloured in some colour. Let's call colour c dominating in the subtree of vertex v i 阅读全文
posted @ 2021-11-10 10:38 脂环 阅读(61) 评论(0) 推荐(0)
摘要: Grammy is playing a game with her roommate Alice on a sequence 𝐴A with 𝑛n non-negative integers 𝐴1,𝐴2,…,𝐴𝑛A1,A2,…,An. The rules of the game are 阅读全文
posted @ 2021-11-08 21:14 脂环 阅读(202) 评论(0) 推荐(0)
摘要: After the last network breakdown, you've been assigned to redesign the signal transmission network of ICPC (Internet Clogging Prevention Corporation)! 阅读全文
posted @ 2021-11-08 09:41 脂环 阅读(264) 评论(0) 推荐(0)
摘要: An integer sequence with length 𝑛n, denoted by 𝑎1,𝑎2,⋯,𝑎𝑛a1,a2,⋯,an, is generated randomly, and the probability of being 1,2,⋯,𝑛1,2,⋯,n are all 阅读全文
posted @ 2021-11-06 17:17 脂环 阅读(210) 评论(0) 推荐(0)
摘要: The robot is located on a checkered rectangular board of size 𝑛×𝑚n×m (𝑛n rows, 𝑚m columns). The rows in the board are numbered from 11 to 𝑛n from 阅读全文
posted @ 2021-11-05 21:33 脂环 阅读(84) 评论(0) 推荐(0)
摘要: A. Era 维护一个新数组的末尾位置变量pos,遍历的时候不断更新即可。 #include <iostream> #include <vector> #include <algorithm> #include <cstring> #include <map> #include <set> #def 阅读全文
posted @ 2021-10-31 00:40 脂环 阅读(165) 评论(2) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 75 下一页