tenpai

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

Tell which tiles are needed to complete tenpai hand. Give each of three suits, numbers, in groups separated by vertical bar, followed by honors (ESWNPFC)

Options

exec is denied

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

Sample input:_

123456888|23|77|
11122|33|666|CCC
||1112345678999|
14|14|1445678|EE
558899|1133|11|S
111|111|222|EEWW
34|111333|99|PPP
12|333345|34588|
12|133345|34588|
5556|123456||FFF
123456|5557|111|
5558|123456||FFF
3558|123456||FFF
|4567999|123456|
3558|123456||EES
23456|789|78999|
111|79|333444|NN
23456|789|78999|
567|234678|45|NN
12389|||FFFCCCPP
2456||345555|CCC
2345678|222||PPP
1222|111|555567|
111|123|3334567|
234|456|5556667|
5556677|111||WWW
4445666|111||WWW
4445567|111||WWW
3334567|111||WWW
3334567|111222||
3456777888999|||
2233445566779|||
2233445566778|||

Sample output:

|14||
2|3||
||123456789|
|||
|||S
|||EW
25|||
3|||
|||
467|||
|67||
8|||
|||
|47||
|||
147|||
|8||
147|||
||36|
7|||
2|||
258|||
13|||
||24567|
||5678|
5678|||
34567|||
3568|||
24578|||
24578|||
2356789|||
9|||
58|||

Sample input:_

3334567|111222||
3456777888999|||
2233445566779|||
2233445566778|||
3334567|111222||
3456777888999|||
2233445566779|||
2233445566778|||
3334567|111222||
3456777888999|||
2233445566779|||
2233445566778|||

Sample output:

24578|||
2356789|||
9|||
58|||
24578|||
2356789|||
9|||
58|||
24578|||
2356789|||
9|||
58|||

Sample input:_

||1112345678999|
||1112345678999|
||1112345678999|
||1112345678999|
||1112345678999|
||1112345678999|
123456888|23|77|
11122|33|666|CCC
||1112345678999|
14|14|1445678|EE
558899|1133|11|S
111|111|222|EEWW
34|111333|99|PPP
12|333345|34588|
12|133345|34588|
5556|123456||FFF
123456|5557|111|
5558|123456||FFF
3558|123456||FFF
|4567999|123456|
3558|123456||EES
23456|789|78999|
111|79|333444|NN
23456|789|78999|
567|234678|45|NN
12389|||FFFCCCPP
2456||345555|CCC
2345678|222||PPP
1222|111|555567|
111|123|3334567|
234|456|5556667|
5556677|111||WWW
4445666|111||WWW
4445567|111||WWW
3334567|111||WWW
3334567|111222||
3456777888999|||
2233445566779|||
|2233445566778||

Sample output:

||123456789|
||123456789|
||123456789|
||123456789|
||123456789|
||123456789|
|14||
2|3||
||123456789|
|||
|||S
|||EW
25|||
3|||
|||
467|||
|67||
8|||
|||
|47||
|||
147|||
|8||
147|||
||36|
7|||
2|||
258|||
13|||
||24567|
||5678|
5678|||
34567|||
3568|||
24578|||
24578|||
2356789|||
9|||
|58||

Ranking

PHP _

RankUserSizeTimeDateStatistics
1o-cn1830.05402009/11/25 19:13:11101B / 47B / 34B

JavaScript _

RankUserSizeTimeDateStatistics
1nn(2233445566778->258, 4567999->478, 3334567->24578)7781.18382009/09/26 19:05:110B / 384B / 374B
2nn(2233445566778->258, 4567999->478, 3334567->24578)6680.99632009/09/26 22:56:290B / 305B / 346B

C _

RankUserSizeTimeDateStatistics
151b(embed)4020.03012009/10/11 23:18:21217B / 117B / 62B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(embed)(bin)1781.21062009/10/11 21:39:02110B / 45B / 23B

Language Ranking_

RankLangUserSizeScore
1Postscriptyshl(embed)(bin)17810000
2PHPo-cn1839726
3C51b(embed)4024427
4JavaScriptnn(2233445566778->258, 4567999->478, 3334567->24578)6682664

return top