Suanpan abacus

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

Write a program that takes a single integer as input and prints out a Suanpan abacus.(http://en.wikipedia.org/wiki/Suanpan)

Options

exec is denied

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

Sample input:_

314159

Sample output:

|\======================================/|
||  (__)  (__)  (__)  (__)  (__)  (__)  ||
||  (__)  (__)  (__)  (__)   ||    ||   ||
||   ||    ||    ||    ||    ||    ||   ||
||   ||    ||    ||    ||   (__)  (__)  ||
|<======================================>|
||  (__)  (__)  (__)  (__)   ||   (__)  ||
||  (__)   ||   (__)   ||    ||   (__)  ||
||  (__)   ||   (__)   ||    ||   (__)  ||
||   ||    ||   (__)   ||    ||   (__)  ||
||   ||    ||    ||    ||    ||    ||   ||
||   ||    ||    ||    ||   (__)   ||   ||
||   ||   (__)   ||   (__)  (__)   ||   ||
||   ||   (__)   ||   (__)  (__)   ||   ||
||  (__)  (__)   ||   (__)  (__)   ||   ||
||  (__)  (__)  (__)  (__)  (__)  (__)  ||
|/======================================\|

Sample input:_

6302715408

Sample output:

|\==============================================================/|
||  (__)  (__)  (__)  (__)  (__)  (__)  (__)  (__)  (__)  (__)  ||
||   ||   (__)  (__)  (__)   ||   (__)   ||   (__)  (__)   ||   ||
||   ||    ||    ||    ||    ||    ||    ||    ||    ||    ||   ||
||  (__)   ||    ||    ||   (__)   ||   (__)   ||    ||   (__)  ||
|<==============================================================>|
||  (__)  (__)   ||   (__)  (__)  (__)   ||   (__)   ||   (__)  ||
||   ||   (__)   ||   (__)  (__)   ||    ||   (__)   ||   (__)  ||
||   ||   (__)   ||    ||    ||    ||    ||   (__)   ||   (__)  ||
||   ||    ||    ||    ||    ||    ||    ||   (__)   ||    ||   ||
||   ||    ||    ||    ||    ||    ||    ||    ||    ||    ||   ||
||   ||    ||   (__)   ||    ||    ||   (__)   ||   (__)   ||   ||
||  (__)   ||   (__)   ||    ||   (__)  (__)   ||   (__)   ||   ||
||  (__)   ||   (__)  (__)  (__)  (__)  (__)   ||   (__)   ||   ||
||  (__)  (__)  (__)  (__)  (__)  (__)  (__)   ||   (__)  (__)  ||
||  (__)  (__)  (__)  (__)  (__)  (__)  (__)  (__)  (__)  (__)  ||
|/==============================================================\|

Ranking

Perl _

RankUserSizeTimeDateStatistics
1Timwi1510.03672011/04/06 20:03:230B / 36B / 102B
2tybalt891820.00432011/04/05 08:42:230B / ?B / ?B
3tails2000.00312011/03/26 22:36:020B / 70B / 115B
4teebee(Timwi)1500.00492011/04/10 06:57:480B / 36B / 102B

Python _

RankUserSizeTimeDateStatistics
1hirose1900.05282011/04/07 06:00:371B / 79B / 93B
2hallvabo1970.05422011/04/09 08:59:0219B / 66B / 95B

JavaScript _

RankUserSizeTimeDateStatistics
1embstr2640.01822011/04/09 02:21:150B / 91B / 157B

J _

RankUserSizeTimeDateStatistics
1I., S.1000.07132011/07/13 20:08:330B / 17B / 75B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai5710.10152011/04/05 19:39:290B / 244B / 271B

AWK _

RankUserSizeTimeDateStatistics
1houmei3550.00192011/04/01 06:13:120B / ?B / ?B

Language Ranking_

RankLangUserSizeScore
1JI., S.10010000
2Perlteebee(Timwi)1506666
3Pythonhirose1905263
4JavaScriptembstr2643787
5AWKhoumei3552816
6OCamlm.ukai5711751

return top