HBC209435InfiniteStringComparision题解

不可一世的小女人 算法基础篇 79 0
题库丰富多样,涵盖各个领域,全网最全C++题库,让您在练习中不断成长!
For a string xxx, Bobo defines x∞=xxx…x^infty = x x x dotsx∞=xxx…, which is xxx repeats for infinite times, resulting in a string of infinite length. Bobo has two strings aaa and bbb. Find out the result comparing a∞a^inftya∞ and b∞b^inftyb∞ in lexicographical order. You can refer the wiki page for further information of Lexicographical Order.

For a string xxx, Bobo defines x∞=xxx…x^infty = x x x dotsx∞=xxx…, which is xxx repeats for infinite times, resulting in a string of infinite length. Bobo has two strings aaa and bbb. Find out the result comparing a∞a^inftya∞ and b∞b^inftyb∞ in lexicographical order. You can refer the wiki page for further information of Lexicographical Order.

HBC209435InfiniteStringComparision题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
不断学习,不断挑战,才能在编程领域中脱颖而出!全网最全C++题库,助您成为编程高手!

标签: HBC209435InfiniteStringComparision题解