高尔夫代码:ASCII 艺术编号
可能的重复:
代码高尔夫 - 横幅生成
发布您将数字转换为 ASCII 艺术数字的最短代码。
输入 - 假设已设置名为z 的整数变量,其中包含该数字。
输出 - 将输出打印到控制台。
质量 - 字符数越少越好。
格式 - 灵活,只要它是 ASCII 艺术并且看起来像数字。数字之间还必须有一些间距。
测试输入:365
GGGGGGGGGGG....GGGGGGGGGGGG...GGGGGGGGGGG
..........G....G..............G..........
..........G....G..............G..........
..GGGGGGGGG....GGGGGGGGGGGG...GGGGGGGGGGG
..........G....G..........G.............G
..........G....G..........G.............G
GGGGGGGGGGG....GGGGGGGGGGGG...GGGGGGGGGGG
Possible Duplicate:
Code Golf - Banner Generation
Post your shortest code to convert a number into a ASCII art digits.
Input - Assume that an integer variable called z has already been set containing the number.
Output - Print the output to the console.
Quality - The lower number of characters, the better.
Formatting - Flexible, providing it is ASCII art and looks like a number. There must also be some spacing between digits.
Test input: 365
GGGGGGGGGGG....GGGGGGGGGGGG...GGGGGGGGGGG
..........G....G..............G..........
..........G....G..............G..........
..GGGGGGGGG....GGGGGGGGGGGG...GGGGGGGGGGG
..........G....G..........G.............G
..........G....G..........G.............G
GGGGGGGGGGG....GGGGGGGGGGGG...GGGGGGGGGGG
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Python:173 个字符
Python: 173 characters
Bash:9 个字符
;)
Bash: 9 characters
;)
Ruby -
z = 365
的 139 个字符输出Ruby - 139 chars
Output for
z = 365