编程介的小学生
2017-08-07 09:14
采纳率: 92.7%
浏览 929
已采纳

Last digit

Description

Determine the last nonzero digit in value of expression

.
Input

The input contains a single line with n and m separated by one or several spaces; n, m are natural numbers from 1 to 1000000, n ≥ m.

Output

The output contains a single line with the last nonzero digit.

Sample Input

4 2
Sample Output

6

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题