• 如果您想对本站表示支持,请随手点击一下广告即可~
  • 本站致力于提供原创、优秀的技术文章~
  • 有任何疑问或建议 均可以在站点右侧栏处 通过各种方式联系站长哦~
  • POJ1016 – Numbers That Count – 测试数据

    测试数据 EXP 86阅读 0评论

     
    全解题报告索引目录 -> 【北大ACM – POJ试题分类
    POJ1016 -> 【Numbers That Count


    Sample Input

    22

    31123314

    314213241519

    21221314

    111222234459

    123456789

    654641656

    2101400052100005496

    10000000002000000000

    333

    1

    99999999999999999999999999999999999999999999999999999999999999999999999999999999

    0000

    0001

    0111

    1111

    123456789

    456137892

    123213241561

    543265544536464364

    5412314454766464364

    543267685643564364

    5423434560121016464364

    -1

    Sample Output

    22 is self-inventorying

    31123314 is self-inventorying

    314213241519 enters an inventory loop of length 2

    21221314 is self-inventorying after 2 steps

    111222234459 enters an inventory loop of length 2

    123456789 is self-inventorying after 5 steps

    654641656 enters an inventory loop of length 2

    2101400052100005496 enters an inventory loop of length 2

    10000000002000000000 enters an inventory loop of length 3

    333 is self-inventorying after 11 steps

    1 is self-inventorying after 12 steps

    99999999999999999999999999999999999999999999999999999999999999999999999999999999 can not be classified after 15 iterations

    0000 enters an inventory loop of length 2

    0001 is self-inventorying after 8 steps

    0111 is self-inventorying after 8 steps

    1111 is self-inventorying after 8 steps

    123456789 is self-inventorying after 5 steps

    456137892 is self-inventorying after 5 steps

    123213241561 enters an inventory loop of length 2

    543265544536464364 enters an inventory loop of length 2

    5412314454766464364 is self-inventorying after 3 steps

    543267685643564364 enters an inventory loop of length 2

    5423434560121016464364 is self-inventorying after 3 steps


    转载请注明:EXP 技术分享博客 » POJ1016 – Numbers That Count – 测试数据

    喜欢 (0) 分享 (0)
    发表我的评论
    取消评论

    表情

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址