Skip to content

IT blogs tech news #1

@Anguliachao

Description

@Anguliachao

1.求整数n的阶乘n!的末尾有多少个0? (如:50!的末尾就有12个0)

实现代码:https://github.com/smilejay/python/blob/master/py2015/zero_cnt_of_factorial.py

  1. 买啤酒问题:假设你的有n(n=10)元钱,一瓶啤酒的价格是2元,每3个空瓶可以换取一瓶啤酒,请问你最多可以喝到多少瓶啤酒?

    实现代码:https://github.com/smilejay/python/blob/master/py2015/beer.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions