This documentation is automatically generated by competitive-verifier/competitive-verifier
// competitive-verifier: PROBLEM https://judge.yosupo.jp/problem/two_edge_connected_components
#include <bits/stdc++.h>
#include "../graph/connected-components/two-edge-connected-components.hpp"
using namespace std;
#ifdef LOCAL
#include "copypaste/debug.h"
#else
#define debug(...) 42
#endif
#define endl '\n'
struct fast_ios {
fast_ios() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
};
} fast_ios_;
int main() {
#ifdef LOCAL
freopen("./data.in", "r", stdin);
#endif
int n, m;
cin >> n >> m;
TwoEdgeConnectedComponents<int> g(n);
g.read(m, 0);
g.build();
auto &group = g.group;
cout << group.size() << endl;
for (auto &p : group) {
cout << p.size();
for (auto &u : p) {
cout << ' ' << u;
}
cout << endl;
}
return 0;
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 477, in update
raise BundleErrorAt(
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: test/yosupo-two-edge-connected-components.test.cpp: line 9: unable to process #include in #if / #ifdef / #ifndef other than include guards
Env | Name | Status | Elapsed | Memory |
---|---|---|---|---|
g++ | example_00 |
![]() |
5 ms | 3 MB |
g++ | example_01 |
![]() |
4 ms | 4 MB |
g++ | example_02 |
![]() |
4 ms | 4 MB |
g++ | large_cycle_00 |
![]() |
48 ms | 23 MB |
g++ | max_random_00 |
![]() |
119 ms | 39 MB |
g++ | max_random_01 |
![]() |
123 ms | 39 MB |
g++ | max_random_02 |
![]() |
118 ms | 39 MB |
g++ | random_1_00 |
![]() |
79 ms | 26 MB |
g++ | random_1_01 |
![]() |
95 ms | 30 MB |
g++ | random_1_02 |
![]() |
46 ms | 15 MB |
g++ | random_2_00 |
![]() |
24 ms | 8 MB |
g++ | random_2_01 |
![]() |
9 ms | 5 MB |
g++ | random_2_02 |
![]() |
33 ms | 11 MB |
g++ | random_2_03 |
![]() |
45 ms | 13 MB |
g++ | random_2_04 |
![]() |
20 ms | 8 MB |
g++ | small_random_1_00 |
![]() |
5 ms | 4 MB |
g++ | small_random_1_01 |
![]() |
4 ms | 4 MB |
g++ | small_random_1_02 |
![]() |
4 ms | 4 MB |
g++ | small_random_2_00 |
![]() |
4 ms | 4 MB |
g++ | small_random_2_01 |
![]() |
4 ms | 4 MB |
g++ | small_random_2_02 |
![]() |
4 ms | 4 MB |