Help me figure out my mistake

hey @shubhamhalder0 it is mentioned in the question that strength of piyush should always be greater than K.
Which means first instead of S >= K, S > K would come. Second that you have to check this condition inside the second loop as well.

https://ide.codingblocks.com/s/186698 still two test cases not passing and I’m getting output to teh sample input as 15

hey @shubhamhalder0 the characters are space separated, please use 2 loops to take input

https://ide.codingblocks.com/s/186698 I rewrote the code stlll not passing test cases

I’m unable to pass test cases…please share the code

i did ask you to use 2 loops for the input, here is your code re written accordingly https://ide.codingblocks.com/s/188581