2017年8月6日
摘要: Given an array A (index starts at 1) consisting of N integers: A1, A2, ..., AN and an integer B. The integer B denotes that from any place (suppose th 阅读全文
posted @ 2017-08-06 22:14 Beserious 阅读(883) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2017-08-06 21:02 Beserious 阅读(133) 评论(0) 推荐(0) 编辑