求代码ACMLC-Display
Afriendofyouhasjustboughtanewcomputer.Untilnow,themostpowerfulcomputerheeverusedhasbeenapocketcalculator.Now,lookingathisnewcomputer,heisabitdisappointed,becausehelikedtheLC-displayofhiscalculatorsomuch.SoyoudecidetowriteaprogramthatdisplaysnumbersinanLC-display-likestyleonhiscomputer.
Input
Theinputcontainsseverallines,oneforeachnumbertobedisplayed.Eachlinecontainstwointegerss,n(1≤s≤10,0≤n≤99,999,999),wherenisthenumbertobedisplayedandsisthesizeinwhichitshallbedisplayed.
Theinputfilewillbeterminatedbyalinecontainingtwozeros.Thislineshouldnotbeprocessed.
Output
OutputthenumbersgivenintheinputfileinanLC-display-styleusings"-"signsforthehorizontalsegmentsands"|"signsfortheverticalones.Eachdigitoccupiesexactlys+2columnsand2s+3rows.(Besuretofillallthewhitespaceoccupiedbythedigitswithblanks,alsoforthelastdigit.)Therehastobeexactlyonecolumnofblanksbetweentwodigits.
Outputablanklineaftereachnumber.(Youwillfindasampleofeachdigitinthesampleoutput.)
SampleInput
212345
367890
00
SampleOutput
------
||||||
||||||
--------
|||||
|||||
------
---------------
||||||||
||||||||
||||||||
---------
||||||||
||||||||
||||||||
------------
自己写的?