Search found 5 matches

by asraful.ruet
Sun Sep 12, 2010 1:01 pm
Forum: Volume 3 (300-399)
Topic: 341 - Non-Stop Travel
Replies: 39
Views: 30239

341 Non-Stop Travel

Please Help !
Whats wrong with my code ?
Thanks in advance .


#include<stdio.h>
#define INF 2147483647

long i[15][15],d,path[15];

void inter(long a, long b){
if(i[a][b]!=0){
inter(a,i[a][b]);
inter(i[a][b],b);
path[++d]= i[a][b];
}
}

int main(){

long c[15][15],j,k,l,n,m,p,q,kase=0;

while ...
by asraful.ruet
Sun Sep 12, 2010 10:31 am
Forum: Volume 105 (10500-10599)
Topic: 10525 - New to Bangladesh?
Replies: 50
Views: 26938

Re: 10525 - New to Bangladesh

I am getting WA .
Please Help .
Thanks in advance .


#include<stdio.h>
#define N 252
#define INF 1000000000

int main()
{
int t,q;
scanf("%d",&t);

for(q=1;q<=t;++q)
{
int mat[N][N], cat[N][N], n, e,c,d;

scanf("%d%d", &n, &e);

for(int i=1; i<=n; i++)
for(int j=1; j<=n; j++){
mat[i][j] = mat[j ...
by asraful.ruet
Sun Sep 12, 2010 6:11 am
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 45243

Re: 10004 - Bicoloring

I am asraful .
I tried to solve 10004
But i am getting WA .
Please help !

Here is my code ...


#include<stdio.h>

int main(){

int m[203][203],a[203],d[203],p[5],l,e,n,i,j,k;
char c[203];

while(scanf("%d",&n) && n){


for(i=0;i<203;++i)
for(j=0;j<203;++j)
m[i][j]=0;

for(i=0;i<203;++i)
{
a ...
by asraful.ruet
Tue Aug 31, 2010 7:38 pm
Forum: Volume 118 (11800-11899)
Topic: 11800 - Determine the Shape
Replies: 47
Views: 21872

Re: "time limit exceeded" in java

Hi ,
Someone help me !
I am getting wa !
I failed to find out error of my code .


#include<stdio.h>
#include<math.h>
int main(){

int t,i,k,j;
int x[6],y[6],n;
double b1,b2,b3,b4,d1,d2,d3,d4,d5,d6;

scanf("%d",&t);

for(i=1;i<=t;i++){

for(j=0;j<4;j++)
scanf("%d %d",&x[j],&y[j]);

for(j=0;j ...
by asraful.ruet
Mon Aug 23, 2010 9:58 am
Forum: Volume 113 (11300-11399)
Topic: 11345 - Rectangles
Replies: 27
Views: 11515

Re: 11345 - Rectangles

prb :11345

i am getting wa .
here is my code ...
please help .


#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#define MAX(a, b) (a>=b?a:b)
#define MIN(a, b) (a>=b?b:a)

int main(){
int x1,x2,x3,x4,x5,x6,x7,x8,y1,y2,y3,y4,y5,y6,y7,y8,i,j,t,n,f,x;
long area;
scanf("%d",&t);
for(j=1;j<=t;j ...

Go to advanced search