feat(codeforces): more div 3s

This commit is contained in:
Barrett Ruth 2025-12-15 14:14:37 -06:00
parent 7db2259486
commit 1ed20bd3a2
17 changed files with 656 additions and 16 deletions

View file

@ -1,4 +1,4 @@
#include <bits/stdc++.h> // {{{
#include <bits/stdc++.h> // {{{
#include <version>
#ifdef __cpp_lib_ranges_enumerate
@ -22,11 +22,9 @@ using f64 = double;
using f128 = long double;
#if __cplusplus >= 202002L
template <typename T>
constexpr T MIN = std::numeric_limits<T>::min();
template <typename T> constexpr T MIN = std::numeric_limits<T>::min();
template <typename T>
constexpr T MAX = std::numeric_limits<T>::max();
template <typename T> constexpr T MAX = std::numeric_limits<T>::max();
#endif
#ifdef LOCAL
@ -42,7 +40,7 @@ void solve() {
u32 n, m;
cin >> n >> m;
vector<pair<u32, u32>> a(n);
for (auto& e : a) {
for (auto &e : a) {
cin >> e.first >> e.second;
}
sort(begin(a), end(a));
@ -56,11 +54,13 @@ void solve() {
ans.push_back(i);
}
}
println("{}", ans.size();
for (auto& e : ans) print("{} ", e); println();
println("{}", ans.size());
for (auto &e : ans)
print("{} ", e);
println();
}
int main() { // {{{
int main() { // {{{
std::cin.exceptions(std::cin.failbit);
#ifdef LOCAL
std::cerr.rdbuf(std::cout.rdbuf());