Skip to content

Instantly share code, notes, and snippets.

@tmtm
Last active December 15, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmtm/5179451 to your computer and use it in GitHub Desktop.
Save tmtm/5179451 to your computer and use it in GitHub Desktop.
NSEG #37 Code Golf <http://nseg-golf.herokuapp.com>
$><<('%04d'%$*).chars.zip(%w{千 百 十}).join.gsub(/1(.)|0.?|(\d)/){$2?'0一二三四五六七八九'[$2.to_i]:$1}
@tmtm
Copy link
Author

tmtm commented Mar 17, 2013

116 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment