My output is the same as the expected,why the submission result shows wrong answer?


  • 0
    D

    Output: "995998549642963295795569525905189958985890288238775871870185978591838283748308308827481618052787813771758475277519744072727265721971071006861683682268046787640663256310614560285906582858175752573156385565552654905441522852245213513750414822478747104662455545424532434289408839763963946391038663723370035134023393328828692788270926232581243924362362304226421162109163016131603127210891014"
    Expected: "995998549642963295795569525905189958985890288238775871870185978591838283748308830827481618052787813771758475277519744072727265721971071006861683682268046787640663256310614560285906582858175752573156385565552654905441522852245213513750414822478747104662455545424532434289408839763963946391038663723370035134023393328828692788270926232581243924362362304226421162109163016131603127210891014"


  • 0

    Simple: It's not the same. Look more closely.


  • 0
    D

    but i can't see the diffence .


  • 0

    Come on, don't be so lazy. If you can't see it yourself, then just write a small program showing you where they differ.


  • 0

    Or you could do manual binary search - copy the first half of the first string and have your browser show you where it appears on this page. You'll see it only appears once, so you know the difference is in the first half. Then continue halving.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.