QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#294980#4833. Tetra-puzzleucup-team1173#0 55ms4184kbC++2017.2kb2023-12-30 17:49:122023-12-30 17:49:12

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3752kb

First Run Input

prepare
6
TO LO ZI LI LT LT

First Run Output

OLIITL

Second Run Input

play
6
O
L
I
I
T
L

Second Run Output

**...
**...
.....
.....
.....

##*..
##***
.....
.....
.....

###..
..*..
..*..
..*..
..*..

##...
.*...
.*...
.*...
.*...

#*...
**...
.*...
.....
.....

##...
##...
.#...
.*...
.***.


result:

ok good job!

Test #2:

score: 100
Accepted
time: 0ms
memory: 3624kb

First Run Input

prepare
1
ZI

First Run Output

I

Second Run Input

play
1
I

Second Run Output

*....
*....
*....
*....
.....


result:

ok good job!

Test #3:

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

First Run Input

prepare
10
LO TZ ZO OI OL ZL ZO TL OZ LO

First Run Output

OTOOLLZTOL

Second Run Input

play
10
O
T
O
O
L
L
Z
T
O
L

Second Run Output

**...
**...
.....
.....
.....

##.*.
##***
.....
.....
.....

##.#.
**...
**...
.....
.....

##.#.
##...
##...
**...
**...

***#.
*....
.....
.....
.....

####.
#....
*....
*....
**...

*###.
**...
.*...
.....
.#...

####.
##...
*#...
**...
*#...

**##.
**...
.....
.....
.....

####*
##***
.....
......

result:

ok good job!

Test #4:

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

First Run Input

prepare
29
ZT OT ZL LT ZI LO IZ LT OI ZT ZT OL ZI LT LZ TZ IL ZI OT LZ LT LZ OT OI IO OZ IZ ZL ZL

First Run Output

TTZLIOZLIZTLITZZIITLTZTOIOILL

Second Run Input

play
29
T
T
Z
L
I
O
Z
L
I
Z
T
L
I
T
Z
Z
I
I
T
L
T
Z
T
O
I
O
I
L
L

Second Run Output

*....
**...
*....
.....
.....

#..*.
##***
#....
.....
.....

#**#.
**...
#....
.....
.....

####*
##***
#....
.....
.....

.....
.....
#****
.....
.....

**...
**...
.....
.....
.....

##**.
##.**
.....
.....
.....

####.
##.##
...**
...*.
...*.

###..
##*.#
..*.#
..*..
..*..

##*..
##**#
...*#
......

result:

ok good job!

Test #5:

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

First Run Input

prepare
36
TI ZT IT IT OT OZ IL TZ ZO LO LZ ZL OT ZI IL OT OT ZI ZT TZ TI LT LO OL IL OL IZ OZ OL ZL LT IO ZO ZL ZO LT

First Run Output

ITITTZLZOLLLTIIOTITTILOLIOZZLLLIOLZT

Second Run Input

play
36
I
T
I
T
T
Z
L
Z
O
L
L
L
T
I
I
O
T
I
T
T
I
L
O
L
I
O
Z
Z
L
L
L
I
O
L
Z
T

Second Run Output

*....
*....
*....
*....
.....

#....
#....
#....
#*...
***..

..*..
..*..
..*..
.#*..
.##..

.*...
**...
.*...
.#...
.#...

***..
#*...
.....
.....
.....

###**
##**.
.....
.....
.....

..***
####*
.....
.....
.....

**###
.**..
.....
.....
.....

...**
.##**
.....
.....
.....

***##
*####
.....
......

result:

ok good job!

Test #6:

score: 100
Accepted
time: 5ms
memory: 3788kb

First Run Input

prepare
57
LT OI TL IZ OT TL LT TI LO LT LO LO OL IO LI IT TZ TZ IO ZT TI OT OI TL TL ZT TZ OL OI LI OZ ZI TO LZ IO IO LT OZ TO OZ IZ TZ LT ZO TO TZ OT LT ZO OL IL LO ZT OZ OL IL ZI

First Run Output

LILIOTTILTOLOIIITTITITILTTTLIIOZTZIOLOTZZTLOTTTLOLILTZLLI

Second Run Input

play
57
L
I
L
I
O
T
T
I
L
T
O
L
O
I
I
I
T
T
I
T
I
T
I
L
T
T
T
L
I
I
O
Z
T
Z
I
O
L
O
T
Z
Z
T
L
O
T
T
T
L
O
L
I
L
T
Z
L
L
I

Second Run Output

**...
*....
*....
.....
.....

##...
#*...
#*...
.*...
.*...

#....
#....
#....
*....
***..

.*...
.*...
.*...
.*...
.##..

.....
.....
.....
**...
**#..

.....
.....
.....
##***
###*.

.....
.....
....*
...**
####*

.....
.....
****#
...##
.....

.....
.....
.....
***##
*....

.....
.....
.*...
**....

result:

ok good job!

Test #7:

score: 100
Accepted
time: 7ms
memory: 3748kb

First Run Input

prepare
88
ZL OL OT IT LO ZL OI ZT TO OI OL OL LZ ZT TL TZ IO ZL TZ TO IL LO ZT OL LT ZI TZ IL LT ZL OT TI ZO ZO ZT OZ TL TL LO OI TO OZ LI ZO ZT ZT IO IZ OZ ZO ZI ZO IO IO TI OL IL IT IL TL TL ZL IT IT ZO IO OL IL ZI TO OL IL ZI LZ LT IL LI ZO IL TL IT LI ZI OL TO OZ IZ OZ

First Run Output

LLTIOLIZOILOLZLZILTOLLZOLITILLTIOZTZLLLITZLOTTIIZZIZIIILIIILTLIIOOOLITLIZLLIIOLLIIILTZIO

Second Run Input

play
88
L
L
T
I
O
L
I
Z
O
I
L
O
L
Z
L
Z
I
L
T
O
L
L
Z
O
L
I
T
I
L
L
T
I
O
Z
T
Z
L
L
L
I
T
Z
L
O
T
T
I
I
Z
Z
I
Z
I
I
I
L
I
I
I
L
T
L
I
I
O
O
O
L
I
T
L
I
Z
L
L
I
I
O
L
L
I
I
I
L
T
Z
I
O

Second Run Output

**...
*....
*....
.....
.....

##***
#...*
#....
.....
.....

..*..
#***#
#....
.....
.....

..#..
..*..
#.*..
..*..
..*..

**...
**...
#....
.....
.....

##...
##...
#*...
.*...
**...

#....
#....
#....
.....
#****

#....
#....
#*...
**...
*....

**...
**...
.#...
.#...
.....

##...
##...
.#...
.#....

result:

ok good job!

Test #8:

score: 100
Accepted
time: 9ms
memory: 3704kb

First Run Input

prepare
105
LI LI OI TL OZ LZ IL IZ IL TI IL IO OT LT LO ZO LI LZ OI IL ZT IT LZ IZ IZ LI IT LI IO TI ZL OI IT LO TZ OI IL OL IL OT IL OZ LT IO OL OL LO ZO TI LI LI LI ZO ZI LI OL TI TZ LO LT IL LZ IL OL ZT LT IZ IL TZ IT OZ TL ZI IZ IZ TO IT IO TO TI TO TZ ZT IZ LI IL ZI TI TL TZ TO LI LO OL IL IL ...

First Run Output

IIILZZIIIILIOLOOILIITILIIIIIIILIILTILLIOIOLOOOLOTIIIOILOTTLLLLILTLIITIOLIIIOTITITZZZIIIILZTLLLILTOLLZIIIL

Second Run Input

play
105
I
I
I
L
Z
Z
I
I
I
I
L
I
O
L
O
O
I
L
I
I
T
I
L
I
I
I
I
I
I
I
L
I
I
L
T
I
L
L
I
O
I
O
L
O
O
O
L
O
T
I
I
I
O
I
L
O
T
T
L
L
L
L
I
L
T
L
I
I
T
I
O
L
I
I
I
O
T
I
T
I
T
Z
Z
Z
I
I
I
I
L
Z
T
L
L
L
I
L
T
O
L
L
Z
I
I
I
L

Second Run Output

*....
*....
*....
*....
.....

#....
#....
#....
#****
.....

#....
#....
#****
.....
.....

#....
#....
*....
*....
**...

.....
.....
.*...
**...
*#...

.*...
**...
*#...
##...
##...

.....
#****
#....
#....
#....

.....
.....
#****
#....
#....

.....
.....
.....
#****
#....

*....
*....
*....
*.....

result:

ok good job!

Test #9:

score: 100
Accepted
time: 15ms
memory: 3828kb

First Run Input

prepare
204
TZ TL OL TL ZO OT ZO LI TZ IO TI OL LZ TI TO ZT IL OI LT IT OZ TI OT TI ZL ZI ZO TI OI ZI TL LI ZI IO TI ZL LZ OL ZI TZ OI OI IZ LO IL LO IZ ZT ZT OL ZI OZ TL OI TI IT IZ ZL TI OI LZ OI TZ IZ IO OZ ZI TO OT TI TO IO IZ OI TZ LT TZ ZI OL LO LO OZ LO ZL LZ TZ LT TO OL LO LT TZ TL OZ ZO LO ...

First Run Output

TLLLZTZLTIILLIOTIILIOTTILIOIIILIIIILLLZTIIZOLLITTLZZLOTIILIILIZIIZIOOITIZITLTILLLZLLLTLOLLTZLOZLZLIITLTLLTLILTILOOIILIOTTLZIIIIIILLLZLILIITLOTLTLILLZOLITTZIILIOILLILILOZIOOLLITLZIILLIOILLZILIIOZLLLTTLTTTL

Second Run Input

play
204
T
L
L
L
Z
T
Z
L
T
I
I
L
L
I
O
T
I
I
L
I
O
T
T
I
L
I
O
I
I
I
L
I
I
I
I
L
L
L
Z
T
I
I
Z
O
L
L
I
T
T
L
Z
Z
L
O
T
I
I
L
I
I
L
I
Z
I
I
Z
I
O
O
I
T
I
Z
I
T
L
T
I
L
L
L
Z
L
L
L
T
L
O
L
L
T
Z
L
O
Z
L
Z
L
I
I
T
L
T
L
L
T
L
I
L
T
I
L
O
O
I
I
L
I
O
T
T
L
Z
I
I
I
I
I
I
L
L
L
Z
L
I
L
I
I
T
L
O
T
L
T
L
I...

Second Run Output

*....
**...
*....
.....
.....

#...*
##***
#....
.....
.....

#***#
.*...
#....
.....
.....

***..
*#...
#....
.....
.....

###**
##**.
#....
.....
.....

.....
####*
#..**
....*
.....

.....
.....
#**##
..**#
.....

.....
*....
*....
**###
.....

***..
#*...
#....
.....
.....

###..
##*..
#.*..
..*...

result:

ok good job!

Test #10:

score: 100
Accepted
time: 22ms
memory: 4052kb

First Run Input

prepare
303
ZT ZT IO ZL LT TI LO LZ TI ZT TI ZT LO OZ ZT TL IT TZ ZI IL TL OZ IO OT ZT TI LT ZT ZL ZL IO LZ IZ IZ ZT TZ OT OI LZ IL IZ TL IT ZO TL ZL IZ IZ LO LO ZI TI OT ZT OI IT ZI IL OI TO ZL LI TL LT OI LZ TI TZ OL ZO OZ IL LO ZT ZL IT TO ZI TZ IL IO LO LT IT OL LO ZT OZ OI TI OL OZ ZI IT IO IT ...

First Run Output

TTIZTILLTZITLZTLIZILLOOTTITTLLILZIZTTILIILIOLZIILLIIOTIIIIIOLLLLILIZLOOLLTLITIZIILLTOLZZITLOITIIILILOLLTLLOLIIOLOTTTLOZOTIZOILLOTTIOIIILIILTIOIITLZLLILILZTILIIILTOTTLZLLILILLLLLLILOZLIIZIIIZZLOLZLLILITITLTTTTTTTLLITTIOLIOLIOTTOILZZOTZLOLIIIOOLZOLOITLTTTILLLZTIIIIIZTTLLIIILILLILZILOLLOLOOIIOTILTILLLO...

Second Run Input

play
303
T
T
I
Z
T
I
L
L
T
Z
I
T
L
Z
T
L
I
Z
I
L
L
O
O
T
T
I
T
T
L
L
I
L
Z
I
Z
T
T
I
L
I
I
L
I
O
L
Z
I
I
L
L
I
I
O
T
I
I
I
I
I
O
L
L
L
L
I
L
I
Z
L
O
O
L
L
T
L
I
T
I
Z
I
I
L
L
T
O
L
Z
Z
I
T
L
O
I
T
I
I
I
L
I
L
O
L
L
T
L
L
O
L
I
I
O
L
O
T
T
T
L
O
Z
O
T
I
Z
O
I
L
L
O
T
T
I
O
I
I
I
L
I
I
L
T
I
O
I
I
T
L...

Second Run Output

*....
**...
*....
.....
.....

#..*.
##***
#....
.....
.....

#..#.
...*.
#..*.
...*.
...*.

#**..
**...
#....
.....
.....

###*.
##***
#....
.....
.....

####.
.....
#****
.....
.....

####*
....*
...**
.....
.....

.....
*...#
***##
.....
.....

..*..
#***#
.....
.....
.....

**#..
.**..
.....
......

result:

ok good job!

Test #11:

score: 100
Accepted
time: 26ms
memory: 3924kb

First Run Input

prepare
502
LO LI OZ LO IO ZT LO OZ OZ ZI IO OT ZO LZ IZ ZT TL TL LI IL IZ TO IO IL OL OL OL LO ZI OZ OZ ZO OZ IT OZ LZ TZ TO LZ TL ZL IZ LZ ZO ZL IO IL LI LT ZI OZ IZ OI TZ LI ZT IT LO TO ZI LT OT LZ OI LZ OZ LZ IT TO TI OI TO TO OI TZ ZL IO OZ ZO ZL LZ IZ OI TL TO TI LZ ZL ZL OZ TI ZI TL LO ZT LI ...

First Run Output

OLOLITLZZIITZZITLLIIITILOLOOIZZZZIOLTTZLLILOLILILIOIOTIZILTILOZILZZIOTIOTITLIOZLZIILOILLLOTITLTIIITOOTILLILTOOTLZTIOLTLTLLOTOLOIOIIILIILIOLOOZIOIOTTLLTLILILTLZLOIILILLLLTLZOTLZTOLZLLTOZLLOTLTIOOIILZZTOTITTLLLOIZIITZTLTLZLLZTTIIOIZLTZLLTLOIILTTZZIIIITLLLTZTTILIILLLZTIIITILTZLITIIITIIOTIOOTZILLLIILIOL...

Second Run Input

play
502
O
L
O
L
I
T
L
Z
Z
I
I
T
Z
Z
I
T
L
L
I
I
I
T
I
L
O
L
O
O
I
Z
Z
Z
Z
I
O
L
T
T
Z
L
L
I
L
O
L
I
L
I
L
I
O
I
O
T
I
Z
I
L
T
I
L
O
Z
I
L
Z
Z
I
O
T
I
O
T
I
T
L
I
O
Z
L
Z
I
I
L
O
I
L
L
L
O
T
I
T
L
T
I
I
I
T
O
O
T
I
L
L
I
L
T
O
O
T
L
Z
T
I
O
L
T
L
T
L
L
O
T
O
L
O
I
O
I
I
I
L
I
I
L
I
O
L
O
O
Z
I
O
I
O...

Second Run Output

**...
**...
.....
.....
.....

##*..
##***
.....
.....
.....

###**
...**
.....
.....
.....

*....
***##
.....
.....
.....

#****
.....
.....
.....
.....

*....
**...
*....
.....
.....

#...*
##***
#....
.....
.....

#**.#
**...
#....
.....
.....

###*#
##**.
#.*..
.....
.....

.....
####*
#.#.*
......

result:

ok good job!

Test #12:

score: 100
Accepted
time: 38ms
memory: 4036kb

First Run Input

prepare
801
TL TL TZ LO LO TI ZI LI LZ OT OZ LT OL IL OZ OT OT IO ZL OZ OT ZL LO TO TZ TL OI ZO TI ZI TO IT ZL TZ IZ IT IL ZO IO LT ZI OZ LO TI OI TO LI IL LT LZ LT OZ IL LZ ZO ZT IL ZL TZ OI IZ TL ZI OT TO IL IO OZ IO ZL OT IZ IZ IT IT OI OZ ZL ZT ZT OI IT IZ IL ZL LZ TI IZ IZ IZ ZI LT ZT LZ IO LZ ...

First Run Output

LLTOLIIILTZLLIOTTILZTLLTZLOZTIOTLTIIIOILIZLIOOIILLLZLLZTLLTIILITTIIOILOZIIIIOLZTITILLLTIIIILTZILTILLLTLLLZOILIILZILZZIIIOOLLLOTLLILZLIITOIZIZLLLLTITIIITLTIZZZOOLILIOLLILLLLLIOZIILIIOOLLIOLLIOILILIIIITILLTIOOLILILIITILILLTLLTLLLIILIIIOIITTILZILOLIOLOLILIITTZTTTLZTIIIILIOIILLTITTIILOLITILIILIOZTZTLTZI...

Second Run Input

play
801
L
L
T
O
L
I
I
I
L
T
Z
L
L
I
O
T
T
I
L
Z
T
L
L
T
Z
L
O
Z
T
I
O
T
L
T
I
I
I
O
I
L
I
Z
L
I
O
O
I
I
L
L
L
Z
L
L
Z
T
L
L
T
I
I
L
I
T
T
I
I
O
I
L
O
Z
I
I
I
I
O
L
Z
T
I
T
I
L
L
L
T
I
I
I
I
L
T
Z
I
L
T
I
L
L
L
T
L
L
L
Z
O
I
L
I
I
L
Z
I
L
Z
Z
I
I
I
O
O
L
L
L
O
T
L
L
I
L
Z
L
I
I
T
O
I
Z
I
Z
L
L
L
L
T...

Second Run Output

**...
*....
*....
.....
.....

##***
#...*
#....
.....
.....

..*..
#***#
#....
.....
.....

**#..
**...
#....
.....
.....

###.*
##***
#....
.....
.....

###.#
.....
#****
.....
.....

###.#
....*
....*
....*
....*

###..
..*..
..*..
..*..
..*..

##***
....*
.....
.....
.....

..***
...*#
.....
......

result:

ok good job!

Test #13:

score: 100
Accepted
time: 55ms
memory: 4184kb

First Run Input

prepare
1000
LT LT TO OL ZI OI IO IL TO IO IT LZ ZL ZL OL OI OL TO IO OL IZ ZO TZ OZ TL LT IZ LO IZ IO IO ZT IO TZ LI ZL ZT LT TL TL IL TI OZ LO TO OI LI LI OL ZI ZI TI IO OL ZT LT ZL ZI TZ TL OT ZL OT TI OL IT ZL IT OT LZ LZ LZ IL OZ LO ZI TZ IT TO TZ OZ ZI IT TZ LZ ZT ZO LT OT TI OZ LI OZ TL LO OT...

First Run Output

LLTOIIOIOIILLLOOLOILIZTZLTIOIIOTITLLZLLLLIOLOILILIIIILTTLITLTLTILILTOLZLLZLITTOTZIITLTZLTIZLOLOTIOTIOLILIIIIOOIIIIZIOTLIZILOIZTITOLLLITITTILOOLOTIZTZLIIIIIOZILTITTITLZLILILLTLTLTLTTILIIOTTTTZIOILZITILTIOITIITTIILILTIIILIZILIIILOZIZLTZLOOLOLTOTLLLLLLTLIZIOOTTTIOZLLLOILLIILILILZTIIIZLILIOTIOOLITLZILZZ...

Second Run Input

play
1000
L
L
T
O
I
I
O
I
O
I
I
L
L
L
O
O
L
O
I
L
I
Z
T
Z
L
T
I
O
I
I
O
T
I
T
L
L
Z
L
L
L
L
I
O
L
O
I
L
I
L
I
I
I
I
L
T
T
L
I
T
L
T
L
T
I
L
I
L
T
O
L
Z
L
L
Z
L
I
T
T
O
T
Z
I
I
T
L
T
Z
L
T
I
Z
L
O
L
O
T
I
O
T
I
O
L
I
L
I
I
I
I
O
O
I
I
I
I
Z
I
O
T
L
I
Z
I
L
O
I
Z
T
I
T
O
L
L
L
I
T
I
T
T
I
L
O
O
L
O
T
...

Second Run Output

**...
*....
*....
.....
.....

##***
#...*
#....
.....
.....

..*..
#***#
#....
.....
.....

**#..
**...
#....
.....
.....

###..
##*..
#.*..
..*..
..*..

##...
##...
#****
.....
.....

##**.
##**.
.....
.....
.....

####*
####*
....*
....*
.....

...**
...**
....#
....#
.....

...##
...##
....#
***...

result:

ok good job!

Test #14:

score: 0
Stage 1: Program answer Runtime Error

First Run Input

prepare
1000
LI ZL ZL OZ ZT ZO IO OZ OI ZI IL ZI OT OI TL TI IT IT TO ZO TI LZ IL IZ OL ZT LZ ZL TI IT TZ LZ IZ OZ ZI ZO IL OL TI OI ZT OL IO OL TZ LT IO ZO TL OT TO ZT OZ TO IO LT ZL TI ZL ZL ZL ZL TL TL TO ZI TI OT TZ OI IL OT TI LI ZT OT IO LT OT OZ IO IL OL TI OT TZ LT OI IO ZO TI IT OT ZT OZ LT...

First Run Output


Second Run Input


Second Run Output


result: