Solving AtCoder Beginner Contest 010: A Complete Walkthrough

Problem A Given a string (S), produce a new string by appending "pp" to (S). Simply use std::string in C++: std::string s; std::cin >> s; s += "pp"; std::cout << s << "\n"; Problem B There are (n) flowers with petal counts (a_1, a_2, \dots, a_n). Two counting cycles exist: "like, disugsting ...

Posted on Tue, 06 Oct 2026 16:11:29 +0000 by mauri_gato

Solution: SP300 CABLETV - Cable TV Network

The problem involves finding the minimum number of vertices to remove from an undirected graph to make it disconnected. Problem Analysis When a graph becomes disconnected, there exist at least two vertices that cannot reach each other. We can enumerate these two vertices as source and sink, then determine the minimum number of other vertices th ...

Posted on Wed, 08 Jul 2026 17:44:48 +0000 by Horatiu