Puyo Pop chain

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

Show each step of the Puyo Pop chain starting from the given arrangement.

(Please note that puyos fall toward left in this problem.)

-- tails

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

|AA
|BBAA
|CCCBB
|DEDDC
|EAEED
|AAA

Sample output:

|AA
|BBAA
|CCCBB
|DEDDC
|EAEED
|AAA

|AA
|BBAA
|CCCBB
|DEDDC
|EEED
|

|AA
|BBAA
|CCCBB
|DDDC
|D
|

|AA
|BBAA
|CCCBB
|C
|
|

|AA
|BBAA
|BB
|
|
|

|AA
|AA
|
|
|
|

|
|
|
|
|
|

Sample input:_

|BDBEBBAABEDBCEDEBA
|DAADEBDBBAEECCEADDEDDEEADBEDEEA
|EDCDEACAEBCCDEAC
|CBBACEBDBCADACDBBEAEDDDEB
|BBEACBDBCDBEBBEEAABEBACD
|AAECAA

Sample output:

|BDBEBBAABEDBCEDEBA
|DAADEBDBBAEECCEADDEDDEEADBEDEEA
|EDCDEACAEBCCDEAC
|CBBACEBDBCADACDBBEAEDDDEB
|BBEACBDBCDBEBBEEAABEBACD
|AAECAA

|BDBEBBAABEDBCEDEBA
|DAADEBDBBAEECCEADDEDDEEADBEDEEA
|EDCDEACAEBCCDEAC
|CACEBDBCADACDBBEAEDDDEB
|EACBDBCDBEBBEEAABEBACD
|AAECAA

|BDBEBBAABEDBCEDEBA
|DAADEBDBBAEECCEADDEDDEEADBEDEEA
|EDCDEACAEBCCDEAC
|CCEBDBCADACDBBEAEDDDEB
|ECBDBCDBEBBEEAABEBACD
|ECAA

|BDBEBBAABEDBCEDEBA
|DAADEBDBBAEECCEADDEDDEEADBEDEEA
|EDCDEACAEBCCDEAC
|EBDBCADACDBBEAEDDDEB
|EBDBCDBEBBEEAABEBACD
|EAA

|BDBEBBAABEDBCEDEBA
|DAADEBDBBAEECCEADDEDDEEADBEDEEA
|DCDEACAEBCCDEAC
|BDBCADACDBBEAEDDDEB
|BDBCDBEBBEEAABEBACD
|AA

|BDBEBBAAEDBCEDEBA
|DAADEBDAEECCEADDEDDEEADBEDEEA
|DCDEACAECCDEAC
|BDBCADACDBBEAEDDDEB
|BDBCDBEBBEEAABEBACD
|AA

|BDBEBBAAEDBCEDEBA
|DAADEBDAEECCEADDEDDEEADBEDEEA
|DCDEACAECCDEC
|BDBCADACDBBEEDDDEB
|BDBCDBEBBEEBEBACD
|AA

|BDBEBBAAEDBCEDEBA
|DAADEBDAEECCEADDEDDEEADBEDEEA
|DCDEACAECCDC
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBEBBAAEDBEDEBA
|DAADEBDAEEEADDEDDEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBEBBAADBEDEBA
|DAADEBDAADDEDDEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBEBBDBEDEBA
|DAADEBDDDEDDEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBEBBBEDEBA
|DAADEBEDDEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBEEDEBA
|DAADEEDDEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBDEBA
|DAADDDEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBEBA
|DAAEEADBEDEEA
|DCDEACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBBA
|DAAADBEDEEA
|DCDACAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BDBBA
|DDBEDEEA
|DCDCAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|BBBA
|BEDEEA
|CDCAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|A
|EDEEA
|CDCAECCD
|BDBCADACDBBDDDEB
|BDBCDBEBBEEBBACD
|AA

|A
|EEEA
|CCAECCD
|BBCADACDBBDDDEB
|BBCDBEBBEEBBACD
|AA

|A
|EEEA
|CCAECCD
|CADACDBBDDDEB
|CDBEBBEEBBACD
|AA

|A
|EEEA
|AECCD
|ADACDBBDDDEB
|DBEBBEEBBACD
|AA

|A
|A
|ACCD
|ADACDBBDDDEB
|DBEBBEEBBACD
|AA

|
|
|CCD
|DACDBBDDDEB
|DBEBBEEBBACD
|AA

|
|
|CCD
|DACDDDDEB
|DBEEEBBACD
|AA

|
|
|CCD
|DACEB
|DBEEEBBACD
|AA

|
|
|CCD
|DACB
|DBBBACD
|AA

|
|
|CCD
|DAC
|DACD
|AA

|
|
|CCD
|DC
|DCD
|

|
|
|D
|D
|DD
|

|
|
|
|
|
|

Sample input:_

|AAAEBDDDEEECCEDBDAE
|EDDEBECCBCDCADCEACADDCABDCC
|EBDBEBADCBEBCADCADDACCBBDDEECCE
|DAABADCBAEAEEEADCADCA
|BEEBBEBBCCACBCDACE
|CAAC

Sample output:

|AAAEBDDDEEECCEDBDAE
|EDDEBECCBCDCADCEACADDCABDCC
|EBDBEBADCBEBCADCADDACCBBDDEECCE
|DAABADCBAEAEEEADCADCA
|BEEBBEBBCCACBCDACE
|CAAC

|AAAEBDDDEEECCEDBDAE
|EDDEBECCBCDCADCEACADDCABDCC
|EBDEBADCBEBCADCADDACCBBDDEECCE
|DAAADCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAAEBDDDEEEEDBDAE
|EDDEBECCBCDADCEACADDCABDCC
|EBDEBADCBEBADCADDACCBBDDEECCE
|DAAADCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAAEBDDDDBDAE
|EDDEBECCBCDADCEACADDCABDCC
|EBDEBADCBEBADCADDACCBBDDEECCE
|DAAADCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAAEBBDAE
|EDDEBECCBCDADCEACADDCABDCC
|EBDEBADCBEBADCADDACCBBDDEECCE
|DAAADCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAAEDAE
|EDDEECCBCDADCEACADDCABDCC
|EBDEADCBEBADCADDACCBBDDEECCE
|DAAADCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAADAE
|EDDCCBCDADCEACADDCABDCC
|EBDADCBEBADCADDACCBBDDEECCE
|DAAADCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAADAE
|EDDCCBCDADCEACADDCABDCC
|EBDDCBEBADCADDACCBBDDEECCE
|DDCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAADAE
|ECCBCDADCEACADDCABDCC
|EBCBEBADCADDACCBBDDEECCE
|DDCBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAADAE
|EBCDADCEACADDCABDCC
|EBBEBADCADDACCBBDDEECCE
|DDBAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAADAE
|ECDADCEACADDCABDCC
|EEBADCADDACCBBDDEECCE
|DDAEAEEEADCADCA
|BEEEBBCCACBCDACE
|CAAC

|AAADAE
|ECDADCEACADDCABDCC
|EEBADCADDACCBBDDEECCE
|DDAAEEEADCADCA
|BBBCCACBCDACE
|CAAC

|AAADAE
|ECDDCEACADDCABDCC
|EEBDCADDACCBBDDEECCE
|DDEEEADCADCA
|BBBCCACBCDACE
|CAAC

|AAAAE
|ECCEACADDCABDCC
|EEBCADDACCBBDDEECCE
|DDEEEADCADCA
|BBBCCACBCDACE
|CAAC

|E
|ECCEACADDCABDCC
|EEBCADDACCBBDDEECCE
|DDEEEADCADCA
|BBBCCACBCDACE
|CAAC

|
|CCEACADDCABDCC
|BCADDACCBBDDEECCE
|DDEEEADCADCA
|BBBCCACBCDACE
|CAAC

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|DDEEEDCADCA
|BBBCCCBCDACE
|CAAC

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|DDEEEDCADCA
|BBBBCDACE
|CAA

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|DDEEEDCADCA
|CDACE
|CAA

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|DDDCADCA
|CDAC
|CAA

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|CADCA
|CAC
|CAA

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|CDCA
|CC
|C

|
|CCEACDDCABDCC
|BCADDCCBBDDEECCE
|DCA
|
|

|
|EACDDCABDCC
|BADDCCBBDDEECCE
|DA
|
|

|
|EACCABDCC
|BACCBBDDEECCE
|DA
|
|

|
|EAABDCC
|BABBDDEECCE
|DA
|
|

|
|EBDCC
|BBBDDEECCE
|D
|
|

|
|EDCC
|DDEECCE
|D
|
|

|
|ECC
|EECCE
|
|
|

|
|E
|EEE
|
|
|

|
|
|
|
|
|

Ranking

Perl _

RankUserSizeTimeDateStatistics
1brx1260.75302013/08/06 05:57:180B / 49B / 75B
2tails1340.33452013/08/05 21:54:570B / 33B / 91B

Python _

RankUserSizeTimeDateStatistics
1hallvabo (zip)2380.12262013/08/06 21:29:05133B / 67B / 37B
2hallvabo2890.20892013/08/06 21:25:030B / 130B / 126B
3rolf4970.19312013/08/25 22:48:320B / 267B / 158B

J _

RankUserSizeTimeDateStatistics
1I., S.920.07272013/08/07 12:38:040B / 20B / 69B

C _

RankUserSizeTimeDateStatistics
1tails2270.03342013/08/04 14:39:290B / 117B / 105B

C++ _

RankUserSizeTimeDateStatistics
1tails (check)11050.03242013/07/28 03:00:540B / 527B / 327B

sed _

RankUserSizeTimeDateStatistics
1tails2870.26012013/08/03 01:37:450B / 97B / 161B

Language Ranking_

RankLangUserSizeScore
1JI., S.9210000
2Perlbrx1267301
3Ctails2274052
4Pythonhallvabo (zip)2383865
5sedtails2873205
6C++tails (check)1105832

return top