摘要:
A. Equator Polycarp has created his own training plan to prepare for the programming contests. He will train for nn days, all days are numbered from 1 阅读全文
摘要:
Description You are working for Macrohard company in data structures department. After failing your previous task about key insertion you were asked t 阅读全文
摘要:
Connected undirected weighted graph without self-loops and multiple edges is given. Graph contains n vertices and m edges. For each edge (u, v) find t 阅读全文
摘要:
A. Tritonic Iridescence 题解:分类讨论。注意题目要求,至少有两种方案。 B. Mystical Mosaic 题解:对于同一列的"#"所在行应该是对称的。 C. Three-level Laser 题解:分析式子,当 Ej 选定后,i=j-1,所以只需要考虑 Ek ,显然 k 阅读全文
摘要:
Description A rooted tree is a well-known data structure in computer science and engineering. An example is shown below: In the figure, each node is l 阅读全文
摘要:
A. Feed the cat After waking up at hh:mm, Andrew realised that he had forgotten to feed his only cat for yet another time (guess why there's only one 阅读全文
摘要:
A. Diagonal Walking Mikhail walks on a 2D plane. He can go either up or right. You are given a sequence of Mikhail's moves. He thinks that this sequen 阅读全文