Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def 数字 = "〇一二三四五六七八九"
- def 範囲 = 数字.collect{漢数字->数字.indexOf(漢数字)}
- println 範囲.collect{段->
- 範囲.collect{掛->
- (段*掛)!=[].size()?(段*掛).toString().collect{数-> 数字[数.toInteger()]}.join()
- .padLeft(数字.indexOf("二")," ")+" ":""
- }.join()
- }.join("\n")
Add Comment
Please, Sign In to add comment