UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#80226#714. 井子棋FiniteCircuit100268ms1076kbC++111.9kb2019-10-12 10:27:542019-10-12 10:27:55

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

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

input:

512

ooo
oox
xxo

ooo
xxo
oox

xox
xxo
xoo

oxo
oxx
xxo

oxo
xox
ooo

xox
xxx
oox

oxx
oxo
oxo

oox
...

output:

2
1
-2
-1
3
-3
0
-1
2
5
0
2
0
-2
4
1
0
0
-1
-3
-5
-1
-6
2
1
3
-2
1
3
0
1
2
1
-1
-3
1
1
2
-2
2
0
-1
1...

result:

ok 512 lines

Test #2:

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

input:

2304

xxo
.oo
ooo

ooo
oxx
ox.

ooo
oxo
oo.

oxo
o.o
oox

xoo
.ox
xoo

xo.
oox
xoo

.xo
ooo
ooo

.ox...

output:

4
2
4
3
1
1
6
-2
1
1
-2
1
6
0
3
1
0
-3
0
3
0
1
1
1
2
1
-4
0
0
-2
0
-1
2
1
-4
-3
0
0
-2
0
1
5
-2
2
2
...

result:

ok 2304 lines

Test #3:

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

input:

4608

x.o
xox
x.x

xxo
.o.
xxo

o.o
.oo
xxx

xxo
xx.
xx.

oox
oxo
x..

oxx
.ox
x.x

xx.
.ox
xxo

xox...

output:

-1
0
0
-3
-1
-1
-1
-2
3
-1
-3
2
-1
0
2
1
-1
2
-1
4
-2
0
2
0
1
0
-1
2
2
0
-1
2
-1
1
3
-1
0
0
-2
-1
3
...

result:

ok 4608 lines

Test #4:

score: 10
Accepted
time: 3ms
memory: 1076kb

input:

5376

xox
xx.
x..

oo.
oox
x..

x.x
xx.
xo.

o.x
oox
..o

x.o
.o.
oxo

o.o
ox.
.oo

...
xoo
xxx

xox...

output:

-3
2
-3
2
2
3
-1
0
1
0
-2
-1
1
2
1
-1
1
0
1
1
0
-2
0
-2
-1
0
3
-2
1
3
3
0
-2
-2
0
1
3
3
0
0
0
-1
2
-...

result:

ok 5376 lines

Test #5:

score: 10
Accepted
time: 7ms
memory: 1076kb

input:

4032

oo.
xo.
..o

xoo
x..
o..

.x.
oo.
.oo

.ox
oxo
...

o..
oo.
.oo

.oo
xxx
...

.oo
o..
o.x

oo....

output:

3
1
2
0
4
0
2
0
-1
0
-2
1
1
2
1
1
0
-1
1
2
2
-2
-2
0
2
-1
2
0
-1
-3
1
1
3
0
0
1
2
0
-2
-1
0
3
1
1
1
...

result:

ok 4032 lines

Test #6:

score: 10
Accepted
time: 22ms
memory: 1072kb

input:

2016

x..
x.x
..x

..x
oxo
...

.xx
...
xo.

.xx
..x
..o

.ox
.x.
o..

...
o.o
o.x

.x.
.x.
.xo

..x...

output:

-1
0
-1
0
0
2
-1
0
-1
2
-1
0
2
3
2
1
3
0
-1
0
0
0
0
4
4
0
2
0
2
3
2
-1
-1
-1
-2
2
0
0
1
0
1
1
0
3
-1...

result:

ok 2016 lines

Test #7:

score: 10
Accepted
time: 50ms
memory: 1076kb

input:

672

..o
...
x.x

o.x
..x
...

...
xo.
x..

...
...
xxo

.x.
..x
..o

.o.
..x
..x

.o.
.o.
.o.

...
...

output:

0
0
0
0
0
0
2
1
0
2
-1
0
1
0
0
0
0
1
-1
0
-1
0
2
0
0
-2
2
1
0
2
2
1
1
1
0
0
2
2
3
0
3
1
1
3
0
1
1
-1...

result:

ok 672 lines

Test #8:

score: 10
Accepted
time: 71ms
memory: 1072kb

input:

144

..x
o..
...

o..
..o
...

...
...
x.x

.o.
..x
...

...
.x.
.o.

...
o..
..o

...
..x
o..

...
...

output:

0
2
-1
0
0
2
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
0
0
0
2
2
2
0
2
0
0
0
2
1
0
0
0
0
0
2
0
2
2
0
2
0
0
-1
1
...

result:

ok 144 lines

Test #9:

score: 10
Accepted
time: 76ms
memory: 1072kb

input:

18

...
..o
...

o..
...
...

...
..x
...

..o
...
...

...
x..
...

...
o..
...

...
.x.
...

...
....

output:

1
1
0
1
0
1
0
1
0
0
0
0
0
0
1
0
1
1

result:

ok 18 lines

Test #10:

score: 10
Accepted
time: 39ms
memory: 1076kb

input:

1

...
...
...

output:

0

result:

ok single line: '0'