草庐IT

c++ - SPOJ 370 - 一和零 (ONEZERO)

我正在尝试解决SPOJproblem"Onesandzeros":Certainpositiveintegershavetheirdecimalrepresentationconsistingonlyofonesandzeros,andhavingatleastonedigitone,e.g.101.Ifapositiveintegerdoesnothavesuchaproperty,onecantrytomultiplyitbysomepositiveintegertofindoutwhethertheproducthasthisproperty.我解决这个问题的方法就是简单地进行B