time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given a broken clock. You know, that it is supposed to show time in 12- or 24-hours HH:MM format. In 12-hours format hours change from 1…
D. Broken BST http://codeforces.com/problemset/problem/797/D time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Let T be arbitrary binary tree — tree, every vertex of which has no more than tw…