QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#289343 | #7857. (-1,1)-Sumplete | ucup-team2929# | TL | 2922ms | 678940kb | C++14 | 5.7kb | 2023-12-23 17:07:12 | 2023-12-23 17:07:13 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 4184kb
input:
3 +-+ -++ +-+ 1 1 1 1 -1 3
output:
Yes 111 111 111
result:
ok n=3
Test #2:
score: 0
Accepted
time: 1ms
memory: 4112kb
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: 4200kb
input:
3 +-+ -++ ++- 1 0 2 2 2 -1
output:
No
result:
ok n=3
Test #4:
score: 0
Accepted
time: 1ms
memory: 4124kb
input:
1 - -1 1
output:
No
result:
ok n=1
Test #5:
score: 0
Accepted
time: 0ms
memory: 4088kb
input:
1 - 0 0
output:
Yes 0
result:
ok n=1
Test #6:
score: 0
Accepted
time: 1ms
memory: 4148kb
input:
20 +-------+-----+++-++ -+-++++----++-++-++- -+++--+---+--+-++--- -+++-+--+----++---+- +++-+-++++++-+-+---+ -++-----+----++++++- +-++--+++++-++-+---- +-+----+---+-+++--+- +++++-+++++----+--+- ------++++---+--++-- ++++--------++++--+- -+-+-++++-+-++-++--+ ---+-++---+-++-++--- +-++++-++----+-+++-- +-+...
output:
Yes 01100100100110110110 00011101111010110100 10001110001000001110 00000011001001001100 01100010111011000000 11000000111111001000 01001001010010101001 01111101011111110000 01100110110011100100 01010000000100111101 00101111111010101001 11010010110100111100 00110101010011011100 10001110110001001001 11...
result:
ok n=20
Test #7:
score: 0
Accepted
time: 0ms
memory: 4684kb
input:
100 ++++-+-+--++++++-+--+--++-+-+--+++++-+++---+-+-+-++-+-+++-------+-++--+-++--+--+++++-++-+---+--+--++ -++--++-+-++++-+---++-+-+-+-+-+-+-+-+--+-+--+--+++---+--+-----+-----+-++-++-+-++++++--+-+++-+++-++++ --+---++-++--++-+++-------+--+-++------+-----+--+----++++++++-+--+++++--++--+-+-+++---+--+++-+...
output:
Yes 1110010000111010010011011010110111111110000011010110101111010110100101110100100110111110110010000010 0110011010111110000110101010111010100000010110011001000011010010010011110110101101110010111001001111 0000010101110110001000010010001110000001000001001010111101111111010101011100100011100111111101...
result:
ok n=100
Test #8:
score: 0
Accepted
time: 20ms
memory: 15396kb
input:
500 --+-+-+-++-----+++--+-+++-+---+-+-------+++--++++++-+--++--+-+-++++-++++--++--+---++--++----++--+---++-++--+-----+-+---++-++++-+++++++---++-++--+-++++-+----++-+++-+++---+--+++-+--++-++--+++++++-+++--+---+---+-+---++-+-+--+-+++-++-----+++-++-+++-+-++--++++++-+-++-+++---++-+++-++----+--+++----++++...
output:
Yes 11010101011111101110010011011101011101000001100000100110000000100001000010001101100011001001001101010010000011101111111001100111111000011001100101100010100100100011000110101001101011001100100001010010111011101011010100011000000000111101010011001010011000001111000100101001010000011100100111111011...
result:
ok n=500
Test #9:
score: 0
Accepted
time: 2846ms
memory: 678940kb
input:
4000 -++-+-+-+--+-++++---+-++------++---+-+++--+++--+++++++---+-++-+++++++----+---+++-++--++---+-++--+----+---+--++-+-+-+-----+-+---++-++--+---+++-++++-+-----++--++-++---++-+--+++-+--+--+-+-++-+++--++---+++-+-+---+++-++-+-++-+-+++---+++---+-+--++---+-+---+--+++--+----+-+--++---+-----+-+--+----+-+++-...
output:
Yes 00010100010111111001101001000111000101111110001010010011110110001101100001000110010000100111100101101110101000010111110111101100101001110111010101010010100101001011101111110110100001100010101111111011001000110110101001100110100011100101011100010110011101000110000100011000111001010000110100000110...
result:
ok n=4000
Test #10:
score: 0
Accepted
time: 2346ms
memory: 677924kb
input:
4000 +---+--++-+--++-+-++--+++--++--+++-+-+-+--++++++-++-+-+++-+---++++-+-+++----++-+---++--++--+++-----++---++-+--++++----++--++--+-+-++--+--+++++-+---+++-+++--++++-++-+++++++----+++-----+--++-+++-++-++-+++-+--++++++-+--++--+-+---++--------+-+--++----+-++-+-++---+--++--+-+--+-+++-+--+--++++-++----+...
output:
Yes 10110010110111110010101000000110001010101100000011110100010111000000100101111000110111110110000010110110000001010111101100101001010011111111001111001010110100001000000000011010000101011010010010011110010011001011101101111101101001111011000001100110111110000110100011000111111101110111100000111110...
result:
ok n=4000
Test #11:
score: 0
Accepted
time: 2922ms
memory: 678228kb
input:
4000 -+--+------+--+++-++-----++--+-++-++-++-+-+-++++++--++--+-++-+-+++---++-+-+++++-++++++-+-++-++-++-+-++---+-+-------++-+++-++-+-++++-++-+-+-----+----+--+----++++-------++-+--+++----+++++++-+--+-+---+-+++++-+-----++-------++++--+-+-++---++++-++++-++-+++-+-++---+--+---+-++++++--++---+-++++++-+-+--...
output:
Yes 01001010010000110010011010110110111111010010010110100100100101011110011000101001011011011011110100100010000011001001011111011101011111011000000010001001010110000011011110000111000011010010101101000011111100110111111101011111100100110000101011100010111011010001100010001111001111001000111100001010...
result:
ok n=4000
Test #12:
score: 0
Accepted
time: 2558ms
memory: 677460kb
input:
4000 +-+-----++++-----++++-+-++-+----+++---++--+---+++-+-++------+-+-++++----+-++++--+-++----+-+---+--+-----+-++--++-+++---+---+++---++-+++---++++---++----+++--+---+---+++-++-+-+-+--+++--++----++-+------+++-++-++--+--+++---+-------++++-+-++--++-+--+------+++++---+---++-++++-+++-++++-+---++-++++----+...
output:
Yes 11000110000010110011010001101110100110110111101110010011110100000010111000001111011010001101101010101011000010001111010101001111100001110100011100010000000011000110001000001010110111011001101011100001110101011000111000011011100000000001000101101100101101110101100001000010010101101110110100100110...
result:
ok n=4000
Test #13:
score: 0
Accepted
time: 2860ms
memory: 678124kb
input:
4000 -+++---+-------+-++++-+++-++-+--++----++++++---+---++-++++-+++-++++-+---+--+++-----+-+--++-+--+-++++--+--++-+---+++++++++-+++++++-+++--+-+---++-+-++----+-++--++-++++++++++++++-+++-++-+++-++-++---+---+++-+-+++++++--+-+++-++-+-----+++-++--+++------+++--+++---+--+----++-+--+-+---+--+---+-+-+--++++...
output:
Yes 11110101001011100111111110011111101010111101100111001111101101011000110011010100001100000101000101010000000111101101110000100001111110000011011111010001110000100011101110111010011000111111011000011000110101001101010011101111111011011110011100000011100111000110100001111111111111111100000001011110...
result:
ok n=4000
Test #14:
score: 0
Accepted
time: 1999ms
memory: 678864kb
input:
4000 +--+++++--++--+-+++-++-+-+-+-+--++------++++---+++-+-+--+------++-+--++-+-+++-----+-+++++-+------++++-++++-+--+------++--+++++-+-+--+-+++++++++++++++-+--+-+-+---+-+-+++++-++--+-+---++-++--+--+-+++-+-+++++-+--++-+----+++-++-++++-+---+--+-++-++-+-+-+---++-++-+-+----++-++++-----------+++--++++-++-...
output:
Yes 01100000111011110011011010101001001011110000011001101011011111100101100101010111110100000101111110100100001011011011101110000010111101000100000000000101001010111010100000100110111100010110011010001010000010110000111100010010000101000110100100101010111001011010111100100101111111111100001000011010...
result:
ok n=4000
Test #15:
score: -100
Time Limit Exceeded
input:
4000 ---++-++-+-+----++-++++-----------+++--++++-++-++--+-+--+--+-+-++++--++-++--+++++--++--+-+----+-+---++-+++-+--+-++++++++-++---++++-+--+-+++---+-+--+--+-+--+--++++++-+---++++++-++++----+-+-+-++--+---+--+-+++--++++++-+++-+---+--+-----------++-+++--+++++++--++-+++++--+++-+-+++++++++--+---+++--+-+-...