Skip to content

Instantly share code, notes, and snippets.

View madcoder2k17's full-sized avatar

Joy madcoder2k17

View GitHub Profile
@madcoder2k17
madcoder2k17 / segm01.c
Created November 20, 2017 16:22
Codechef : Bear and segment 1 : https://www.codechef.com/problems/SEGM01
#include<string.h>
#include<stdio.h>
int main()
{
char s[100000];
int n,count=0,i,T,o=0,c=0;
scanf("%d",&T);
while(T--)
{
c = 0, o = 0, count=0;