21203_SirBedavere’sBogusDivisionSolutions

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

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

Pro.ID

21203

Title

Sir Bedavere’s Bogus Division Solutions

Title链接

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

AC

0

Submit

0

Ratio

-

时间&空间限制

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

    The wise Sir Bedavere often uses non-standard logic, yet achieves positive results. Well, it seems he has been at it again, this time with division. He has determined that canceling the common digit of a numerator and denominator produces the correct answer. Of course, Sir Bedavere only tried this on a small sample of three digit numbers. An example of what he did is shown in the following division problem (in which he canceled the common 6):

    Your task is to find all three digit number combinations with the following property:


    number combinations where removing the rightmost digit from the top number (numerator) and the identical leftmost digit from the bottom number (denominator) leaves the result of the calculation unchanged.
    Omit all of the trivial cases — xxx/xxx = xx/xx (222/222 = 22/22). The solutions are to be shown in increasing order of the top number (the numerator).

    输入

    NONE! There is no input for this problem.

    输出

    Description
    The wise Sir Bedavere often uses non-standard logic, yet achieves positive results. Well, it seems he has been at it again, this time with division. He has determined that canceling the common digit of a numerator and denominator produces the correct answer. Of course, Sir Bedavere only tried this on a small sample of three digit numbers. An example of what he did is shown in the following division problem (in which he canceled the common 6):

    Your task is to find all three digit number combinations with the following property:


    number combinations where removing the rightmost digit from the top number (numerator) and the identical leftmost digit from the bottom number (denominator) leaves the result of the calculation unchanged.
    Omit all of the trivial cases — xxx/xxx = xx/xx (222/222 = 22/22). The solutions are to be shown in increasing order of the top number (the numerator).
    Input
    NONE! There is no input for this problem.
    Output
    Show the bogus division problems one to a line in the format shown below (which gives a sample merely to show the format) — single spaces separate the non-blank characters.
    Sample Input
     
    Sample Output
    217 / 775 = 21 / 75
    249 / 996 = 24 / 96
    Source

    样例输入

     

    样例输出

    217 / 775 = 21 / 75
    249 / 996 = 24 / 96

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部