AtCoder Beginner Contest 142

Updated:

AtCoder Beginner Contest 142

Source codes

Solutions

A - Odds of Oddness

Just calculate by for-loop.

B - Roller Coaster

Just calculate by for-loop, too.

C - Go to School

We use vector<tuple<int, int>> V;. We insert $(A _ i, i) $into $V$ and sort it.

D - Disjoint Set of Common Divisors

E - Get Everything

F - Pure

Others