ABC 046 Solutions: Counting, Coloring, Votes and RPS
A – Distinct Count
Input three integers. Output how many different values appear.
#include <bits/stdc++.h>
using namespace std;
int main() {
set<int> bag;
for (int i = 0; i < 3; ++i) {
int x; cin >> x;
bag.insert(x);
}
cout << bag.size() << '\n';
}
B – Coloring a Line of Balls
G ...
Posted on Sat, 05 Sep 2026 16:05:44 +0000 by adrian_quah