摘要:
题目链接 Bridges 题目描述 An edge in an undirected graph is a bridgeif after removing it the graph will be disconnected. Given an undirected connected graph, 阅读全文
摘要:
题目链接 MEX Queries 题目描述 You are given a set of integer numbers, initially it is empty. You should perform \(n\) queries. There are three different types 阅读全文
摘要:
题目链接 Intervals 题目描述 You are given \(n\) closed, integer intervals \([a_i,b_i]\) and \(n\) integers \(c_1\), ...,\(c_n\). Write a program that: reads t 阅读全文
摘要:
题目链接 Sightseeing trip 题目描述 There is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attrac 阅读全文
摘要:
题目链接 Non-trivial Common Divisor 题目描述 You are given a positive integer sequence \(A\) of length \(N\). You can remove any numbers from the sequence to 阅读全文
摘要:
题目链接 Patches 题目描述 Carlos is very concerned with the environment. Whenever possible, he tries to use less pollutingmeans of transport. He recently got 阅读全文
摘要:
题目链接 Naptime 题目描述 Goneril is a very sleep-deprived cow. Her day is partitioned into \(N\) ($3 \le N \le 3,830$) equal time periods but she can spend o 阅读全文
摘要:
题目链接 Choosing Capital for Treeland 题目描述 The country Treeland consists of n cities, some pairs of them are connected with unidirectional roads. Overall 阅读全文
摘要:
题目链接 Binary Apple Tree 题目描述 Let's imagine how apple tree looks in binary computer world. You're right, it looks just like a binary tree, i.e. any bipa 阅读全文