QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#31021#3255. LogDBmasonAC ✓49ms3868kbC++232.2kb2022-05-02 14:14:572022-05-02 14:14:59

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 3520kb

input:

test(arg1, arg2,arg3) test(1,2,3,not4)5(five) five_seven(john_smith,10_17_57)
foo(1,2,3,4) foo(5,6,7,8) foo(1,2,7,8)arc(80) foo(abc,xyz)
bar(1,2) bar (7,8) zoom(8,7)
arc(80) nofoo(alpha,d1,d2,d1,d4,d1)
foo(bar,spam) foo(more,less)

test(_,_,_,_)
arc(80)
  foo(bar,_)
  foo(_,spam)
  foo(_,less)
  nof...

output:

1
2
1
1
1
1
0
3
3
3
3
3
3

result:

ok 13 lines

Test #2:

score: 0
Accepted
time: 2ms
memory: 3500kb

input:

test(arg1, arg1)
test(arg1, arg2)

test(__arg2, __arg2)
test(__arg1, __arg2)
test2(_, __)
test(_, __)
test(_, __)

output:

1
2
0
2
2

result:

ok 5 lines

Test #3:

score: 0
Accepted
time: 3ms
memory: 3620kb

input:

fact(a,b,c)
 fact ( a , b,c)

fact(_,_,_)

output:

2

result:

ok single line: '2'

Test #4:

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

input:

test(arg1, arg1)
test(arg1, arg2)

   test  (__arg2, __arg2)
test   (__arg1, __arg2)
test2(_, __)
test ( _ , __)
test( _  , __)

output:

1
2
0
2
2

result:

ok 5 lines

Test #5:

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

input:

vail(this, that,52)winner(boy,dog) attack(surface, front, range) vail(foo,bar)
missing(links) vail(20) test(100,200,300, 400) test(1000) test(one,two)
attack(missing,any,dollars) test( 2000 ) test(100,2000,3000,100)
test(100,1234,3456,100) test(100,abc,def,100) foo(one,touch) foo(touch,one)
foo(1,1,...

output:

1
1
1
1
1
1
3
1
0
4
0
0
1
28
28
0
1
0
2
1
1
1
1
0

result:

ok 24 lines

Test #6:

score: 0
Accepted
time: 45ms
memory: 3868kb

input:

 asdf  (asdf , asdf,asdf  ,d  ,j , asdf  ) f ( g, asdf , j , asdf , h,asdf )j(asdf, asdf ,b ) asdf (  asdf  ,  asdf  , d, asdf ) j ( b  ,b )
asdf (  asdf,  f , asdf  ,asdf ) asdf (i ,  e , f , j)  i ( asdf, f ) e( c ,g  ,asdf  , a  ) asdf ( g,g , asdf) c (  b  , asdf )
 i( b)asdf ( i,asdf ) j  (asdf...

output:

0
3
7
0
6
0
6
0
0
22
0
5
35
0
2
0
0
0
0
0
0
0
26
0
0
7
6
1
3
0
1
1
4
0
0
35
0
2
0
3
35
2
0
14
0
53
0
2
0
0
1
0
3
26
8
0
0
0
0
0
22
28
0
0
0
0
0
26
0
21
3
0
0
0
25
3
13
53
0
0
1
26
0
0
0
0
2
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
26
0
1
0
0
0
0
0
0
0
0
2
15
0
0
0
1
26
0
25
0
5
6
0
0
2
0
0
0
6
13
0
0
0
0...

result:

ok 200 lines

Test #7:

score: 0
Accepted
time: 49ms
memory: 3724kb

input:

 b  (d , f,f  ,c  )a  ( b  ,  c, f , c ) d ( b , c, b,d )
b(f, d ,c)  e (  b  ,  b , f  ,d  )e ( f ,  f, c,e ,  b,  e )
  b  (d ,b ,e,  f , c ,f, a  )f(  e, d ) c( c, a, d )  e ( b ,  b ,c)b ( f,  c )  a  (  d  , f ,a , a,b ,c)
  d( e  ,b )  f (  c ,c ,b)b (  c ) c(  e  ,  e , c ,d)e(  b, f ,  c , f...

output:

0
1
0
7
1
1
0
0
5
0
0
0
0
1
1
0
0
0
3
12
0
0
0
0
7
8
7
0
3
0
6
0
0
3
0
0
2
1
0
11
0
0
5
0
6
0
12
1
6
0
3
0
0
0
7
11
1
0
8
0
0
0
0
6
0
0
0
0
1
0
0
2
0
0
0
4
4
0
9
0
0
0
0
1
2
3
0
2
1
0
2
9
0
0
0
0
0
0
1
6
22
16
18
34
25
27
26
9
29
4
12
1
5
26
18
26
28
21
21
8
4
0
2
12
16
22
26
31
22
31
8
9
21
34
12
2...

result:

ok 200 lines