Search found 1 match

by Tusharghosh
Mon Aug 15, 2011 4:52 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 110081

101 i got wa plz help me

//here my code in c

#include<stdio.h>
#include<string.h>


int main()
{
long n,x,y,i,j,num1,num2,num3,num4,k=1;
char a[100],b[100];
while(scanf("%ld",&n)==1)
{
long c[50][50];
for(i=0;i<=n;i++)
for(j=0;j<=n;j++)
if(j==0)
c [j]=i;
else
c [j]=-1;
while(1)
{
scanf("%s",a);
if(!strcmp(a ...

Go to advanced search