Search found 11 matches

by Sawon90
Mon Aug 13, 2012 12:56 pm
Forum: Volume 1 (100-199)
Topic: 168 - Theseus and the Minotaur
Replies: 64
Views: 15157

Re: 168 - Theseus and the Minotaur TLE

Please help me to find why I am getting wrong answer in this problem. Here is my code....
#include<stdio.h>
#include<vector>
#include<string.h>
using namespace std;
char st[250];
long i,n,ts,mt,k,vis[35],c,sz;
vector<long>vc[35],op;
bool fg;
int main()
{
while(gets(st) && strcmp(st,"#"))
{
for(i ...
by Sawon90
Mon Aug 13, 2012 12:26 pm
Forum: Volume 1 (100-199)
Topic: 168 - Theseus and the Minotaur
Replies: 64
Views: 15157

Re: 168 Now ACed,ignore it

Oh God, Please someone help me, Please someone tell me what will be the output of the following cases...

Code: Select all

A:BCD;B:AD;C:AD;D:B. A C 3
A:BCD;B:AD;D:BG;F:H;G:DEH;E:FGH;H:EG. A C 3
Please someone help me.
by Sawon90
Thu Aug 02, 2012 8:42 am
Forum: Volume 1 (100-199)
Topic: 168 - Theseus and the Minotaur
Replies: 64
Views: 15157

Re: 168 Now ACed,ignore it

For every case above, my code gives correct output. But why I am getting wrong answer???? :( Please someone help me. Thanks in advance. Here is my code....

#include<stdio.h>
#include<vector>
#include<string.h>
using namespace std;
char st[250];
long i,n,ts,mt,k,vis[35],c,sz;
vector<long>vc[35],op ...
by Sawon90
Mon Mar 19, 2012 3:29 pm
Forum: Volume 120 (12000-12099)
Topic: 12008 - Emotional Bishop
Replies: 1
Views: 1911

12008 - Emotional Bishop

Please help me why I am getting wrong answer.... Is there any critical case??? Someone please help me and give me some Input and Output. My code is
#include<stdio.h>
int main()
{
long x1,x2,y1,y2,x,y,t,c,r,cas=1;
bool fg;
scanf("%ld",&t);
while(t--)
{
scanf("%ld%ld",&r,&c);
scanf("%ld%ld%ld ...
by Sawon90
Mon Mar 19, 2012 3:13 pm
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 33276

Re: 10205 - Stack 'em Up

Many many thanks to brianfry713, actually I can't understand the problem statement clearly. Now I gor Accepted.
by Sawon90
Thu Mar 08, 2012 6:17 pm
Forum: Volume 102 (10200-10299)
Topic: 10205 - Stack 'em Up
Replies: 60
Views: 33276

Re: 10205 - Stack 'em Up

I am just helpless...... I got many times wrong answer,, Please someone help me. Or give me some critical input and output, My code is.....
#include<stdio.h>
#include<string.h>
char car[60][50]={"","2 of Clubs","3 of Clubs","4 of Clubs","5 of Clubs","6 of Clubs","7 of Clubs","8 of Clubs",
"9 of ...
by Sawon90
Thu Mar 08, 2012 6:11 pm
Forum: Volume 5 (500-599)
Topic: 531 - Compromise
Replies: 73
Views: 37027

Re: 531 - Compromise - WA

I found my mistake,, I just declare wrong size of ans arry. But one thing I don't understand that why I was get Run time error???????????
by Sawon90
Sun Mar 04, 2012 3:57 pm
Forum: Volume 5 (500-599)
Topic: 531 - Compromise
Replies: 73
Views: 37027

Re: 531 - Compromise - WA

Why I am getting wrong answer, please someone give me some input and output or some suggestion. My code is....

//Bismillahir Rahmanir Rahim
#include<stdio.h>
#include<string.h>
long i,j,la,lb,mat[1010][1010],fg;
char sta[1010][40],stb[1010][40],ans[1010][40];

void Print(long p,long q)
{
if(p==0 ...
by Sawon90
Sun Feb 05, 2012 6:39 am
Forum: Volume 7 (700-799)
Topic: 725 - Division
Replies: 49
Views: 31722

Re: 725 - Division

i got acc, there was some silly mistake in my code according to problem statement.
by Sawon90
Sun Feb 05, 2012 5:10 am
Forum: Volume 7 (700-799)
Topic: 725 - Division
Replies: 49
Views: 31722

Re: 725 - Division

please help me why I am getting WA.... here is my code..... please give me some critical case

//Bismillahir Rahmanir Rahim
#include<stdio.h>
#include<vector>
using namespace std;
long a[40000],b[100010],k,i0,i1,i2,i3,i4,i,n;
bool digit(long p,long q)
{
long x[11],y,z;
for(y=0;y<x[y];y++)
x[y]=0 ...
by Sawon90
Wed Nov 23, 2011 1:36 am
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 44557

Re: 444 (Encoder Decoder) Why I am getting W/A?? Please Help

#include<stdio.h>
#include<string.h>
char st[1000000];
int main()
{
long i,ln,ch[300],a;
for(i=32;i<=122;i++)
{
a=i;
ch =0;
while(a>0)
{
ch =ch *10+a%10;
a=a/10;
}
}
while(gets(st))
{
ln=strlen(st);
if(st[0]>='0' && st[0]<='9')
{
a=0;
i=ln-1;
while(i>=0)
{
a=a*10+st -48;
if(a ...

Go to advanced search