# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
709097 |
2023-03-13T06:13:50 Z |
null_awe |
Graph (BOI20_graph) |
C++14 |
|
189 ms |
13888 KB |
#include <iostream>
#include <vector>
#include <queue>
#include <climits>
#include <algorithm>
using namespace std;
#define ll long long
#define pii pair<int, int>
const double EPS = 0.000001;
struct line {
int m, b;
line() {}
line(int m, int b) : m(m), b(b) {}
double combine(line other) {
int mm = m - other.m, bb = other.b - b;
if (mm == 0 && bb) {
cout << "NO\n";
exit(0);
}
if (mm == 0) return INT_MAX;
return (double) bb / mm;
}
};
int n, m;
vector<vector<pii>> adj;
vector<line> lines;
vector<bool> vis;
vector<double> all;
void solve(int fv) {
if (vis[fv]) return;
lines[fv] = line(1, 0);
queue<int> q;
vector<int> has;
vis[fv] = true, q.push(fv), has.push_back(fv);
double ans = INT_MAX;
while (q.size()) {
int v = q.front(); q.pop();
for (pii p : adj[v]) {
int u = p.first, c = p.second;
line change(-lines[v].m, c - lines[v].b);
if (!vis[u]) {
vis[u] = true, q.push(u), has.push_back(u);
lines[u] = change;
} else {
double comb = lines[u].combine(change);
if (ans > INT_MAX - 1) ans = comb;
}
}
}
if (ans > INT_MAX - 1) {
// make this part faster please:
vector<pii> values;
vector<int> orig;
int ind = 0;
for (int v : has) {
line l = lines[v];
values.push_back({-l.b / l.m, ind++});
orig.push_back(-l.b / l.m);
}
vector<pii> negs(values.size());
for (int i = 0; i < values.size(); ++i) negs[i] = {-values[i].first, i};
sort(values.begin(), values.end());
sort(negs.begin(), negs.end());
vector<ll> arr(values.size());
vector<int> pos, neg;
for (int v : has) {
line l = lines[v];
if (l.m > 0) pos.push_back(-l.b);
else neg.push_back(-l.b);
}
sort(pos.begin(), pos.end());
sort(neg.begin(), neg.end());
vector<ll> pp(pos.size() + 1), pn(neg.size() + 1);
for (int i = 0; i < pos.size(); ++i) pp[i + 1] = pp[i] - pos[i];
for (int i = 0; i < neg.size(); ++i) pn[i + 1] = pn[i] - neg[i];
int pi = 0, ni = 0;
for (pii p : values) {
int num = p.first;
while (pi < pos.size() && pos[pi] < num) ++pi;
arr[p.second] = pp[pi] + (ll) num * pi - (pp[(int) pos.size()] - pp[pi]) - (ll) num * ((int) pos.size() - pi);
}
// for (int num : arr) cout << num << ' ';
// cout << '\n';
for (pii p : negs) {
int num = p.first;
while (ni < neg.size() && neg[ni] < num) ++ni;
// cout << pn[ni] << ' ';
// cout << num * ni << ' ';
// cout << pn[neg.size()] - pn[ni] << ' ';
// cout << num * ((int) neg.size() - ni) << '\n';
arr[p.second] += pn[ni] + (ll) num * ni - (pn[(int) neg.size()] - pn[ni]) - (ll) num * ((int) neg.size() - ni);
}
// for (int num : orig) cout << num << ' ';
// cout << '\n';
// for (int num : arr) cout << num << ' ';
// cout << '\n';
ll mn = LLONG_MAX;
for (int i = 0; i < values.size(); ++i) {
if (arr[i] < mn) mn = arr[i], ans = orig[i];
}
}
for (int v : has) vis[v] = false;
all[fv] = ans;
q = queue<int>();
vis[fv] = true, q.push(fv);
while (q.size()) {
int v = q.front(); q.pop();
for (pii p : adj[v]) {
int u = p.first, c = p.second;
if (vis[u]) continue;
vis[u] = true, q.push(u);
all[u] = c - all[v];
}
}
}
int main() {
cin >> n >> m;
adj.resize(n);
for (int i = 0; i < m; ++i) {
int a, b, c; cin >> a >> b >> c; --a, --b;
adj[a].push_back({b, c}), adj[b].push_back({a, c});
}
lines = vector<line>(n);
vis = vector<bool>(n);
all.resize(n);
for (int i = 0; i < n; ++i) solve(i);
cout << "YES\n";
for (double val : all) cout << val << ' ';
cout << '\n';
return 0;
}
Compilation message
Graph.cpp: In function 'void solve(int)':
Graph.cpp:70:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for (int i = 0; i < values.size(); ++i) negs[i] = {-values[i].first, i};
| ~~^~~~~~~~~~~~~~~
Graph.cpp:84:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
84 | for (int i = 0; i < pos.size(); ++i) pp[i + 1] = pp[i] - pos[i];
| ~~^~~~~~~~~~~~
Graph.cpp:85:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for (int i = 0; i < neg.size(); ++i) pn[i + 1] = pn[i] - neg[i];
| ~~^~~~~~~~~~~~
Graph.cpp:89:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | while (pi < pos.size() && pos[pi] < num) ++pi;
| ~~~^~~~~~~~~~~~
Graph.cpp:96:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | while (ni < neg.size() && neg[ni] < num) ++ni;
| ~~~^~~~~~~~~~~~
Graph.cpp:110:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
110 | for (int i = 0; i < values.size(); ++i) {
| ~~^~~~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
answer = YES |
2 |
Correct |
0 ms |
212 KB |
answer = YES |
3 |
Correct |
0 ms |
212 KB |
answer = YES |
4 |
Correct |
0 ms |
212 KB |
answer = NO |
5 |
Correct |
0 ms |
212 KB |
answer = YES |
6 |
Correct |
0 ms |
212 KB |
answer = YES |
7 |
Correct |
0 ms |
212 KB |
answer = YES |
8 |
Correct |
1 ms |
212 KB |
answer = YES |
9 |
Correct |
0 ms |
212 KB |
answer = NO |
10 |
Correct |
0 ms |
212 KB |
answer = YES |
11 |
Correct |
0 ms |
212 KB |
answer = YES |
12 |
Correct |
0 ms |
212 KB |
answer = NO |
13 |
Correct |
0 ms |
212 KB |
answer = YES |
14 |
Correct |
0 ms |
212 KB |
answer = YES |
15 |
Correct |
0 ms |
212 KB |
answer = YES |
16 |
Correct |
0 ms |
212 KB |
answer = YES |
17 |
Correct |
0 ms |
212 KB |
answer = YES |
18 |
Correct |
0 ms |
212 KB |
answer = YES |
19 |
Correct |
0 ms |
212 KB |
answer = YES |
20 |
Correct |
0 ms |
212 KB |
answer = YES |
21 |
Correct |
0 ms |
212 KB |
answer = YES |
22 |
Correct |
0 ms |
212 KB |
answer = NO |
23 |
Correct |
0 ms |
212 KB |
answer = NO |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
answer = YES |
2 |
Correct |
0 ms |
212 KB |
answer = YES |
3 |
Correct |
0 ms |
212 KB |
answer = YES |
4 |
Correct |
0 ms |
212 KB |
answer = NO |
5 |
Correct |
0 ms |
212 KB |
answer = YES |
6 |
Correct |
0 ms |
212 KB |
answer = YES |
7 |
Correct |
0 ms |
212 KB |
answer = YES |
8 |
Correct |
1 ms |
212 KB |
answer = YES |
9 |
Correct |
0 ms |
212 KB |
answer = NO |
10 |
Correct |
0 ms |
212 KB |
answer = YES |
11 |
Correct |
0 ms |
212 KB |
answer = YES |
12 |
Correct |
0 ms |
212 KB |
answer = NO |
13 |
Correct |
0 ms |
212 KB |
answer = YES |
14 |
Correct |
0 ms |
212 KB |
answer = YES |
15 |
Correct |
0 ms |
212 KB |
answer = YES |
16 |
Correct |
0 ms |
212 KB |
answer = YES |
17 |
Correct |
0 ms |
212 KB |
answer = YES |
18 |
Correct |
0 ms |
212 KB |
answer = YES |
19 |
Correct |
0 ms |
212 KB |
answer = YES |
20 |
Correct |
0 ms |
212 KB |
answer = YES |
21 |
Correct |
0 ms |
212 KB |
answer = YES |
22 |
Correct |
0 ms |
212 KB |
answer = NO |
23 |
Correct |
0 ms |
212 KB |
answer = NO |
24 |
Correct |
1 ms |
212 KB |
answer = YES |
25 |
Correct |
1 ms |
296 KB |
answer = YES |
26 |
Correct |
1 ms |
212 KB |
answer = YES |
27 |
Correct |
1 ms |
212 KB |
answer = YES |
28 |
Correct |
1 ms |
212 KB |
answer = YES |
29 |
Correct |
1 ms |
212 KB |
answer = YES |
30 |
Correct |
1 ms |
212 KB |
answer = NO |
31 |
Correct |
1 ms |
212 KB |
answer = YES |
32 |
Correct |
0 ms |
296 KB |
answer = YES |
33 |
Correct |
1 ms |
212 KB |
answer = YES |
34 |
Correct |
1 ms |
300 KB |
answer = YES |
35 |
Correct |
1 ms |
212 KB |
answer = YES |
36 |
Correct |
1 ms |
212 KB |
answer = YES |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
answer = YES |
2 |
Correct |
0 ms |
212 KB |
answer = YES |
3 |
Correct |
0 ms |
212 KB |
answer = YES |
4 |
Correct |
0 ms |
212 KB |
answer = NO |
5 |
Correct |
0 ms |
212 KB |
answer = YES |
6 |
Correct |
0 ms |
212 KB |
answer = YES |
7 |
Correct |
0 ms |
212 KB |
answer = YES |
8 |
Correct |
1 ms |
212 KB |
answer = YES |
9 |
Correct |
0 ms |
212 KB |
answer = NO |
10 |
Correct |
0 ms |
212 KB |
answer = YES |
11 |
Correct |
0 ms |
212 KB |
answer = YES |
12 |
Correct |
0 ms |
212 KB |
answer = NO |
13 |
Correct |
0 ms |
212 KB |
answer = YES |
14 |
Correct |
0 ms |
212 KB |
answer = YES |
15 |
Correct |
0 ms |
212 KB |
answer = YES |
16 |
Correct |
0 ms |
212 KB |
answer = YES |
17 |
Correct |
0 ms |
212 KB |
answer = YES |
18 |
Correct |
0 ms |
212 KB |
answer = YES |
19 |
Correct |
0 ms |
212 KB |
answer = YES |
20 |
Correct |
0 ms |
212 KB |
answer = YES |
21 |
Correct |
0 ms |
212 KB |
answer = YES |
22 |
Correct |
0 ms |
212 KB |
answer = NO |
23 |
Correct |
0 ms |
212 KB |
answer = NO |
24 |
Correct |
1 ms |
212 KB |
answer = YES |
25 |
Correct |
1 ms |
296 KB |
answer = YES |
26 |
Correct |
1 ms |
212 KB |
answer = YES |
27 |
Correct |
1 ms |
212 KB |
answer = YES |
28 |
Correct |
1 ms |
212 KB |
answer = YES |
29 |
Correct |
1 ms |
212 KB |
answer = YES |
30 |
Correct |
1 ms |
212 KB |
answer = NO |
31 |
Correct |
1 ms |
212 KB |
answer = YES |
32 |
Correct |
0 ms |
296 KB |
answer = YES |
33 |
Correct |
1 ms |
212 KB |
answer = YES |
34 |
Correct |
1 ms |
300 KB |
answer = YES |
35 |
Correct |
1 ms |
212 KB |
answer = YES |
36 |
Correct |
1 ms |
212 KB |
answer = YES |
37 |
Correct |
1 ms |
212 KB |
answer = YES |
38 |
Correct |
1 ms |
212 KB |
answer = YES |
39 |
Correct |
2 ms |
304 KB |
answer = YES |
40 |
Correct |
2 ms |
340 KB |
answer = YES |
41 |
Correct |
1 ms |
340 KB |
answer = NO |
42 |
Correct |
2 ms |
340 KB |
answer = YES |
43 |
Correct |
2 ms |
340 KB |
answer = YES |
44 |
Correct |
2 ms |
340 KB |
answer = YES |
45 |
Correct |
2 ms |
308 KB |
answer = YES |
46 |
Correct |
1 ms |
340 KB |
answer = YES |
47 |
Correct |
2 ms |
308 KB |
answer = YES |
48 |
Correct |
3 ms |
340 KB |
answer = YES |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
answer = YES |
2 |
Correct |
0 ms |
212 KB |
answer = YES |
3 |
Correct |
0 ms |
212 KB |
answer = YES |
4 |
Correct |
0 ms |
212 KB |
answer = NO |
5 |
Correct |
0 ms |
212 KB |
answer = YES |
6 |
Correct |
0 ms |
212 KB |
answer = YES |
7 |
Correct |
0 ms |
212 KB |
answer = YES |
8 |
Correct |
1 ms |
212 KB |
answer = YES |
9 |
Correct |
0 ms |
212 KB |
answer = NO |
10 |
Correct |
0 ms |
212 KB |
answer = YES |
11 |
Correct |
0 ms |
212 KB |
answer = YES |
12 |
Correct |
0 ms |
212 KB |
answer = NO |
13 |
Correct |
0 ms |
212 KB |
answer = YES |
14 |
Correct |
0 ms |
212 KB |
answer = YES |
15 |
Correct |
0 ms |
212 KB |
answer = YES |
16 |
Correct |
0 ms |
212 KB |
answer = YES |
17 |
Correct |
0 ms |
212 KB |
answer = YES |
18 |
Correct |
0 ms |
212 KB |
answer = YES |
19 |
Correct |
0 ms |
212 KB |
answer = YES |
20 |
Correct |
0 ms |
212 KB |
answer = YES |
21 |
Correct |
0 ms |
212 KB |
answer = YES |
22 |
Correct |
0 ms |
212 KB |
answer = NO |
23 |
Correct |
0 ms |
212 KB |
answer = NO |
24 |
Correct |
1 ms |
212 KB |
answer = YES |
25 |
Correct |
1 ms |
296 KB |
answer = YES |
26 |
Correct |
1 ms |
212 KB |
answer = YES |
27 |
Correct |
1 ms |
212 KB |
answer = YES |
28 |
Correct |
1 ms |
212 KB |
answer = YES |
29 |
Correct |
1 ms |
212 KB |
answer = YES |
30 |
Correct |
1 ms |
212 KB |
answer = NO |
31 |
Correct |
1 ms |
212 KB |
answer = YES |
32 |
Correct |
0 ms |
296 KB |
answer = YES |
33 |
Correct |
1 ms |
212 KB |
answer = YES |
34 |
Correct |
1 ms |
300 KB |
answer = YES |
35 |
Correct |
1 ms |
212 KB |
answer = YES |
36 |
Correct |
1 ms |
212 KB |
answer = YES |
37 |
Correct |
1 ms |
212 KB |
answer = YES |
38 |
Correct |
1 ms |
212 KB |
answer = YES |
39 |
Correct |
2 ms |
304 KB |
answer = YES |
40 |
Correct |
2 ms |
340 KB |
answer = YES |
41 |
Correct |
1 ms |
340 KB |
answer = NO |
42 |
Correct |
2 ms |
340 KB |
answer = YES |
43 |
Correct |
2 ms |
340 KB |
answer = YES |
44 |
Correct |
2 ms |
340 KB |
answer = YES |
45 |
Correct |
2 ms |
308 KB |
answer = YES |
46 |
Correct |
1 ms |
340 KB |
answer = YES |
47 |
Correct |
2 ms |
308 KB |
answer = YES |
48 |
Correct |
3 ms |
340 KB |
answer = YES |
49 |
Correct |
14 ms |
1620 KB |
answer = YES |
50 |
Correct |
13 ms |
1236 KB |
answer = YES |
51 |
Correct |
17 ms |
1608 KB |
answer = YES |
52 |
Correct |
10 ms |
1108 KB |
answer = NO |
53 |
Correct |
2 ms |
428 KB |
answer = YES |
54 |
Correct |
4 ms |
564 KB |
answer = YES |
55 |
Correct |
10 ms |
900 KB |
answer = YES |
56 |
Correct |
14 ms |
1584 KB |
answer = YES |
57 |
Correct |
14 ms |
1312 KB |
answer = YES |
58 |
Correct |
12 ms |
1308 KB |
answer = YES |
59 |
Correct |
11 ms |
1128 KB |
answer = YES |
60 |
Correct |
14 ms |
1432 KB |
answer = YES |
61 |
Correct |
7 ms |
696 KB |
answer = YES |
62 |
Correct |
139 ms |
6852 KB |
answer = NO |
63 |
Correct |
138 ms |
6988 KB |
answer = YES |
64 |
Correct |
135 ms |
6984 KB |
answer = NO |
65 |
Correct |
135 ms |
7024 KB |
answer = YES |
66 |
Correct |
3 ms |
468 KB |
answer = YES |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
answer = YES |
2 |
Correct |
0 ms |
212 KB |
answer = YES |
3 |
Correct |
0 ms |
212 KB |
answer = YES |
4 |
Correct |
0 ms |
212 KB |
answer = NO |
5 |
Correct |
0 ms |
212 KB |
answer = YES |
6 |
Correct |
0 ms |
212 KB |
answer = YES |
7 |
Correct |
0 ms |
212 KB |
answer = YES |
8 |
Correct |
1 ms |
212 KB |
answer = YES |
9 |
Correct |
0 ms |
212 KB |
answer = NO |
10 |
Correct |
0 ms |
212 KB |
answer = YES |
11 |
Correct |
0 ms |
212 KB |
answer = YES |
12 |
Correct |
0 ms |
212 KB |
answer = NO |
13 |
Correct |
0 ms |
212 KB |
answer = YES |
14 |
Correct |
0 ms |
212 KB |
answer = YES |
15 |
Correct |
0 ms |
212 KB |
answer = YES |
16 |
Correct |
0 ms |
212 KB |
answer = YES |
17 |
Correct |
0 ms |
212 KB |
answer = YES |
18 |
Correct |
0 ms |
212 KB |
answer = YES |
19 |
Correct |
0 ms |
212 KB |
answer = YES |
20 |
Correct |
0 ms |
212 KB |
answer = YES |
21 |
Correct |
0 ms |
212 KB |
answer = YES |
22 |
Correct |
0 ms |
212 KB |
answer = NO |
23 |
Correct |
0 ms |
212 KB |
answer = NO |
24 |
Correct |
1 ms |
212 KB |
answer = YES |
25 |
Correct |
1 ms |
296 KB |
answer = YES |
26 |
Correct |
1 ms |
212 KB |
answer = YES |
27 |
Correct |
1 ms |
212 KB |
answer = YES |
28 |
Correct |
1 ms |
212 KB |
answer = YES |
29 |
Correct |
1 ms |
212 KB |
answer = YES |
30 |
Correct |
1 ms |
212 KB |
answer = NO |
31 |
Correct |
1 ms |
212 KB |
answer = YES |
32 |
Correct |
0 ms |
296 KB |
answer = YES |
33 |
Correct |
1 ms |
212 KB |
answer = YES |
34 |
Correct |
1 ms |
300 KB |
answer = YES |
35 |
Correct |
1 ms |
212 KB |
answer = YES |
36 |
Correct |
1 ms |
212 KB |
answer = YES |
37 |
Correct |
1 ms |
212 KB |
answer = YES |
38 |
Correct |
1 ms |
212 KB |
answer = YES |
39 |
Correct |
2 ms |
304 KB |
answer = YES |
40 |
Correct |
2 ms |
340 KB |
answer = YES |
41 |
Correct |
1 ms |
340 KB |
answer = NO |
42 |
Correct |
2 ms |
340 KB |
answer = YES |
43 |
Correct |
2 ms |
340 KB |
answer = YES |
44 |
Correct |
2 ms |
340 KB |
answer = YES |
45 |
Correct |
2 ms |
308 KB |
answer = YES |
46 |
Correct |
1 ms |
340 KB |
answer = YES |
47 |
Correct |
2 ms |
308 KB |
answer = YES |
48 |
Correct |
3 ms |
340 KB |
answer = YES |
49 |
Correct |
14 ms |
1620 KB |
answer = YES |
50 |
Correct |
13 ms |
1236 KB |
answer = YES |
51 |
Correct |
17 ms |
1608 KB |
answer = YES |
52 |
Correct |
10 ms |
1108 KB |
answer = NO |
53 |
Correct |
2 ms |
428 KB |
answer = YES |
54 |
Correct |
4 ms |
564 KB |
answer = YES |
55 |
Correct |
10 ms |
900 KB |
answer = YES |
56 |
Correct |
14 ms |
1584 KB |
answer = YES |
57 |
Correct |
14 ms |
1312 KB |
answer = YES |
58 |
Correct |
12 ms |
1308 KB |
answer = YES |
59 |
Correct |
11 ms |
1128 KB |
answer = YES |
60 |
Correct |
14 ms |
1432 KB |
answer = YES |
61 |
Correct |
7 ms |
696 KB |
answer = YES |
62 |
Correct |
139 ms |
6852 KB |
answer = NO |
63 |
Correct |
138 ms |
6988 KB |
answer = YES |
64 |
Correct |
135 ms |
6984 KB |
answer = NO |
65 |
Correct |
135 ms |
7024 KB |
answer = YES |
66 |
Correct |
3 ms |
468 KB |
answer = YES |
67 |
Correct |
136 ms |
13324 KB |
answer = YES |
68 |
Correct |
129 ms |
13252 KB |
answer = YES |
69 |
Correct |
114 ms |
9128 KB |
answer = YES |
70 |
Correct |
189 ms |
13616 KB |
answer = YES |
71 |
Correct |
120 ms |
9148 KB |
answer = YES |
72 |
Correct |
156 ms |
13888 KB |
answer = YES |
73 |
Correct |
134 ms |
9872 KB |
answer = YES |
74 |
Correct |
83 ms |
6092 KB |
answer = YES |
75 |
Correct |
50 ms |
6128 KB |
answer = NO |
76 |
Correct |
17 ms |
1852 KB |
answer = YES |
77 |
Correct |
34 ms |
3640 KB |
answer = YES |
78 |
Correct |
64 ms |
6032 KB |
answer = YES |
79 |
Correct |
132 ms |
11900 KB |
answer = YES |
80 |
Correct |
109 ms |
8644 KB |
answer = YES |
81 |
Correct |
78 ms |
8812 KB |
answer = NO |
82 |
Correct |
130 ms |
9292 KB |
answer = YES |
83 |
Correct |
159 ms |
9264 KB |
answer = YES |
84 |
Correct |
162 ms |
13328 KB |
answer = YES |
85 |
Correct |
137 ms |
13288 KB |
answer = YES |
86 |
Correct |
118 ms |
9160 KB |
answer = YES |
87 |
Correct |
93 ms |
8956 KB |
answer = NO |
88 |
Correct |
147 ms |
9396 KB |
answer = YES |
89 |
Correct |
136 ms |
8992 KB |
answer = YES |
90 |
Correct |
131 ms |
9036 KB |
answer = YES |
91 |
Correct |
137 ms |
9004 KB |
answer = YES |
92 |
Correct |
67 ms |
5152 KB |
answer = YES |
93 |
Correct |
69 ms |
5084 KB |
answer = YES |
94 |
Correct |
95 ms |
9268 KB |
answer = NO |
95 |
Incorrect |
159 ms |
8940 KB |
Sum of endpoints for edge (92520; 87636) differs from the expected value 1. |
96 |
Halted |
0 ms |
0 KB |
- |