#21017: 比大小的方法


Easonsfriend (去寫./Problems?ownerid=89827)

學校 : 不指定學校
編號 : 89827
來源 : [140.114.87.235]
最後登入時間 :
2025-10-05 14:35:49

bool isBigger(string a,string b){

    if(a.length()>b.length()){

        return 1;

    }

    if(a.length()<b.length()){

        return 0;

    }

    if(a>b)return 1;

    if(a<b)return 0;

    return 0;

}