Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Author : Saurav Kalsoor
- #Testcases for Reduce String
- ___________________________________________________________________________________________________________________________
- // Testcase : 1
- //Input :
- 5231532587
- //Output :
- 23
- ___________________________________________________________________________________________________________________________
- // Testcase : 2
- //Input :
- 625381012572215
- //Output :
- 86
- ___________________________________________________________________________________________________________________________
- // Testcase : 3
- //Input :
- 765907654475912900263450169493
- //Output :
- 75
- ___________________________________________________________________________________________________________________________
- // Testcase : 4
- //Input :
- 2432540056082965680587136209366180321651
- //Output :
- 95
- __________________________________________________________________________________________________________________________
- // Testcase : 5
- //Input :
- 819802244060684824221759982896870213661902989221214568568484109819151226350
- //Output :
- 10
- _______________________________________________________________________________________________________________________
- // Testcase : 6
- //Input :
- 9040063483414830162297530267282544888785005493862156937404792752929145849646972096003115944572080062
- //Output :
- 81
- ___________________________________________________________________________________________________________________________
- // Testcase : 7
- //Input :
- 602103033133519637413987661763903113942074050053762785666644101237895740451741507414005307613815577436680517735472458900750025229431166890778507129097
- //Output :
- 20
- ___________________________________________________________________________________________________________________________
- // Testcase : 8
- //Input :
- 76437749887844384295790831920298662517716514215813032742730519634132272326324945976907202484594994310252400074240971867611729292588971794478537510192156680796356089846397159115456535133321420523673575
- //Output :
- 40
- ___________________________________________________________________________________________________________________________
- // Testcase : 9
- //Input :
- 249686333535340665341229554433850226118370490725097867501392804663490841925476685275833359186294343475527630802482455973254158997930998796391681942205459095114460062332781826453394312308143001277477165324249277913032843053352107276192744523989040266830374049649102999656563757213853145766716703845383
- //Output :
- 82
- ___________________________________________________________________________________________________________________________
- // Testcase : 10
- //Input :
- 12116573766958576503994911860863177685689268582697112022884516859613947909468571107375589855796170746163796737352978073976235750160208844632156002909643189411613373585857724720817860158331849310494948117951083082418800828537597681793817762880366703164958702862142214335005031761965827713640741452184370124403907665123297364295630511294988919727966776928120064811029321672814209188430920196907466902013102513188176147361901951824849745374231976323211506507056578963142364735762948804810335561128032884
- //Output :
- 51
- ___________________________________________________________________________________________________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement