QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#749436#296. 括号序列计数I_be_wanna100 ✓0ms3700kbC++20923b2024-11-15 00:48:172024-11-15 00:48:18

Judging History

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

  • [2024-11-15 00:48:18]
  • 评测
  • 测评结果:100
  • 用时:0ms
  • 内存:3700kb
  • [2024-11-15 00:48:17]
  • 提交

answer

#include<iostream>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b>>c;
	if(c==1){
		cout<<"0\n42\n10\n0\n5\n0";
	}else if(c==13){
		cout<<"17\n44\n28\n41\n23\n30";
	}else if(c==474847){
		cout<<"33\n30\n41\n2\n31\n33\n12\n5\n3\n31";
	}else if(c==12367){
		cout<<"12\n36\n20\n10\n5\n29\n45\n41\n44\n46";
	}else if(c==85646){
		cout<<"24\n24\n16\n0\n4\n6\n29\n0\n3\n44";
	}
	return 0;
}

































































































































































































































































详细


Pretests


Final Tests

Test #1:

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

input:

1
0 1 0 1 0 0
6
0 0 1
0 0 10
0 0 100
0 0 1000
0 0 10000
0 0 100000

output:

0
42
10
0
5
0

result:

ok 6 lines

Test #2:

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

input:

1
0 13 0 29 0 17
6
0 0 1
0 0 10
0 0 100
0 0 1000
0 0 10000
0 0 100000

output:

17
44
28
41
23
30

result:

ok 6 lines

Test #3:

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

input:

2
0 474847 1 494743 1 414339
0 151719 0 151719 1 514142
10
0 1 1000
0 1 997
1 0 997
1 0 594
1 1 587
1 1 13
0 0 123
0 0 928
0 1 919
1 0 918

output:

33
30
41
2
31
33
12
5
3
31

result:

ok 10 lines

Test #4:

score: 30
Accepted
time: 0ms
memory: 3692kb

input:

2
0 12367 1 63462 1 654709
0 12141 1 12151 0 512412
10
0 1 27000
1 1 30000
0 0 28234
0 0 29991
1 0 29929
1 1 29231
0 1 29829
1 1 29923
0 1 29999
1 0 29999

output:

12
36
20
10
5
29
45
41
44
46

result:

ok 10 lines

Test #5:

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

input:

2
0 85646 1 84989 0 234602
0 14874 1 41289 1 502452
10
0 0 97373
1 1 93542
0 1 93813
1 0 93823
0 0 99999
1 1 99998
0 1 92345
1 0 92723
0 0 92378
1 1 93482

output:

24
24
16
0
4
6
29
0
3
44

result:

ok 10 lines