Pro.ID22669 TitleLast digit Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22669 AC0 Submit22 Ratio0.00% 时间&空间限制描述Determine the last nonzero digit in value of expression 输入Input a single line with n and m separated by one or several spaces; n, m are natural numbers from 1 to 1000000, n ≥ m . 输出Description Determine the last nonzero digit in value of expression Input Input 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 Output a single line with the last nonzero digit. Sample Input 4 2 Sample Output 6 Source 样例输入4 2 样例输出6 作者 |