IQ Test

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Like IQ test, you need to find out an entry matching the sample.

INPUT:
Two lines form one test. A test consists of five 3x2 blocks each comprised of non-space characters. The first (left-most) block is the sample. Your task is to find out the same block from the rest.

OUTPUT:
Output in each line, the index of the match, followed by the first line of the matched block, followed by the second line of it.

-nn

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

ABC ABC ACB ABC ABC
DEF DEF DEF EDF DeF
abc acc abc dbc abc
def def def aef deF
123 122 023 123 123
456 456 456 456 x56
ana ina una ena ana
gol gol gol gol gol

Sample output:

1 ABCDEF
2 abcdef
3 123456
4 anagol

Sample input:_

Thi thi THI Thi Thi
sis sis sis sis SIS
ago ago goa ago ago
lfs lfs lfs fls lls
erv erw erx ery erv
er. er. er. er. er.
You You you you You
can can can Can Can
enj oys enj ENJ ENJ
oys enj oys oys OYS
hor hor 000 hor hcr
tco tco tco 111 too
din hor ghe Din din
ghe tco din ghE ghe
rei rie rei rei rei
nse nse sne nes nse
ver ver ver ver ver
all ell ala lll all
ang ong ang amg ang
uag uag uag uag uog
es( es( es) es} es{
83l 83l 83l 83l 83l
ang ung ang ong eng
uag uag uag uag uag
es) es] es> es} es)
.Th .Th .Th .Th .Th
epu rpu epu epo equ
rpo rpo rpo rpo rpo
seo seo Seo seo seu
fth ftH fth fth fth
iss iss sis iss iss
erv erv erv rev evr
eri eri eri eri eri
sno sno nso son sne
tse tse tse tze tse
rio rie rlo rio rio
usc uso usc vsc uzc
omp omp omp omp omp
eti eti eti eti etl
tio tlo tio tie tio
n.J n,J n.J m.J n.j
oke oke oke oke oke
pro pro pro pro pro
ble bLe ble blE Ble
msa msa msa msa msa
rew REW rew REw Rew
elc elc e1c e1o elc
ome ome ome ome 0ne
dan dan dan dan dan
dyo dxo dro dvo dyo
uca uoa uce uca uca
nsp nsp nsp nsp nsq
eak eak eak eak eak
fre erf rfe fer fre
ely e1y abo ely abo
abo abo abo abo e1y
utp utp utp upt utp
rob orb rob rob orb
lem lem lem lem lem
san san sun son sin
dca dca dca dca dca
nre nre nse nrf mre
lea lea lea lea lea
ses ees ses sss eee
poi poi poi poi poi
ler poi poi ler pee
s.F s.F S.F ssF s.F
ors ORS ors ors ors
eri eri eri eri eri
ous our oun ous eus
com com com com com
pet pat pet pit put
iti iti iti iii iti
onw onw nnw onw wnw
ith itq ith ith jth
ran ran ran run ran
kin kin kkn kkk kin
g,e g,e g,e g,e g.e
nte nte nte nte nye
rCo aco rco rCo rCo
deG deg deg deg deG
olf olf olg glf olf

Sample output:

3 Thisis
1 agolfs
4 erver.
1 Youcan
2 enjoys
1 hortco
4 dinghe
4 reinse
4 verall
2 anguag
1 es(83l
2 anguag
4 es).Th
2 epurpo
3 seofth
1 isserv
1 erisno
4 tserio
2 uscomp
2 etitio
2 n.Joke
2 proble
2 msarew
1 elcome
4 dandyo
3 ucansp
4 eakfre
3 elyabo
2 utprob
1 lemsan
1 dcanre
2 leases
3 poiler
4 s.Fors
3 erious
2 compet
1 itionw
2 ithran
1 king,e
3 nterCo
4 deGolf

Sample input:_

Gol gol gol Gol Gol
fSc fSc fsc fSc fsc
rip rip rip rip rip
tJP tjp tJp tJP TJP
erl ERL erl Erl erl
Rub Rub Rub rub rub
ygo gyo ygo ygo ygo
rub rub rub rbu Rub
yPy yPy ypy yyp ypy
tho tho tho tho toh
nFl nFl nfl nFl nfl
ogS ogS ogs gos ogS
cri cry cry cry cri
ptA ptA pTA pta ptA
WKG wkG WKg WKG WKG
roo roo roo ROO roo
vyv vyv vyv vyv yvv
iJa iaJ ija iJa iJa
vaS vas vaS vas vaS
cri cri cri crI Cri
ptC ptC ptc tCp ptC
z80 z80 z81 z82 z83
PHP PHH PPP HPH PHP
Bas Bas Bas Bas Bas
hHa hHu hHi hHo hHa
ske ske ske ske ske
llP llP llp llP llP
ost ost ost ast ust
scr scr scr scr scr
ipt ipt lpt iqt itp
Com com Com Cmm Com
mon mon mon mon mmn
LIS LIS PIS LIS LAS
PBA PBB PBA PBA PBA
SIC SSC SIC SIC SIC
Arc Arc Arc ARc ARC
OCa OCa 0Ca 0Ca oCa
mls mls m1s mls mls
edL edL odL edL edL
uaM uaM uaM waM vaM
axi axi axi aix exi
maS mas maS maS maS
che che chu che che
meF meF meF mmF mFe
ort ort ort ort orf
ran ram ron ran ran
IoP IOP I0P 1oP IoP
asc asc asc asc asc
alR aRl alR alR alR
dcS dcS dSc dcs dcS
cal ca1 cal cal cal
aZs aZs aZs azs Zsa
hDX hDX hDx hdx hDX
tal tal tal tal TAL
Log Log Log log Log
oSm osn som oSm oSm
all a11 all all al1
tal tal ta1 tal ta1
kCl kCl kcl kcl kCl
oju ojo oju oju oju
reP REP reP reP reP
rol rol rol ROL pol
ogP ogP ogP ogP ogP
erl er1 erl rle ERl
6fi 6fI 6fi 6fi 6fi
shw shw shv svv shw
ake ake awk ake ake
Bef Bef Bef Bof Pef
ung ugn umg ung yng
ebc ebc ebc ebc ebc
For For For For For
thT tTh htT thT ThT
clA clA clA clA clA
+As ++A ++s +As -As
ymp ynp ymp ymp ymp
tot tot ttt tto tot
em4 em4 em3 en2 em1
Jav Jav Jav Jav jav
axg xag awk awg axg
awk awk awk awg awk
Oct Oct oct Oct Oct
ave ove ave ave ava
Uni Une Uni uni Uni
ver ver ver ver vir
sal sal sal sal sal
Lam Lam lam Lem aLm
bda bad bda bad bda
Erl Elr Erl Erl rEl
ang ang amg ang ang
REB REB REB RBE RBB
OLC OLC OLO OIC OLC
++C ++C ++C ++C +-C
yan yan yan yan yun
DOS dos DOS DSO DOS
Lil lil lil lil Lil
yPo yPo yoP ypo yPo
ndB ndb ndb ndB ndB
rai rai rei rai lai
nfu nfu nfu nfu nfv
ckC cCk ckc ckC ckc
urr rrr rrr urr urr
yC# yCb yC% xC# yC#
QCL QCL QLC QCL QCL
GoU GoU GoU GOU GUO
nla nla nla nal lna
mbd mdb mbd mbd mbd
aMi ami aMi aMi aMi
nus nus uns nus nns
Ada Ada Ada ada Ada
COB BOC cob COB COB
OLM OLM oLM olm OLM
ind ind ind ind IND
Nem aaa Nem nem nem
erl aaa erl erl nrl
eLM ABC eLM eLM eLM
Nta DEF NtA NNN Nta
lKi lKI IKI lKI lKi
teD TED teD teD teD
-co -co +co c-o -oc
mpi mpi mpi mpi mpi
le- le- lel le- l-e
tim tlm tim tim tim
eWh Weh eWh ehW eWh
ite ite ite ite tie
spa spa spa spa psa
ceO ecO ce0 ceO ceO
bjC bjC bjc bjC biC
Laz Laz laz Las Laz
y-K y-K y-K y-K y-K
Pef epf pef Pff Pef
ung ung ugn ung ung
eFe eFe eFe eee Fee
rNA ANA rNA DNA RNA
NDo NDo NDo NDo NDo
Gra Gra Gru Gra Gra
ssJ zzJ ssJ ssj ssJ
VMg VMg Vmg vMg VMg
asx asy asx asx asx
86W 186 86W 186 386
hir hir hir hir hir
lVH lV. lVH lVH 1VH
DL. DL. D.L DL. DL.

Sample output:

3 GolfSc
3 riptJP
2 erlRub
2 ygorub
1 yPytho
1 nFlogS
4 criptA
4 WKGroo
3 vyviJa
2 vaScri
1 ptCz80
4 PHPBas
4 hHaske
1 llPost
1 script
2 Common
3 LISPBA
2 SICArc
1 OCamls
1 edLuaM
2 aximaS
1 chemeF
3 ortran
4 IoPasc
4 alRdcS
2 calaZs
1 hDXtal
4 LogoSm
3 alltal
4 kCloju
2 reProl
2 ogPerl
4 6fishw
1 akeBef
3 ungebc
3 ForthT
3 clA+As
4 ymptot
1 em4Jav
4 axgawk
3 Octave
2 Univer
1 salLam
2 bdaErl
1 angREB
1 OLC++C
2 yanDOS
4 LilyPo
3 ndBrai
3 nfuckC
4 urryC#
1 QCLGoU
2 nlambd
3 aMinus
4 AdaCOB
1 OLMind
2 Nemerl
4 eLMNta
4 lKiteD
1 -compi
3 le-tim
2 eWhite
3 spaceO
1 bjCLaz
4 y-KPef
1 ungeFe
2 rNANDo
4 GrassJ
4 VMgasx
2 86Whir
3 lVHDL.

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1uru530.02772011/07/29 15:30:510B / 29B / 20B
2yvl530.03672011/08/07 04:26:350B / 29B / 20B
3leonid530.02682011/08/07 14:56:040B / 29B / 20B
4nanayaT1420.03742011/08/04 07:49:330B / 81B / 56B

Perl _

RankUserSizeTimeDateStatistics
1yibe620.18202011/07/30 15:01:440B / 28B / 32B
2tybalt89640.04812011/07/27 02:10:080B / ?B / ?B
3tails640.00802011/07/28 05:42:590B / 22B / 36B
4Hem760.00872011/07/25 22:33:590B / 31B / 42B

Python _

RankUserSizeTimeDateStatistics
1twobit800.07722011/07/25 10:36:470B / 42B / 38B
2leonid800.07472011/07/25 11:26:530B / 46B / 32B
3hallvabo800.08002011/07/25 13:05:100B / 45B / 33B
4pv2b820.07902011/07/28 21:59:380B / 46B / 33B
5xulapp860.07032011/07/25 23:24:300B / 51B / 32B

JavaScript _

RankUserSizeTimeDateStatistics
1nn900.06192011/07/30 13:26:050B / 43B / 47B
2murky-satyr900.01152011/07/31 11:50:550B / 44B / 46B
3xulapp990.03982011/07/24 16:32:450B / 49B / 50B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*1080.00612011/08/04 22:04:450B / 44B / 62B
2pooq1160.00612011/07/28 15:34:060B / 51B / 62B

J _

RankUserSizeTimeDateStatistics
1I., S.420.11492011/07/24 21:29:130B / 11B / 30B

C _

RankUserSizeTimeDateStatistics
1inaniwa920.00272011/07/26 13:35:050B / 46B / 45B
2eiyuu970.00252011/08/03 10:57:340B / 43B / 53B
3nn980.00282011/07/29 22:29:230B / 44B / 53B
4inaniwa910.00442011/08/10 13:02:140B / 47B / 43B

OCaml _

RankUserSizeTimeDateStatistics
1petchema2840.12042011/08/06 23:15:040B / ?B / ?B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1030.00652011/08/05 18:43:580B / 56B / 41B
2Icewing1220.00602011/08/03 00:17:370B / 61B / 58B
3monqy1250.00592011/08/03 11:15:170B / 75B / 45B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*1440.00282011/07/29 23:26:160B / 90B / 47B
2uru1470.00292011/07/31 06:19:250B / 93B / 48B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1130.00352011/07/29 15:53:290B / 64B / 48B
2*yuko*1110.04532011/12/04 04:00:450B / 62B / 48B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2410.00372011/08/05 15:46:340B / 157B / 49B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1520.87932011/07/29 01:17:500B / 80B / 67B

AWK _

RankUserSizeTimeDateStatistics
1hemflit620.00342011/07/29 01:26:190B / 32B / 29B
2_650.02992011/07/29 00:59:030B / 33B / 30B

sed _

RankUserSizeTimeDateStatistics
1%201010.03222016/02/17 15:22:120B / 30B / 56B

GolfScript _

RankUserSizeTimeDateStatistics
1tails270.22612011/07/28 06:21:130B / 6B / 19B
2yvl270.47962011/08/07 04:28:250B / 8B / 18B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*521.19232011/08/05 17:24:4935B / 6B / 7B

Vim _

RankUserSizeTimeDateStatistics
1pla560.48402011/07/31 00:02:365B / 31B / 16B
2clock(pla)530.35072012/01/01 04:38:153B / 29B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1nn846.56532011/07/30 13:24:420B / 46B / 35B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr10221.36392011/07/27 12:35:400B / 56B / 38B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails2710000
2JI., S.426428
3z80*yuko*525192
4Rubyuru535094
5Vimclock(pla)535094
6AWKhemflit624354
7Perlyibe624354
8Pythontwobit803375
9Groovynn843214
10JavaScriptnn903000
11Cinaniwa912967
12sed%201012673
13Scalamurky-satyr1022647
14Haskellnotogawa1032621
15BASIC*yuko*1082500
16Fortran*yuko*1112432
17Pascal*yuko*1441875
18Maximapooq1521776
19COBOL*yuko*2411120
20OCamlpetchema284950

return top