Online Judges

A collection of 18 posts

[UVa] 839 - Not so Mobile

題目 Link: UVa 839 - Not so Mobile Code C++ #include <iostream> int recursion(); int main() { int cases; std::ios::sync_with_stdio(false); std::cin >> cases; while (cases--)

[UVa] 548 - Tree

題目 Link: UVa 548 - Tree Hint 下面兩行分別是 inorder 和 postorder 的 traversal 3 2 1 4 5 7 6 3 1 2 5 6 7 4 postorder 最後一個一定是 root inorder 中, root

[UVa] 10010 - Where's Waldorf?

題目 Link: UVa 10010 - Where's Waldorf? Code C++ #include <string> #include <iostream> #include <vector> #include <algorithm> void find(const std::vector<std::string&