22669_Lastdigi

2022-5-16 18:22| 发布者: Hocassian| 查看: 21| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506839493200-Problem List-采集的数据-后羿采集器.html

Pro.ID

22669

Title

Last digit

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22669

AC

0

Submit

22

Ratio

0.00%

时间&空间限制

  • Time Limit: 1000/500 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    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, nm .

    输出

    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, nm .

    Output

    Output a single line with the last nonzero digit.

    Sample Input

    4 2

    Sample Output

    6

    Source

    样例输入

    4 2

    样例输出

    6

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部