QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#339206#2670. Arranging shoesgubshig45 35ms74864kbC++17746b2024-02-26 20:57:092024-02-26 20:57:09

Judging History

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

  • [2024-02-26 20:57:09]
  • 评测
  • 测评结果:45
  • 用时:35ms
  • 内存:74864kb
  • [2024-02-26 20:57:09]
  • 提交

answer

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

using namespace std;
using ll = long long;

int a[202020], t[202020], n;
queue<int> id[101010];

void update(int i){
	while(i <= n){
		t[i]++;
		i += (i & -i);
	}
}

int sum(int i){
	int ret = 0;
	while(i){
		ret += t[i];
		i -= (i & -i);
	}
	return ret;
}

long long count_swaps(std::vector<int> s) {
	n = s.size();

	int cur = 0;
	for(int i = 0; i < n; i++){
		if(s[i] < 0){
			a[i] = cur;
			id[-s[i]].push(cur);
			cur += 2;
		}
	}
	
	for(int i = 0; i < n; i++){
		if(s[i] > 0){
			a[i] = id[s[i]].front() + 1;
			id[s[i]].pop();
		}
	}
	
	ll ans = 0;
	for(int i = n - 1; i >= 0; i--){
		ans += sum(a[i]);
		update(a[i] + 1);
	}

	return ans;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 16ms
memory: 72672kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
-1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 12ms
memory: 72092kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Subtask #2:

score: 0
Wrong Answer

Dependency #1:

100%
Accepted

Test #3:

score: 20
Accepted
time: 7ms
memory: 73060kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -2 2 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
2

result:

ok 3 lines

Test #4:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 1 -1 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
3

result:

ok 3 lines

Test #5:

score: 0
Accepted
time: 12ms
memory: 71852kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 2 -1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #6:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -2 2 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
2

result:

ok 3 lines

Test #7:

score: 0
Accepted
time: 12ms
memory: 72536kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 2 1 -2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
2

result:

ok 3 lines

Test #8:

score: 0
Accepted
time: 4ms
memory: 71612kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
2 -2 -1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #9:

score: 0
Accepted
time: 7ms
memory: 72912kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
1 2 -2 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4

result:

ok 3 lines

Test #10:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
2 -2 1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
2

result:

ok 3 lines

Test #11:

score: 0
Accepted
time: 4ms
memory: 71944kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
1 2 -2 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4

result:

ok 3 lines

Test #12:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
3
-3 -2 1 2 3 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5

result:

ok 3 lines

Test #13:

score: 0
Accepted
time: 10ms
memory: 71948kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
4
-1 1 -2 2 -4 4 -3 3

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #14:

score: -20
Wrong Answer
time: 8ms
memory: 72232kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
4
-2 3 -4 -3 -2 2 4 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
9

result:

wrong answer 3rd lines differ - expected: '7', found: '9'

Subtask #3:

score: 20
Accepted

Test #37:

score: 20
Accepted
time: 29ms
memory: 71688kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -2 2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #38:

score: 0
Accepted
time: 7ms
memory: 73036kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 1 -1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #39:

score: 0
Accepted
time: 12ms
memory: 71944kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 1 -1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #40:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -2 2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #41:

score: 0
Accepted
time: 7ms
memory: 72792kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 1 1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #42:

score: 0
Accepted
time: 12ms
memory: 71984kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
2 -2 -2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #43:

score: 0
Accepted
time: 14ms
memory: 72520kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
1 1 -1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
3

result:

ok 3 lines

Test #44:

score: 0
Accepted
time: 4ms
memory: 71872kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
2 -2 2 -2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
2

result:

ok 3 lines

Test #45:

score: 0
Accepted
time: 4ms
memory: 72560kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
1 1 -1 -1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
3

result:

ok 3 lines

Test #46:

score: 0
Accepted
time: 10ms
memory: 72732kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
3
2 -2 -2 2 -2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #47:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
8
-3 -3 -3 3 -3 -3 -3 3 3 3 3 3 3 3 -3 -3

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
15

result:

ok 3 lines

Test #48:

score: 0
Accepted
time: 4ms
memory: 71972kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
11
5 5 -5 5 5 -5 -5 5 5 -5 5 -5 -5 5 -5 -5 -5 -5 5 5 -5 5

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
19

result:

ok 3 lines

Test #49:

score: 0
Accepted
time: 7ms
memory: 71724kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
43
-35 -35 -35 35 35 -35 -35 -35 35 -35 35 -35 35 35 -35 35 35 -35 -35 35 35 35 -35 -35 -35 35 -35 35 -35 35 35 35 35 35 35 35 -35 35 -35 -35 -35 -35 35 35 35 35 -35 35 -35 35 35 -35 -35 -35 35 35 -35 35 -35 35 35 -35 35 35 35 35 -35 -35 -35 -35 -35 35 -35 -35 -3...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
117

result:

ok 3 lines

Test #50:

score: 0
Accepted
time: 16ms
memory: 71980kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
117
50 -50 -50 -50 50 50 -50 50 -50 -50 50 50 50 50 50 -50 -50 -50 50 -50 50 -50 50 50 50 50 50 50 50 -50 50 50 50 -50 -50 -50 50 50 -50 -50 50 50 50 -50 -50 -50 -50 -50 50 -50 50 -50 -50 50 -50 50 50 50 -50 50 -50 50 50 50 50 50 -50 50 50 -50 50 50 -50 50 -50 -5...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1000

result:

ok 3 lines

Test #51:

score: 0
Accepted
time: 16ms
memory: 71724kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
304
-44 -44 44 44 44 -44 -44 44 44 44 44 -44 -44 -44 44 -44 44 44 -44 -44 44 44 44 -44 -44 -44 -44 44 -44 44 -44 44 44 -44 -44 -44 44 44 -44 44 44 44 -44 -44 44 44 44 44 44 -44 44 44 -44 -44 -44 44 -44 44 -44 44 -44 -44 -44 -44 -44 -44 -44 44 -44 -44 44 44 -44 -4...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1711

result:

ok 3 lines

Test #52:

score: 0
Accepted
time: 4ms
memory: 72316kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
999
-636 636 636 -636 636 636 -636 636 -636 636 -636 636 -636 636 -636 636 -636 636 -636 -636 -636 636 636 -636 -636 -636 636 -636 636 -636 -636 -636 -636 636 -636 -636 636 -636 636 636 -636 -636 -636 636 -636 -636 -636 -636 636 636 636 636 636 -636 -636 -636 -63...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
19586

result:

ok 3 lines

Test #53:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
1001
-498 -498 -498 -498 -498 -498 -498 -498 -498 -498 -498 498 -498 -498 -498 -498 498 -498 -498 -498 498 -498 498 498 498 498 -498 498 -498 498 -498 -498 498 -498 -498 498 -498 498 -498 -498 498 -498 498 498 498 498 -498 -498 -498 498 498 -498 -498 498 -498 -49...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
29174

result:

ok 3 lines

Test #54:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
9998
-1466 1466 1466 1466 1466 1466 -1466 1466 1466 -1466 1466 1466 1466 1466 -1466 -1466 1466 1466 -1466 1466 -1466 -1466 1466 -1466 1466 -1466 -1466 1466 -1466 1466 -1466 -1466 -1466 -1466 1466 1466 1466 1466 -1466 -1466 -1466 -1466 -1466 -1466 -1466 1466 -1466...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
434563

result:

ok 3 lines

Test #55:

score: 0
Accepted
time: 13ms
memory: 73308kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
10003
-9391 -9391 9391 9391 -9391 -9391 -9391 9391 9391 9391 -9391 -9391 9391 -9391 9391 -9391 -9391 -9391 -9391 9391 -9391 9391 -9391 9391 -9391 -9391 9391 -9391 -9391 9391 9391 9391 9391 -9391 -9391 -9391 -9391 -9391 9391 -9391 -9391 -9391 9391 -9391 -9391 9391...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
662066

result:

ok 3 lines

Test #56:

score: 0
Accepted
time: 23ms
memory: 74864kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-20650 -20650 20650 20650 -20650 -20650 -20650 20650 20650 20650 -20650 -20650 20650 20650 20650 20650 20650 20650 -20650 20650 20650 -20650 20650 20650 20650 20650 20650 -20650 20650 20650 20650 -20650 -20650 20650 20650 -20650 -20650 20650 20650 20650 206...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
9148558

result:

ok 3 lines

Test #57:

score: 0
Accepted
time: 23ms
memory: 74636kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11332 -11332 11...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #58:

score: 0
Accepted
time: 31ms
memory: 74860kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
26704 -26704 -26704 26704 26704 -26704 26704 -26704 26704 -26704 26704 -26704 26704 -26704 -26704 26704 -26704 26704 -26704 26704 -26704 26704 -26704 26704 26704 -26704 -26704 26704 -26704 -26704 -26704 -26704 26704 26704 -26704 26704 26704 -26704 26704 26...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1233583

result:

ok 3 lines

Test #59:

score: 0
Accepted
time: 27ms
memory: 74680kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1966 1...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #60:

score: 0
Accepted
time: 35ms
memory: 74724kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
59471 59471 -59471 -59471 59471 59471 59471 59471 59471 -59471 -59471 -59471 59471 59471 -59471 59471 59471 -59471 59471 -59471 59471 -59471 -59471 -59471 -59471 59471 -59471 59471 -59471 59471 59471 59471 59471 59471 59471 59471 -59471 59471 59471 -59471 ...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
7651686

result:

ok 3 lines

Test #61:

score: 0
Accepted
time: 28ms
memory: 74704kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 3091 -3091 309...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
100000

result:

ok 3 lines

Test #62:

score: 0
Accepted
time: 22ms
memory: 74796kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 2937...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #63:

score: 0
Accepted
time: 27ms
memory: 74636kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 29373 2937...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #64:

score: 0
Accepted
time: 27ms
memory: 74848kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 90155 9015...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #65:

score: 0
Accepted
time: 27ms
memory: 74688kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-50400 -50400 50400 -50400 50400 50400 50400 -50400 50400 50400 -50400 -50400 -50400 50400 -50400 -50400 50400 50400 -50400 50400 -50400 -50400 -50400 -50400 50400 -50400 50400 50400 -50400 50400 -50400 50400 50400 -50400 50400 50400 -50400 -50400 50400 50...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
8109181

result:

ok 3 lines

Test #66:

score: 0
Accepted
time: 28ms
memory: 74676kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -33541 -335...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Test #67:

score: 0
Accepted
time: 23ms
memory: 74560kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8038 8...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #68:

score: 0
Accepted
time: 27ms
memory: 74664kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 13023 1302...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
5000050000

result:

ok 3 lines

Test #69:

score: 0
Accepted
time: 12ms
memory: 73228kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
-1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #70:

score: 0
Accepted
time: 10ms
memory: 73124kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -2 2 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #71:

score: 0
Accepted
time: 20ms
memory: 74672kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99998
-54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -54585 -5458...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999750003

result:

ok 3 lines

Test #72:

score: 0
Accepted
time: 33ms
memory: 74636kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -30460 -3046...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999850001

result:

ok 3 lines

Test #73:

score: 0
Accepted
time: 23ms
memory: 74644kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -45223 -452...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Subtask #4:

score: 15
Accepted

Test #74:

score: 15
Accepted
time: 12ms
memory: 71720kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
1
-1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
0

result:

ok 3 lines

Test #75:

score: 0
Accepted
time: 16ms
memory: 72516kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -2 1 2

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #76:

score: 0
Accepted
time: 4ms
memory: 72192kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-2 -1 2 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #77:

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

input:

08f55b3f-c300-4051-a472-59ca2a776178
2
-1 -1 1 1

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
1

result:

ok 3 lines

Test #78:

score: 0
Accepted
time: 26ms
memory: 74176kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99998
-93375 -85998 -57472 -57320 -92144 -31526 -99604 -77181 -65443 -97629 -29716 -1904 -93293 -41761 -55949 -50927 -80082 -21357 -51929 -54 -33477 -36300 -49484 -70830 -98314 -40123 -79568 -89806 -90528 -51711 -49394 -2023 -42435 -61625 -61156 -82943 -47590 -69...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999750003

result:

ok 3 lines

Test #79:

score: 0
Accepted
time: 20ms
memory: 74192kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99998
-64484 -91038 -41308 -72712 -1564 -32642 -74991 -79372 -45318 -52023 -67151 -54049 -15705 -93770 -50858 -870 -77097 -19597 -37947 -54404 -36480 -50724 -53983 -59165 -98143 -39237 -2885 -32028 -44812 -25799 -96194 -55733 -39060 -13916 -50000 -79991 -2581 -10...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999750003

result:

ok 3 lines

Test #80:

score: 0
Accepted
time: 19ms
memory: 74380kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-36895 -21252 -33272 -64005 -86598 -9597 -5512 -30508 -26724 -96513 -20778 -45208 -17858 -62202 -26096 -327 -58206 -18274 -97082 -70650 -96288 -97762 -77475 -40197 -33023 -89009 -73569 -12157 -57905 -50207 -78508 -26168 -35060 -45556 -93784 -78602 -5052 -22...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999850001

result:

ok 3 lines

Test #81:

score: 0
Accepted
time: 20ms
memory: 74748kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
99999
-36659 -36659 -36659 -62235 -62235 -91177 -91177 -91177 -36659 -36659 -91177 -36659 -36659 -36659 -36659 -91177 -36659 -91177 -62235 -62235 -36659 -36659 -36659 -91177 -62235 -91177 -62235 -62235 -62235 -36659 -91177 -36659 -36659 -36659 -91177 -62235 -3665...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999850001

result:

ok 3 lines

Test #82:

score: 0
Accepted
time: 25ms
memory: 74300kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-4281 -88522 -73487 -80899 -25596 -23936 -5985 -80611 -91620 -63357 -2064 -5363 -5917 -83932 -25745 -67340 -51599 -48609 -50123 -28748 -14761 -68746 -22980 -35585 -29712 -89969 -30212 -84883 -7751 -2359 -22767 -84996 -42365 -23762 -94042 -88836 -54106 -755...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Test #83:

score: 0
Accepted
time: 29ms
memory: 74276kb

input:

08f55b3f-c300-4051-a472-59ca2a776178
100000
-82132 -5681 -82990 -92746 -50800 -22168 -28188 -80457 -35022 -36303 -88257 -92502 -8705 -42712 -42152 -43002 -73712 -86254 -26337 -27675 -16197 -24533 -39542 -29082 -28230 -91472 -50450 -72792 -26143 -17635 -56968 -42956 -60262 -77887 -73872 -72632 -56028...

output:

9ce55564-5404-428a-8d2e-0d809c85101e
OK
4999950000

result:

ok 3 lines

Subtask #5:

score: 0
Skipped

Dependency #2:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%