# | Test Case input | Expected | Received | Status |
---|
1. | "222" | 4 | 4 | Correct |
2. | "2222" | 7 | 7 | Correct |
3. | "2202222" | 14 | 14 | Correct |
4. | "2222222222" | 274 | 274 | Correct |
5. | "222222222222222222222222222222222222222
2" | 360870 | | Timeout |
6. | "777999999999999999999999922" | 440152 | | Timeout |
7. | "777777444444444777777775555555555" | 866143 | | Timeout |
8. | "9999999988666666666888888886666999" | 992808 | | Timeout |
9. | "0333333322222888444482222222743333" | 932900 | | Timeout |
10. | "332222222229999994444444444888" | 471569 | | Timeout |
11. | "888888888555555554444446077777732225554
44444444" | 517041 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
12. | "444444447666666602222222233333333300022
22" | 95305 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
13. | "337777777777700055577777777777995555555
57777777" | 961149 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
14. | "777772222222822222222222777777770000000
00033336666" | 318560 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
15. | "225222222222222222228886666633399922222
2222222" | 138171 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
16. | "333333000000555222443333333335555555557
77775555" | 276110 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
17. | "888888866668888889999994444444444888822
28888222" | 353945 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
18. | "888888888822222226222222222255666666660
0006660000" | 551932 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
19. | "477777777774999997777444444448882222222
222222" | 264326 | | Timeout |
20. | "889999994444220008888888899966666667" | 575795 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
21. | "444444449993333333333544444444222222444
4488876666" | 878290 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
22. | "388899999999996886333333377888855555555
55444666666" | 707059 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
23. | "6633333666888888899833333555555555999" | 909206 | | Timeout |
24. | "777775464444440666000066666666666666444
4444444" | 331501 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
25. | "444444443333334499000000049944433333399
99999555555" | 567206 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
26. | "666666662885555525555557777555882222222
222" | 333382 | | Timeout |
27. | "222244444888882222228887700000444448800
000" | 905501 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
28. | "888224444443336666622228888888888200333
3" | 44246 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
29. | "000966666664449955555000000066666664444
9007755555" | 644356 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
30. | "777755559999900000000055555555590000007
7555" | 1273 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
31. | "666666668888555555539999999999888888866
66666664466" | 940730 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
32. | "766666644442222444555555566666666669990
3333333370" | 372758 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
33. | "444444222222233778888888833333333333333
3000000000" | 472781 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
34. | "666666333332222999999922265555555577733
8888" | 68243 | | Timeout |
35. | "333333333444488888888882333444466455555
" | 47840 | | Timeout |
36. | "555533333333977553333333588888888899990
00000000066" | 902469 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
37. | "222222000000000022222222555722222222224
477776666" | 628222 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
38. | "003333334433333339999999999422222299999
99977777777" | 498079 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
39. | "000000000033347777788888884444444447666
663333444" | 182039 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
40. | "266288888888888888299999999333333222222
22222266" | 311516 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
41. | "222222222222223399777777888855555555554
4444999" | 309169 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
42. | "888888338888888999999977775666666660035
555555544" | 634567 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
43. | "22222555533999999999999924444400055555"
| 336360 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
44. | "200000002888888833333333300099444444446
66222" | 993040 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
45. | "222999222277777266666666660777777775556
6666555555" | 336579 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
46. | "520000000099999939336666222222225557777
777" | 366415 | | Timeout |
47. | "666600000005669999999946488888566644444
888" | 88420 | | Timeout |
48. | "666777288888888855555555888888885588888
88866" | 785907 | | Timeout |
49. | "55552229994444444423322222288888888887"
| 314111 | | Timeout |
50. | "666666675555555555666668888555999993333
4" | 777100 | | Timeout |
51. | "222288888444433333333333333555556666555
58888800" | 274798 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
52. | "988888886666888888888888888888880000000
77777768000" | 471192 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
53. | "999999999933335555544444493335555999777
74444444444" | 970094 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
54. | "333335999999998877666667763333333344444
44445555555" | 209803 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
55. | "888888800000000002233333224444444000000
07222222228" | 154376 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
56. | "555999999999955544444444666666667777776
662999999" | 853615 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
57. | "555559777777776666600000000008844777755
5545555555" | 890459 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
58. | "543444444999933333333344444443333777333
33333333333" | 721927 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
59. | "777777777780090004444444000000444555555
5555333333" | 104528 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
60. | "8833333333332555588888888322222299000" | 914270 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
61. | "777777777755555888044000000000222222222
236666608" | 548612 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
62. | "666688888888866667777777778888888889999
99947556" | 352910 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
63. | "333300000000043339999999555592222222222
2222222" | 173190 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
64. | "444444444488888882222226666660000066664
40000000000" | 218905 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
65. | "777666699999944444444443344999999999422
44" | 434884 | | Timeout |
66. | "666668880000888000333388866666445555666
66255555" | 133339 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
67. | "888888883440000055555555555555555588888
8883333335" | 686806 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
68. | "060000000999999000000666663222222002222
3333333333" | 353945 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
69. | "477777766666663866666666444444477779999
999974444" | 79344 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
70. | "622044444444447774999999999000000083333
33333" | 933995 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
71. | "999999999907744444433333344442225555558
88866888888" | 335856 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
72. | "333333335555888888200066633337777777008
2222" | 360365 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
73. | "888888883333333884444448888888889999999
95558888" | 397912 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
74. | "002222777722444449999900000000009999900
" | 327600 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
75. | "559999999933333335555554443333333355527
33" | 220695 | | Timeout |
76. | "899999999933333333366773333666644444446
6677777777" | 995229 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
77. | "222227755555555555528872222222227777777
77777777" | 811222 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
78. | "224466666666777777777766699999977999999
9999666666" | 119016 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
79. | "666665555555555000055555544442999999995
53333" | 798664 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
80. | "455555555555558889999999999996666666633
" | 200078 | | Timeout |
81. | "633333977999999922222229999999903222222
2226" | 910678 | | Timeout |
82. | "666666655555555522009996666660000000000
099999999" | 944271 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
83. | "444444444999999222200000000044444444777
78888884" | 398054 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
84. | "555555666666966688889993333335555555555
00000000006" | 227944 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
85. | "333333333444773333397777777773966666888
88055555555" | 637905 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
86. | "9944009900000000003300005555333333" | 2688 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
87. | "000084887777777772222288899998888882222
66999" | 585640 | | Timeout |
88. | "003333666644444442222227777888992222255
5555" | 216961 | | Timeout |
89. | "555555222266633377777777733335555666666
6744" | 839578 | | Timeout |
90. | "766662222555577772222222222055555555" | 899916 | | Timeout |
91. | "444666666668888888507444444477777777777
777" | 509200 | | Timeout |
92. | "222222222333322222223344466222222222288
33333339999" | 140253 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
93. | "445555666663333333337774770000000444999
9993333" | 157296 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
94. | "366000222222222222333333333388888888774
44444444444" | 257295 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
95. | "3333339999777755333364422222233333" | 418405 | | Timeout |
96. | "266666007777444448888877433333999999999
99555555" | 759413 | Exception occured when executing test OutOfMemoryError: Java heap space | Error |
97. | "555555499999900000099999999997777044449
999999" | 238931 | | Timeout |
98. | "688888888855699999999995555444877777777
888888" | 626144 | | Timeout |
99. | "8877777777994444433333330000000666433" | 976825 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |
100. | "999999999888888800222999999440055555556
6666666660" | 891605 | Exception occured when executing test StringIndexOutOfBoundsException: String index out of range: 1 | Error |