Guest User

Untitled

a guest
Feb 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. def 数字 = "〇一二三四五六七八九"
  2. def 範囲 = 数字.collect{漢数字->数字.indexOf(漢数字)}
  3. println 範囲.collect{段->
  4. 範囲.collect{掛->
  5. (段*掛)!=[].size()?(段*掛).toString().collect{数-> 数字[数.toInteger()]}.join()
  6. .padLeft(数字.indexOf("二")," ")+" ":""
  7. }.join()
  8. }.join("\n")
Add Comment
Please, Sign In to add comment