QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#289570#7857. (-1,1)-Sumpleteucup-team2929#TL 19ms4280kbC++203.0kb2023-12-23 18:48:292023-12-23 18:48:30

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 4120kb

input:

3
+-+
-++
+-+
1 1 1
1 -1 3

output:

Yes
001
001
111

result:

ok n=3

Test #2:

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

input:

3
---
-++
+++
-2 -1 0
-2 -1 0

output:

Yes
110
100
000

result:

ok n=3

Test #3:

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

input:

3
+-+
-++
++-
1 0 2
2 2 -1

output:

No

result:

ok n=3

Test #4:

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

input:

1
-
-1
1

output:

No

result:

ok n=1

Test #5:

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

input:

1
-
0
0

output:

Yes
0

result:

ok n=1

Test #6:

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

input:

20
+-------+-----+++-++
-+-++++----++-++-++-
-+++--+---+--+-++---
-+++-+--+----++---+-
+++-+-++++++-+-+---+
-++-----+----++++++-
+-++--+++++-++-+----
+-+----+---+-+++--+-
+++++-+++++----+--+-
------++++---+--++--
++++--------++++--+-
-+-+-++++-+-++-++--+
---+-++---+-++-++---
+-++++-++----+-+++--
+-+...

output:

Yes
10000000110011000100
01011110111010111001
01110001010101000111
11100010101000011101
10011111000101010001
10001101110011011111
01101110010101000101
11101110110001100010
01000010100100000101
11111100000001101100
00001111111111000110
10101000010011011001
11110001001011011000
01001110010001011100
01...

result:

ok n=20

Test #7:

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

input:

100
++++-+-+--++++++-+--+--++-+-+--+++++-+++---+-+-+-++-+-+++-------+-++--+-++--+--+++++-++-+---+--+--++
-++--++-+-++++-+---++-+-+-+-+-+-+-+-+--+-+--+--+++---+--+-----+-----+-++-++-+-++++++--+-+++-+++-++++
--+---++-++--++-+++-------+--+-++------+-----+--+----++++++++-+--+++++--++--+-+-+++---+--+++-+...

output:

Yes
1111010100111111010010011010100111110111000101010110101110000000101100101100001000001001011101101100
0110011010111101000110101010101010101001010010011100010010000010000010110110100110110001000100010000
0010001101100110111000000010010110000001000001001000011111111010011111001100111101011101100010...

result:

ok n=100

Test #8:

score: -100
Time Limit Exceeded

input:

500
--+-+-+-++-----+++--+-+++-+---+-+-------+++--++++++-+--++--+-+-++++-++++--++--+---++--++----++--+---++-++--+-----+-+---++-++++-+++++++---++-++--+-++++-+----++-+++-+++---+--+++-+--++-++--+++++++-+++--+---+---+-+---++-+-+--+-+++-++-----+++-++-+++-+-++--++++++-+-++-+++---++-+++-++----+--+++----++++...

output:


result: