Advertisement
saurav_kalsoor

Testcases - Minimum Moves

Sep 28th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.95 KB | None | 0 0
  1. #Author : Saurav Kalsoor
  2. #Testcases for Minimum Moves
  3.  
  4. ___________________________________________________________________________________________________________________________
  5. // Testcase : 1
  6.  
  7. //Input :
  8. 9
  9. 123456789
  10.  
  11. //Output :
  12. 53
  13. ___________________________________________________________________________________________________________________________
  14. // Testcase : 2
  15.  
  16. //Input :
  17. 30
  18. 001678294039710047203946100020
  19.  
  20.  
  21. //Output :
  22. 115
  23. ___________________________________________________________________________________________________________________________
  24. // Testcase : 3
  25.  
  26. //Input :
  27. 20
  28. 01783334845267178653
  29.  
  30. //Output :
  31. 109
  32. ___________________________________________________________________________________________________________________________
  33. // Testcase : 4
  34.  
  35. //Input :
  36. 50
  37. 42421172399613266285053410873987609699304762542632
  38.  
  39. //Output :
  40. 266
  41.  
  42. ___________________________________________________________________________________________________________________________
  43. // Testcase : 5
  44.  
  45. //Input :
  46. 80
  47. 00349223628475477276902545806100800226457168911635857924989747296800705369774107
  48.  
  49. //Output :
  50. 429
  51. ___________________________________________________________________________________________________________________________
  52. // Testcase : 6
  53.  
  54. //Input :
  55. 100
  56. 4445315166054988852835883433662003290023409044487841291439464649375634194207305737655986223997316002
  57.  
  58. //Output :
  59. 527
  60. ___________________________________________________________________________________________________________________________
  61. // Testcase : 7
  62.  
  63. //Input :
  64. 150
  65. 248031197960475361765394877589747392714544546378605481690303231933716050117235635223093825032670143000920221558325897028636660524517056826706328201230
  66.  
  67. //Output :
  68. 742
  69. ___________________________________________________________________________________________________________________________
  70. // Testcase : 8
  71.  
  72. //Input :
  73. 180
  74. 398417819322810043987431817549283762614057877319940683006540235385619872492802643595358469811878433587658204792211945286831570095507378194576187052899863589144577652605551866380206
  75.  
  76. //Output :
  77. 1018
  78. ___________________________________________________________________________________________________________________________
  79. // Testcase : 9
  80.  
  81. //Input :
  82. 400
  83. 2884012728976529230818256710440819171823645757865085092136270738067429122480752931310936681704682954375638895048167027082685027031964730223234667700500112240528959563344407931475299676856792816520938244731744252071365678577460431901574557489472363150639346194294665722707172532540454460416255786714622458007313197085261188696432371534078249581886186557529977379045197094721744843364310047862190054278
  84.  
  85. //Output :
  86. 2130
  87. ___________________________________________________________________________________________________________________________
  88. // Testcase : 10
  89.  
  90. //Input :
  91. 1000
  92. 7117121752918577423707639794979584487943748499578051729348892518678717301121163927585868514090939645890770428746527747538193371094036159892249632859524692867761920829813923545681171753148338073109265371415783261902080854149817498279147129531003030395060053511164813827748399245059181213018541782811787350765622820739785972722443479252900601083079325177809987844252672048163825343175039114170266832236954530889166916203572940771960557634726089415040083209864765107976683708059708945084289342015441052202196682234110450451456840984075565148184576523021750780325218566035813465954129457809345341775282378001543632732506701114109292715084099740246720948591149124509353438169404314901811665589759721633695182495219996381618363772530433810384139788714690216343224663690280846488942361236417269307511444277501588717855202600215106959417087049648022592140634723058912282095288838611910856788408218242592648902693136447600818295703494980950942868951597473714010385694160642999870326981192918448132089690093204
  93.  
  94. //Output :
  95. 5353
  96. ___________________________________________________________________________________________________________________________
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement