QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#525716 | #2674. Vision program | arbuzick# | 10 | 12ms | 5144kb | C++20 | 4.9kb | 2024-08-20 21:04:33 | 2024-08-20 21:04:33 |
Judging History
answer
#include "vision.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> get_short(vector<int> ns) {
map<int, int> cnt;
for (auto vl : ns) {
cnt[vl]++;
}
vector<int> ns2;
for (auto [vl, c] : cnt) {
if (c % 2 == 1) {
ns2.push_back(vl);
}
}
if (ns2.empty()) {
ns2.push_back(0);
ns2.push_back(0);
}
return ns2;
}
vector<vector<int>> multiply(vector<int> a, vector<int> b, bool fl = false) {
vector<vector<int>> res(a.size() + b.size() - 1);
if (a.size() == 1) {
for (int i = 0; i < (int)res.size(); ++i) {
res[i].push_back(add_and({a[0], b[i]}));
}
return res;
}
// cout << a.size() << ' ' << b.size() << endl;
vector<int> a1, a2, b1, b2;
for (int i = 0; i < ((int)a.size() + 1) / 2; ++i) {
a1.push_back(a[i]);
}
for (int i = ((int)a.size() + 1) / 2; i < (int)a.size(); ++i) {
a2.push_back(a[i]);
}
for (int i = 0; i < ((int)b.size() + 1) / 2; ++i) {
b1.push_back(b[i]);
}
for (int i = ((int)b.size() + 1) / 2; i < (int)b.size(); ++i) {
b2.push_back(b[i]);
}
// cout << a1.size() << ' ' << a2.size() << endl;
vector<int> a12(max(a1.size(), a2.size())), b12(max(b1.size(), b2.size()));
for (int i = 0; i < (int)a12.size(); ++i) {
if (i < (int)a1.size() && i < (int)a2.size()) {
a12[i] = add_xor({a1[i], a2[i]});
} else if (i < (int)a1.size()) {
a12[i] = a1[i];
} else {
a12[i] = a2[i];
}
}
for (int i = 0; i < (int)b12.size(); ++i) {
if (i < (int)b1.size() && i < (int)b2.size()) {
b12[i] = add_xor({b1[i], b2[i]});
} else if (i < (int)b1.size()) {
b12[i] = b1[i];
} else {
b12[i] = b2[i];
}
}
vector<vector<int>> res1 = multiply(a1, b1), res2 = multiply(a12, b12), res3(a2.size() + b2.size() - 1);
if (!fl) {
res3 = multiply(a2, b2);
}
vector<vector<int>> temp(res.size());
for (int i = 0; i < (int)res2.size(); ++i) {
if (i < (int)res1.size() && i < (int)res3.size()) {
for (auto vl : res1[i]) {
temp[i + a1.size()].push_back(vl);
}
for (auto vl : res3[i]) {
temp[i + a1.size()].push_back(vl);
}
} else if (i < (int)res1.size()) {
for (auto vl : res1[i]) {
temp[i + a1.size()].push_back(vl);
}
} else if (i < (int)res3.size()) {
for (auto vl : res3[i]) {
temp[i + a1.size()].push_back(vl);
}
}
}
for (int i = 0; i < (int)res1.size(); ++i) {
for (auto vl : res1[i]) {
temp[i].push_back(vl);
}
}
for (int i = 0; i < (int)res2.size(); ++i) {
for (auto vl : res2[i]) {
temp[i + a1.size()].push_back(vl);
}
}
for (int i = 0; i < (int)res3.size(); ++i) {
for (auto vl : res3[i]) {
temp[i + a1.size() + b1.size()].push_back(vl);
}
}
return temp;
}
void construct_network(int h, int w, int k) {
vector<int> hs(h), ws(w);
for (int i = 0; i < h; ++i) {
vector<int> ns;
for (int j = 0; j < w; ++j) {
ns.push_back(i * w + j);
}
hs[i] = add_or(ns);
}
for (int i = 0; i < w; ++i) {
vector<int> ns;
for (int j = 0; j < h; ++j) {
ns.push_back(j * w + i);
}
ws[i] = add_or(ns);
}
vector<int> hd(h), wd(w);
vector<int> a = hs, b = hs;
reverse(b.begin(), b.end());
vector<vector<int>> res = multiply(a, b, true);
hd[0] = add_xor(hs);
for (int i = 1; i < h; ++i) {
res[h - 1 - i] = get_short(res[h - 1 - i]);
// res[h - 1 + i] = get_short(res[h - 1 + i]);
int t1 = add_xor(res[h - 1 - i]);
// int t2 = add_xor(res[h - 1 + i]);
// hd[i] = add_or({t1, t2});
hd[i] = t1;
}
a = ws, b = ws;
reverse(b.begin(), b.end());
res = multiply(a, b, true);
wd[0] = add_xor(ws);
for (int i = 1; i < w; ++i) {
res[w - 1 - i] = get_short(res[w - 1 - i]);
// res[w - 1 + i] = get_short(res[w - 1 + i]);
int t1 = add_xor(res[w - 1 - i]);
// int t2 = add_xor(res[w - 1 + i]);
// wd[i] = add_or({t1, t2});
wd[i] = t1;
}
vector<int> temp;
for (int i = 0; i < (int)hd.size() && i <= k; ++i) {
if (k - i < (int)wd.size()) {
if (w != 1 && h != 1) {
temp.push_back(add_and({hd[i], wd[k - i]}));
} else if (i == 0 || i == k) {
temp.push_back(add_and({hd[i], wd[k - i]}));
}
}
}
add_or(temp);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 10
Accepted
Test #1:
score: 10
Accepted
time: 0ms
memory: 3816kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 3 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 23 1 3 0 1 2 1 1 0 1 1 1 1 1 2 0 2 3 3 2 1 3 2 2 4 6 2 2 6 4 2 2 4 5 2 2 6 5 0 2 4 6 0 2 11 12 0 2 5 5 2 2 9 5 2 2 10 5 0 2 9 10 0 2 16 17 0 2 5 5 2 3 4 5 6 2 3 13 14 15 2 1 13 0 2 8 22 1 1 24
result:
ok
Test #2:
score: 10
Accepted
time: 0ms
memory: 3788kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 3 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 23 1 3 0 1 2 1 1 0 1 1 1 1 1 2 0 2 3 3 2 1 3 2 2 4 6 2 2 6 4 2 2 4 5 2 2 6 5 0 2 4 6 0 2 11 12 0 2 5 5 2 2 9 5 2 2 10 5 0 2 9 10 0 2 16 17 0 2 5 5 2 3 4 5 6 2 3 13 14 15 2 1 13 0 2 8 23 1 1 24
result:
ok
Test #3:
score: 10
Accepted
time: 0ms
memory: 3888kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 1 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 23 1 1 0 1 1 1 1 1 2 1 3 0 1 2 2 2 3 5 2 2 5 3 2 2 3 4 2 2 5 4 0 2 3 5 0 2 9 10 0 2 4 4 2 2 7 4 2 2 8 4 0 2 7 8 0 2 14 15 0 2 4 4 2 3 3 4 5 2 3 11 12 13 2 1 11 0 2 6 6 2 1 6 0 2 20 23 1 1 24
result:
ok
Test #4:
score: 10
Accepted
time: 0ms
memory: 3796kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 1 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 23 1 1 0 1 1 1 1 1 2 1 3 0 1 2 2 2 3 5 2 2 5 3 2 2 3 4 2 2 5 4 0 2 3 5 0 2 9 10 0 2 4 4 2 2 7 4 2 2 8 4 0 2 7 8 0 2 14 15 0 2 4 4 2 3 3 4 5 2 3 11 12 13 2 1 11 0 2 6 6 2 1 6 0 2 21 23 1 1 24
result:
ok
Test #5:
score: 10
Accepted
time: 0ms
memory: 4080kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 19 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 4 5 2 2 5 4 0 2 4 5 0 2 8 9 2 2 4 5 2 1 10 2 2 6 7 2 2 7 6 0 2 6 7 0 2 14 15 2 2 6 7 2 1 16 0 2 12 19 0 2 13 18 1 2 20 21
result:
ok
Test #6:
score: 10
Accepted
time: 0ms
memory: 3812kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 18 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 4 5 2 2 5 4 0 2 4 5 0 2 8 9 2 2 4 5 2 1 10 2 2 6 7 2 2 7 6 0 2 6 7 0 2 14 15 2 2 6 7 2 1 16 0 2 13 19 1 1 20
result:
ok
Test #7:
score: 10
Accepted
time: 0ms
memory: 3820kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 3 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 29 1 3 0 1 2 1 3 3 4 5 1 2 0 3 1 2 1 4 1 2 2 5 2 2 6 7 2 2 7 6 0 2 6 7 0 2 11 12 2 2 6 7 2 1 13 2 2 8 10 2 2 10 8 2 2 8 9 2 2 10 9 0 2 8 10 0 2 19 20 0 2 9 9 2 2 17 9 2 2 18 9 0 2 17 18 0 2 24 25 0 2 9 9 2 3 8 9 10 2 3 21 22 23 2 1 21 0 2 15 30 0 2 16 29 1 2 3...
result:
ok
Test #8:
score: 10
Accepted
time: 0ms
memory: 3788kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 3 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 29 1 3 0 1 2 1 3 3 4 5 1 2 0 3 1 2 1 4 1 2 2 5 2 2 6 7 2 2 7 6 0 2 6 7 0 2 11 12 2 2 6 7 2 1 13 2 2 8 10 2 2 10 8 2 2 8 9 2 2 10 9 0 2 8 10 0 2 19 20 0 2 9 9 2 2 17 9 2 2 18 9 0 2 17 18 0 2 24 25 0 2 9 9 2 3 8 9 10 2 3 21 22 23 2 1 21 0 2 15 31 0 2 16 30 1 2 3...
result:
ok
Test #9:
score: 10
Accepted
time: 0ms
memory: 3820kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 3 3 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 28 1 3 0 1 2 1 3 3 4 5 1 2 0 3 1 2 1 4 1 2 2 5 2 2 6 7 2 2 7 6 0 2 6 7 0 2 11 12 2 2 6 7 2 1 13 2 2 8 10 2 2 10 8 2 2 8 9 2 2 10 9 0 2 8 10 0 2 19 20 0 2 9 9 2 2 17 9 2 2 18 9 0 2 17 18 0 2 24 25 0 2 9 9 2 3 8 9 10 2 3 21 22 23 2 1 21 0 2 16 31 1 1 32
result:
ok
Test #10:
score: 10
Accepted
time: 0ms
memory: 3820kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 2 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 29 1 2 0 1 1 2 2 3 1 2 4 5 1 3 0 2 4 1 3 1 3 5 2 2 6 8 2 2 8 6 2 2 6 7 2 2 8 7 0 2 6 8 0 2 13 14 0 2 7 7 2 2 11 7 2 2 12 7 0 2 11 12 0 2 18 19 0 2 7 7 2 3 6 7 8 2 3 15 16 17 2 1 15 2 2 9 10 2 2 10 9 0 2 9 10 0 2 26 27 2 2 9 10 2 1 28 0 2 23 31 0 2 24 30 1 2 32...
result:
ok
Test #11:
score: 10
Accepted
time: 0ms
memory: 3748kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 2 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 29 1 2 0 1 1 2 2 3 1 2 4 5 1 3 0 2 4 1 3 1 3 5 2 2 6 8 2 2 8 6 2 2 6 7 2 2 8 7 0 2 6 8 0 2 13 14 0 2 7 7 2 2 11 7 2 2 12 7 0 2 11 12 0 2 18 19 0 2 7 7 2 3 6 7 8 2 3 15 16 17 2 1 15 2 2 9 10 2 2 10 9 0 2 9 10 0 2 26 27 2 2 9 10 2 1 28 0 2 24 31 0 2 25 30 1 2 32...
result:
ok
Test #12:
score: 10
Accepted
time: 0ms
memory: 3792kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 2 3 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 28 1 2 0 1 1 2 2 3 1 2 4 5 1 3 0 2 4 1 3 1 3 5 2 2 6 8 2 2 8 6 2 2 6 7 2 2 8 7 0 2 6 8 0 2 13 14 0 2 7 7 2 2 11 7 2 2 12 7 0 2 11 12 0 2 18 19 0 2 7 7 2 3 6 7 8 2 3 15 16 17 2 1 15 2 2 9 10 2 2 10 9 0 2 9 10 0 2 26 27 2 2 9 10 2 1 28 0 2 25 31 1 1 32
result:
ok
Test #13:
score: 10
Accepted
time: 0ms
memory: 4040kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 3 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 39 1 3 0 1 2 1 3 3 4 5 1 3 6 7 8 1 3 0 3 6 1 3 1 4 7 1 3 2 5 8 2 2 9 11 2 2 11 9 2 2 9 10 2 2 11 10 0 2 9 11 0 2 17 18 0 2 10 10 2 2 15 10 2 2 16 10 0 2 15 16 0 2 22 23 0 2 10 10 2 3 9 10 11 2 3 19 20 21 2 1 19 2 2 12 14 2 2 14 12 2 2 12 13 2 2 14 13 0 2 12 14...
result:
ok
Test #14:
score: 10
Accepted
time: 0ms
memory: 3792kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 3 2 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 40 1 3 0 1 2 1 3 3 4 5 1 3 6 7 8 1 3 0 3 6 1 3 1 4 7 1 3 2 5 8 2 2 9 11 2 2 11 9 2 2 9 10 2 2 11 10 0 2 9 11 0 2 17 18 0 2 10 10 2 2 15 10 2 2 16 10 0 2 15 16 0 2 22 23 0 2 10 10 2 3 9 10 11 2 3 19 20 21 2 1 19 2 2 12 14 2 2 14 12 2 2 12 13 2 2 14 13 0 2 12 14...
result:
ok
Test #15:
score: 10
Accepted
time: 0ms
memory: 3744kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 3 3 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 39 1 3 0 1 2 1 3 3 4 5 1 3 6 7 8 1 3 0 3 6 1 3 1 4 7 1 3 2 5 8 2 2 9 11 2 2 11 9 2 2 9 10 2 2 11 10 0 2 9 11 0 2 17 18 0 2 10 10 2 2 15 10 2 2 16 10 0 2 15 16 0 2 22 23 0 2 10 10 2 3 9 10 11 2 3 19 20 21 2 1 19 2 2 12 14 2 2 14 12 2 2 12 13 2 2 14 13 0 2 12 14...
result:
ok
Test #16:
score: 10
Accepted
time: 1ms
memory: 3788kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 3 3 4 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 38 1 3 0 1 2 1 3 3 4 5 1 3 6 7 8 1 3 0 3 6 1 3 1 4 7 1 3 2 5 8 2 2 9 11 2 2 11 9 2 2 9 10 2 2 11 10 0 2 9 11 0 2 17 18 0 2 10 10 2 2 15 10 2 2 16 10 0 2 15 16 0 2 22 23 0 2 10 10 2 3 9 10 11 2 3 19 20 21 2 1 19 2 2 12 14 2 2 14 12 2 2 12 13 2 2 14 13 0 2 12 14...
result:
ok
Test #17:
score: 10
Accepted
time: 0ms
memory: 3788kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 2 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 13 1 2 0 1 1 1 0 1 1 1 0 2 2 2 2 1 2 2 2 3 4 2 2 4 3 0 2 3 4 0 2 7 8 2 2 3 4 2 1 9 0 2 6 12 1 1 13
result:
ok
Test #18:
score: 10
Accepted
time: 0ms
memory: 3788kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 1 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 13 1 1 0 1 1 1 1 2 0 1 2 2 2 3 2 2 3 2 0 2 2 3 0 2 5 6 2 2 2 3 2 1 7 0 2 4 4 2 1 4 0 2 10 12 1 1 13
result:
ok
Subtask #2:
score: 0
Wrong Answer
Test #19:
score: 0
Wrong Answer
time: 0ms
memory: 4100kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 9 3 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 101 1 9 0 1 2 3 4 5 6 7 8 1 1 0 1 1 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 0 2 9 9 2 1 9 2 2 10 15 2 2 11 16 2 2 12 17 2 2 13 18 2 2 18 13 2 2 17 12 2 2 16 11 2 2 15 10 2 2 10 13 2 2 11 14 2 2 18 15 2 2 17 14 2 2 10 12 2 2 18 16 2 2 10 11 2 2 18 17 0 2 10...
result:
wrong answer on inputs (0, 3), (0, 5), expected 0, but computed 1
Subtask #3:
score: 0
Skipped
Dependency #2:
0%
Subtask #4:
score: 0
Skipped
Dependency #3:
0%
Subtask #5:
score: 0
Wrong Answer
Test #48:
score: 0
Wrong Answer
time: 3ms
memory: 4620kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 1 -1
output:
b17553fd-ba5a-4140-836c-491f938c515b WA Too many instructions
result:
wrong answer WA in grader: Too many instructions
Subtask #6:
score: 0
Wrong Answer
Test #70:
score: 8
Accepted
time: 0ms
memory: 3744kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 1 3 128 128 129 128 130 128 131
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 19 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 4 5 2 2 5 4 0 2 4 5 0 2 8 9 2 2 4 5 2 1 10 2 2 6 7 2 2 7 6 0 2 6 7 0 2 14 15 2 2 6 7 2 1 16 0 2 12 19 0 2 13 18 1 2 20 21
result:
ok
Test #71:
score: 8
Accepted
time: 0ms
memory: 3812kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 2 2 2 3 129 129 128 129 131 129 130
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 18 1 2 0 1 1 2 2 3 1 2 0 2 1 2 1 3 2 2 4 5 2 2 5 4 0 2 4 5 0 2 8 9 2 2 4 5 2 1 10 2 2 6 7 2 2 7 6 0 2 6 7 0 2 14 15 2 2 6 7 2 1 16 0 2 13 19 1 1 20
result:
ok
Test #72:
score: 8
Accepted
time: 6ms
memory: 4288kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 1 8 254 254 255 254 227 254 252 254 196 254 224 254 2958 254 2986 254 226
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 4075 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 8...
result:
ok
Test #73:
score: 8
Accepted
time: 6ms
memory: 4620kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 31 92 284 284 330 284 634 284 598 284 114 284 366 284 966 284 814 284 922 284 510 284 474 284 194 284 930 284 42 284 230 284 1002 284 438 284 526 284 778 284 186 284 6 284 958 284 150 284 562 284 886 284 78 284 402 284 850 284 482 284 222 284 367 284 671 2...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 4102 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 8...
result:
ok
Test #74:
score: 8
Accepted
time: 6ms
memory: 4336kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 64 92 317 317 1326 317 1566 317 1090 317 1962 317 1046 317 1890 317 2034 317 1190 317 1934 317 1442 317 1074 317 1846 317 1118 317 1234 317 1298 317 1162 317 1862 317 1398 317 2006 317 1918 317 1470 317 1262 317 1514 317 1370 317 1594 317 1486 317 1414 317...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 4102 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 8...
result:
ok
Test #75:
score: 8
Accepted
time: 6ms
memory: 4360kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 95 92 348 348 1738 348 3066 348 1682 348 2058 348 2886 348 3030 348 2830 348 2094 348 2866 348 1774 348 2454 348 2310 348 2546 348 2490 348 2238 348 2258 348 2510 348 2142 348 2394 348 2294 348 2402 348 2202 348 2114 348 2922 348 2430 348 1718 348 2210 348...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 4102 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 8...
result:
ok
Test #76:
score: 8
Accepted
time: 6ms
memory: 4592kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 101 29 128 7 381 381 2606 381 2578 381 2573 381 2601 381 352 381 353 381 380
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 4074 1 29 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 8...
result:
ok
Test #77:
score: 8
Accepted
time: 12ms
memory: 4948kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 1 8 303 303 302 303 424 303 301 303 33 303 423 303 5660 303 6018 303 425
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 6683 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #78:
score: 8
Accepted
time: 8ms
memory: 5140kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 45 97 347 347 375 347 6133 347 523 347 4413 347 653 347 1205 347 99 347 4137 347 2885 347 489 347 3097 347 2397 347 1755 347 2519 347 4535 347 229 347 5369 347 2673 347 2121 347 3071 347 5191 347 3585 347 3771 347 3437 347 1075 347 4901 347 4817 347 1465 3...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 6725 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #79:
score: 8
Accepted
time: 8ms
memory: 4876kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 89 97 391 391 479 391 5981 391 1413 391 3439 391 3021 391 1949 391 6099 391 4657 391 2903 391 1697 391 5445 391 5193 391 3557 391 2651 391 2367 391 763 391 1295 391 4491 391 2485 391 1043 391 1161 391 4909 391 4791 391 4373 391 2115 391 4255 391 2233 391 3...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 6725 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #80:
score: 8
Accepted
time: 8ms
memory: 5140kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 133 96 435 435 311 435 5813 435 5939 435 2265 435 2115 435 5193 435 1287 435 3515 435 2895 435 1761 435 4491 435 4689 435 2391 435 3987 435 5469 435 4217 435 2609 435 3113 435 1643 435 4365 435 539 435 1919 435 657 435 3389 435 3861 435 3013 435 3585 435 5...
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 6725 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #81:
score: 8
Accepted
time: 12ms
memory: 5144kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 44 135 177 7 479 479 6003 479 5869 479 5868 479 6002 479 344 479 345 479 478
output:
b17553fd-ba5a-4140-836c-491f938c515b OK 6682 1 135 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...
result:
ok
Test #82:
score: 0
Wrong Answer
time: 0ms
memory: 4676kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 1 199 1 3 324 324 325 324 326 324 386
output:
b17553fd-ba5a-4140-836c-491f938c515b WA Too many instructions
result:
wrong answer WA in grader: Too many instructions
Subtask #7:
score: 0
Wrong Answer
Test #101:
score: 0
Wrong Answer
time: 3ms
memory: 4956kb
input:
c2675211-ade0-44b0-8c15-741dd835f3d2 200 200 1 100 524 24804 34853 20956 34628 18830 29184 28919 32573 11364 24911 2226 5624 3715 30838 2206 17143 21162 27531 20198 27242 5007 12724 27160 32586 3535 7307 17015 25466 626 13891 9132 26194 9198 33073 815 7328 6938 21395 9489 30995 10804 21530 14698 394...
output:
b17553fd-ba5a-4140-836c-491f938c515b WA Too many instructions
result:
wrong answer WA in grader: Too many instructions
Subtask #8:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
0%