Course Solutions Uncategorized (Solved) : Lili String Length N Consisting 1 0 Wants Know Longer 1 S 0 S Count Consecutive 1 0 Forma Q32858785 . . . .

(Solved) : Lili String Length N Consisting 1 0 Wants Know Longer 1 S 0 S Count Consecutive 1 0 Forma Q32858785 . . . .

 

C Programming Language

Lili has a string with length N consisting of1 and 0. She wants to know which is longer, the 1s or 0s. She will only count the consecutive 1 or 0 Format Input First line will consist of an integer T, the number of test cases For each test case, first line will be an integer N In the next line, there will be string S Format Output On the first line of each test case print Case #X: Then on the same line print 1 and then the length of longest consecutive 1 if 1 is 

<div class=

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post