QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#352352#2674. Vision programCyanmond10 8ms4532kbC++205.1kb2024-03-13 10:16:072024-03-13 10:16:07

Judging History

你现在查看的是最新测评结果

  • [2024-03-13 10:16:07]
  • 评测
  • 测评结果:10
  • 用时:8ms
  • 内存:4532kb
  • [2024-03-13 10:16:07]
  • 提交

answer

#include "vision.h"
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

template <class T> using Vec = std::vector<T>;
#define L(i, l, r) for (int i = (l); i < (r); ++i)
#define R(i, l, r) for (int i = (r - 1); i >= (l); --i)
#define ALL(x) (x).begin(), (x).end()
#define sz(x) (int)(x.size())

int startH, endH, startW, endW;
int zeroP, oneP;

int nwId;

pair<int, int> process(int inStartPos, int inEndPos) {
	const int n = inEndPos - inStartPos;
	const int B = sqrt(n);
	Vec<pair<int, int>> blocks;
	for (int l = 0; l < n; l += B) {
		blocks.push_back({l, min(l + B, n)});
	}
	int nBlock = sz(blocks);
	int isSame = nwId++;
	{
		Vec<int> ns;
		L(i, 0, n) ns.push_back(inStartPos + i);
		add_xor(ns);
	}
	add_not(isSame); int isNotSame = nwId++;

	Vec<int> mns, mxs;
	{
		add_not(zeroP); ++nwId;
		Vec<int> ns;
		L(i, 0, n) {
			add_and({inStartPos + i, nwId - 1});
			add_xor({nwId - 1, inStartPos + i});
			mns.push_back(nwId);
			nwId += 2;
		}
		add_not(oneP); ++nwId;
		L(i, 0, n) {
			add_and({inStartPos + i, nwId - 1});
			add_xor({nwId - 1, inStartPos + i});
			mxs.push_back(nwId);
			nwId += 2;
		}
	}

	int isNotSameBlock = -1;
	{
		int s = nwId;
		for (auto &[l, r] : blocks) {
			Vec<int> ns;
			L(i, l, r) ns.push_back(inStartPos + i);
			add_xor(ns); ++nwId;
		}
		Vec<int> ns;
		L(i, s, nwId) ns.push_back(i);
		add_or(ns); isNotSameBlock = nwId++;
	}
	add_not(isNotSameBlock); int isSameBlock = nwId++;

	// 同じブロックな場合の距離テーブル
	int startSameBlockDisTablePos = -1, endSameBlockDisTablePos = -1;
	{
		Vec<int> ps;
		L(i, 0, B) L(j, i + 1, B) {
			Vec<int> ns;
			L(k, 0, nBlock) {
				if (blocks[k].first + j >= blocks[k].second) continue;
				ns.push_back(inStartPos + blocks[k].first + i);
				ns.push_back(inStartPos + blocks[k].first + j);
			}
			add_or(ns);ns.push_back(oneP);add_xor(ns);
			add_and({nwId, nwId + 1}); nwId += 3; ps.push_back(nwId - 1);
		}
		startSameBlockDisTablePos = nwId;
		L(dis, 0, B) {
			Vec<int> ns;
			int cnt = 0;
			L(i, 0, B) L(j, i + 1, B) {
				if (j - i == 0) ns.push_back(ps[cnt]);
				++cnt;
			}
			ns.push_back(zeroP);
			add_or(ns); ++nwId;
		}
		endSameBlockDisTablePos = nwId;
	}

	int startDifBlockDisTablePos = -1, endDifBlockDisTablePos = -1;
	{
		Vec<int> ps;
		L(i, 0, B) L(j, 0, B) {
			Vec<int> ns;
			L(k, 0, nBlock) {
				if (blocks[k].first + j >= blocks[k].second) continue;
				ns.push_back(mns[blocks[k].first + i]);
				ns.push_back(mxs[blocks[k].first + j]);
			}
			add_or(ns);ns.push_back(oneP);add_xor(ns);
			add_and({nwId, nwId + 1}); nwId += 3; ps.push_back(nwId - 1);
		}
		startDifBlockDisTablePos = nwId;
		L(dis, 0, 2 * B) {
			Vec<int> ns;
			int cnt = 0;
			L(i, 0, B) L(j, 0, B) {
				if (j + (B - i) == dis) ns.push_back(ps[cnt]);
				++cnt;
			}
			ns.push_back(zeroP);
			add_or(ns); ++nwId;
		}
		endDifBlockDisTablePos = nwId;
	}

	int startBtDifBlockPos = -1, endBtDifBlockPos = -1;
	{
		Vec<int> ps;
		L(i, 0, nBlock) L(j, i + 1, nBlock) {
			Vec<int> ns;
			L(k, blocks[i].first, blocks[i].second) ns.push_back(inStartPos + k);
			ns.push_back(zeroP); add_or(ns); ++nwId;
			ns.clear();
			L(k, blocks[j].first, blocks[j].second) ns.push_back(inStartPos + k);
			ns.push_back(zeroP); add_or(ns); ++nwId;
			add_and({nwId - 2, nwId - 1}); ps.push_back(nwId++);
		}
		startBtDifBlockPos = nwId;
		L(dis, 0, nBlock) {
			Vec<int> ns;
			int cnt = 0;
			L(i, 0, nBlock) L(j, i + 1, nBlock) {
				if (j - i == dis) ns.push_back(ps[cnt]);
				++cnt;
			}
			ns.push_back(zeroP);
			add_or(ns); ++nwId;
		}
		endBtDifBlockPos = nwId;
	}

	// 違うブロックの場合の距離テーブル
	Vec<int> difBlockTable;
	{
		L(dis, 0, n) {
			Vec<int> ps;
			L(i, 0, 2 * B) L(j, 0, nBlock) {
				if (i + (j - 1) * B == dis) {
					add_and({startDifBlockDisTablePos + i, startBtDifBlockPos + j});
					ps.push_back(nwId++);
				}
			}
			ps.push_back(zeroP);
			add_or(ps);
			difBlockTable.push_back(nwId++);
		}
	}

	// 集計
	int aStart = nwId;
	L(i, 0, n) {
		add_and({isNotSame, isSameBlock, (i >= B ? zeroP : startSameBlockDisTablePos + i)});
		++nwId;
	}
	int bStart = nwId;
	L(i, 0, n) {
		add_and({isNotSame, isNotSameBlock, difBlockTable[i]});
		++nwId;
	}
	int retL = nwId;
	add_not(isNotSame); ++nwId;
	L(i, 1, n) {
		add_or({aStart + i, bStart + i}); ++nwId;
	}
	int retR = nwId;
	return {retL, retR};
}

void construct_network(int H, int W, int K) {
	nwId = H * W;
	add_not(0); ++nwId;
	add_and({0, nwId - 1}); zeroP = nwId++;
	add_or({0, nwId - 2}); oneP = nwId++;
	startH = nwId;
	endH = nwId + H;
	nwId += H;
	L(i, 0, H) {
		Vec<int> ns;
		L(j, 0, W) ns.push_back(i * W + j);
		add_or(ns);
	}
	startW = nwId;
	endW = nwId + W;
	nwId += W;
	L(j, 0, W) {
		Vec<int> ns;
		L(i, 0, H) ns.push_back(i * W + j);
		add_or(ns);
	}

	auto [al, ar] = process(startH, endH);
	auto [bl, br] = process(startW, endW);
	int lsStart = nwId;
	Vec<int> ns;
	L(i, 0, H) L(j, 0, W) {
		if (i + j == K) {
			add_and({al + i, bl + j}); ++nwId;
		}
	}
	L(i, lsStart, nwId) ns.push_back(i);
	add_or(ns);
	// ans !
}

详细

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3992kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
88
3 0
0 2 0 3
1 2 0 3
1 3 0 1 2
1 1 0
1 1 1
1 1 2
2 1 6
3 10
3 4
0 2 6 12
2 2 12 6
3 5
0 2 6 15
2 2 15 6
2 1 6
1 1 18
3 19
1 1 4
1 2 13 16
2 3 13 16 5
0 2 22 23
1 1 4
1 2 24 4
1 1 4
0 2 26 27
1 2 28 4
0 3 11 20 21
0 3 11 19 29
3 11
2 3 7 8 9
3 33
3 4
0 2 7 35...

result:

ok 

Test #2:

score: 0
Accepted
time: 1ms
memory: 3752kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
88
3 0
0 2 0 3
1 2 0 3
1 3 0 1 2
1 1 0
1 1 1
1 1 2
2 1 6
3 10
3 4
0 2 6 12
2 2 12 6
3 5
0 2 6 15
2 2 15 6
2 1 6
1 1 18
3 19
1 1 4
1 2 13 16
2 3 13 16 5
0 2 22 23
1 1 4
1 2 24 4
1 1 4
0 2 26 27
1 2 28 4
0 3 11 20 21
0 3 11 19 29
3 11
2 3 7 8 9
3 33
3 4
0 2 7 35...

result:

ok 

Test #3:

score: 0
Accepted
time: 0ms
memory: 4012kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
88
3 0
0 2 0 3
1 2 0 3
1 1 0
1 1 1
1 1 2
1 3 0 1 2
2 3 6 7 8
3 10
3 4
0 2 6 12
2 2 12 6
0 2 7 14
2 2 14 7
0 2 8 16
2 2 16 8
3 5
0 2 6 19
2 2 19 6
0 2 7 21
2 2 21 7
0 2 8 23
2 2 23 8
2 1 6
2 1 7
2 1 8
1 3 26 27 28
3 29
1 1 4
1 6 13 20 15 22 17 24
2 7 13 20 15 2...

result:

ok 

Test #4:

score: 0
Accepted
time: 0ms
memory: 4072kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 1 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
88
3 0
0 2 0 3
1 2 0 3
1 1 0
1 1 1
1 1 2
1 3 0 1 2
2 3 6 7 8
3 10
3 4
0 2 6 12
2 2 12 6
0 2 7 14
2 2 14 7
0 2 8 16
2 2 16 8
3 5
0 2 6 19
2 2 19 6
0 2 7 21
2 2 21 7
0 2 8 23
2 2 23 8
2 1 6
2 1 7
2 1 8
1 3 26 27 28
3 29
1 1 4
1 6 13 20 15 22 17 24
2 7 13 20 15 2...

result:

ok 

Test #5:

score: 0
Accepted
time: 0ms
memory: 3852kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
86
3 0
0 2 0 4
1 2 0 4
1 2 0 1
1 2 2 3
1 2 0 2
1 2 1 3
2 2 7 8
3 11
3 5
0 2 7 13
2 2 13 7
0 2 8 15
2 2 15 8
3 6
0 2 7 18
2 2 18 7
0 2 8 20
2 2 20 8
2 1 7
2 1 8
1 2 23 24
3 25
1 1 5
1 4 14 19 16 21
2 5 14 19 16 21 6
0 2 28 29
1 1 5
1 2 30 5
1 2 7 5
1 2 8 5
0 2 ...

result:

ok 

Test #6:

score: 0
Accepted
time: 0ms
memory: 3884kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
85
3 0
0 2 0 4
1 2 0 4
1 2 0 1
1 2 2 3
1 2 0 2
1 2 1 3
2 2 7 8
3 11
3 5
0 2 7 13
2 2 13 7
0 2 8 15
2 2 15 8
3 6
0 2 7 18
2 2 18 7
0 2 8 20
2 2 20 8
2 1 7
2 1 8
1 2 23 24
3 25
1 1 5
1 4 14 19 16 21
2 5 14 19 16 21 6
0 2 28 29
1 1 5
1 2 30 5
1 2 7 5
1 2 8 5
0 2 ...

result:

ok 

Test #7:

score: 0
Accepted
time: 0ms
memory: 3992kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
105
3 0
0 2 0 6
1 2 0 6
1 3 0 1 2
1 3 3 4 5
1 2 0 3
1 2 1 4
1 2 2 5
2 2 9 10
3 14
3 7
0 2 9 16
2 2 16 9
0 2 10 18
2 2 18 10
3 8
0 2 9 21
2 2 21 9
0 2 10 23
2 2 23 10
2 1 9
2 1 10
1 2 26 27
3 28
1 1 7
1 4 17 22 19 24
2 5 17 22 19 24 8
0 2 31 32
1 1 7
1 2 33 7
1...

result:

ok 

Test #8:

score: 0
Accepted
time: 0ms
memory: 3664kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
105
3 0
0 2 0 6
1 2 0 6
1 3 0 1 2
1 3 3 4 5
1 2 0 3
1 2 1 4
1 2 2 5
2 2 9 10
3 14
3 7
0 2 9 16
2 2 16 9
0 2 10 18
2 2 18 10
3 8
0 2 9 21
2 2 21 9
0 2 10 23
2 2 23 10
2 1 9
2 1 10
1 2 26 27
3 28
1 1 7
1 4 17 22 19 24
2 5 17 22 19 24 8
0 2 31 32
1 1 7
1 2 33 7
1...

result:

ok 

Test #9:

score: 0
Accepted
time: 0ms
memory: 3928kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
104
3 0
0 2 0 6
1 2 0 6
1 3 0 1 2
1 3 3 4 5
1 2 0 3
1 2 1 4
1 2 2 5
2 2 9 10
3 14
3 7
0 2 9 16
2 2 16 9
0 2 10 18
2 2 18 10
3 8
0 2 9 21
2 2 21 9
0 2 10 23
2 2 23 10
2 1 9
2 1 10
1 2 26 27
3 28
1 1 7
1 4 17 22 19 24
2 5 17 22 19 24 8
0 2 31 32
1 1 7
1 2 33 7
1...

result:

ok 

Test #10:

score: 0
Accepted
time: 0ms
memory: 3884kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
105
3 0
0 2 0 6
1 2 0 6
1 2 0 1
1 2 2 3
1 2 4 5
1 3 0 2 4
1 3 1 3 5
2 3 9 10 11
3 14
3 7
0 2 9 16
2 2 16 9
0 2 10 18
2 2 18 10
0 2 11 20
2 2 20 11
3 8
0 2 9 23
2 2 23 9
0 2 10 25
2 2 25 10
0 2 11 27
2 2 27 11
2 1 9
2 1 10
2 1 11
1 3 30 31 32
3 33
1 1 7
1 6 17 ...

result:

ok 

Test #11:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
105
3 0
0 2 0 6
1 2 0 6
1 2 0 1
1 2 2 3
1 2 4 5
1 3 0 2 4
1 3 1 3 5
2 3 9 10 11
3 14
3 7
0 2 9 16
2 2 16 9
0 2 10 18
2 2 18 10
0 2 11 20
2 2 20 11
3 8
0 2 9 23
2 2 23 9
0 2 10 25
2 2 25 10
0 2 11 27
2 2 27 11
2 1 9
2 1 10
2 1 11
1 3 30 31 32
3 33
1 1 7
1 6 17 ...

result:

ok 

Test #12:

score: 0
Accepted
time: 0ms
memory: 4072kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
104
3 0
0 2 0 6
1 2 0 6
1 2 0 1
1 2 2 3
1 2 4 5
1 3 0 2 4
1 3 1 3 5
2 3 9 10 11
3 14
3 7
0 2 9 16
2 2 16 9
0 2 10 18
2 2 18 10
0 2 11 20
2 2 20 11
3 8
0 2 9 23
2 2 23 9
0 2 10 25
2 2 25 10
0 2 11 27
2 2 27 11
2 1 9
2 1 10
2 1 11
1 3 30 31 32
3 33
1 1 7
1 6 17 ...

result:

ok 

Test #13:

score: 0
Accepted
time: 0ms
memory: 3828kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
124
3 0
0 2 0 9
1 2 0 9
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 3 12 13 14
3 18
3 10
0 2 12 20
2 2 20 12
0 2 13 22
2 2 22 13
0 2 14 24
2 2 24 14
3 11
0 2 12 27
2 2 27 12
0 2 13 29
2 2 29 13
0 2 14 31
2 2 31 14
2 1 12
2 1 13
2 1 14
1 3 34 ...

result:

ok 

Test #14:

score: 0
Accepted
time: 0ms
memory: 3756kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
125
3 0
0 2 0 9
1 2 0 9
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 3 12 13 14
3 18
3 10
0 2 12 20
2 2 20 12
0 2 13 22
2 2 22 13
0 2 14 24
2 2 24 14
3 11
0 2 12 27
2 2 27 12
0 2 13 29
2 2 29 13
0 2 14 31
2 2 31 14
2 1 12
2 1 13
2 1 14
1 3 34 ...

result:

ok 

Test #15:

score: 0
Accepted
time: 0ms
memory: 3820kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
124
3 0
0 2 0 9
1 2 0 9
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 3 12 13 14
3 18
3 10
0 2 12 20
2 2 20 12
0 2 13 22
2 2 22 13
0 2 14 24
2 2 24 14
3 11
0 2 12 27
2 2 27 12
0 2 13 29
2 2 29 13
0 2 14 31
2 2 31 14
2 1 12
2 1 13
2 1 14
1 3 34 ...

result:

ok 

Test #16:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 4
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
123
3 0
0 2 0 9
1 2 0 9
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 3 12 13 14
3 18
3 10
0 2 12 20
2 2 20 12
0 2 13 22
2 2 22 13
0 2 14 24
2 2 24 14
3 11
0 2 12 27
2 2 27 12
0 2 13 29
2 2 29 13
0 2 14 31
2 2 31 14
2 1 12
2 1 13
2 1 14
1 3 34 ...

result:

ok 

Test #17:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
69
3 0
0 2 0 2
1 2 0 2
1 2 0 1
1 1 0
1 1 1
2 1 5
3 8
3 3
0 2 5 10
2 2 10 5
3 4
0 2 5 13
2 2 13 5
2 1 5
1 1 16
3 17
1 1 3
1 2 11 14
2 3 11 14 4
0 2 20 21
1 1 3
1 2 22 3
1 1 3
0 2 24 25
1 2 26 3
0 3 9 18 19
0 3 9 17 27
3 9
2 2 6 7
3 31
3 3
0 2 6 33
2 2 33 6
0 2 ...

result:

ok 

Test #18:

score: 0
Accepted
time: 0ms
memory: 4080kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
69
3 0
0 2 0 2
1 2 0 2
1 1 0
1 1 1
1 2 0 1
2 2 5 6
3 8
3 3
0 2 5 10
2 2 10 5
0 2 6 12
2 2 12 6
3 4
0 2 5 15
2 2 15 5
0 2 6 17
2 2 17 6
2 1 5
2 1 6
1 2 20 21
3 22
1 1 3
1 4 11 16 13 18
2 5 11 16 13 18 4
0 2 25 26
1 1 3
1 2 27 3
1 2 5 3
1 2 6 3
0 2 30 31
1 1 3
1...

result:

ok 

Subtask #2:

score: 0
Wrong Answer

Test #19:

score: 11
Accepted
time: 1ms
memory: 4088kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 9 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
191
3 0
0 2 0 9
1 2 0 9
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
2 1 12
3 22
3 10
0 2 12 24
2 2 24 12
3 11
0 2 12 27
2 2 27 12
2 1 12
1 1 30
3 31
1 1 10
1 2 25 28
2 3 25 28 11
0 2 34 35
1 1 10
1 2 36 10
1 1 10
0 2 38 39
1 2 4...

result:

ok 

Test #20:

score: 0
Accepted
time: 1ms
memory: 3812kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
9 1 5
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
191
3 0
0 2 0 9
1 2 0 9
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
1 9 0 1 2 3 4 5 6 7 8
2 9 12 13 14 15 16 17 18 19 20
3 22
3 10
0 2 12 24
2 2 24 12
0 2 13 26
2 2 26 13
0 2 14 28
2 2 28 14
0 2 15 30
2 2 30 15
0 2 16 32
2 2 32 16
0 2 17 34
2 2 34 17...

result:

ok 

Test #21:

score: -11
Wrong Answer
time: 0ms
memory: 3948kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 5 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
WA
Invalid index

result:

wrong answer WA in grader: Invalid index

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: 1ms
memory: 3980kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
WA
Invalid index

result:

wrong answer WA in grader: Invalid index

Subtask #6:

score: 0
Wrong Answer

Test #70:

score: 8
Accepted
time: 0ms
memory: 4012kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
3 128
128 129
128 130
128 131

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
86
3 0
0 2 0 4
1 2 0 4
1 2 0 1
1 2 2 3
1 2 0 2
1 2 1 3
2 2 7 8
3 11
3 5
0 2 7 13
2 2 13 7
0 2 8 15
2 2 15 8
3 6
0 2 7 18
2 2 18 7
0 2 8 20
2 2 20 8
2 1 7
2 1 8
1 2 23 24
3 25
1 1 5
1 4 14 19 16 21
2 5 14 19 16 21 6
0 2 28 29
1 1 5
1 2 30 5
1 2 7 5
1 2 8 5
0 2 ...

result:

ok 

Test #71:

score: 0
Accepted
time: 0ms
memory: 3748kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 2
3 129
129 128
129 131
129 130

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
85
3 0
0 2 0 4
1 2 0 4
1 2 0 1
1 2 2 3
1 2 0 2
1 2 1 3
2 2 7 8
3 11
3 5
0 2 7 13
2 2 13 7
0 2 8 15
2 2 15 8
3 6
0 2 7 18
2 2 18 7
0 2 8 20
2 2 20 8
2 1 7
2 1 8
1 2 23 24
3 25
1 1 5
1 4 14 19 16 21
2 5 14 19 16 21 6
0 2 28 29
1 1 5
1 2 30 5
1 2 7 5
1 2 8 5
0 2 ...

result:

ok 

Test #72:

score: -8
Wrong Answer
time: 1ms
memory: 3800kb

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
WA
Invalid index

result:

wrong answer WA in grader: Invalid index

Subtask #7:

score: 0
Wrong Answer

Test #101:

score: 0
Wrong Answer
time: 8ms
memory: 4532kb

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
OK
6906
3 0
0 2 0 40000
1 2 0 40000
1 200 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 ...

result:

wrong answer on inputs (80, 199), (81, 199), expected 1, but computed 0

Subtask #8:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%