Search found 63 matches

by mohsincsedu
Sat Sep 02, 2006 5:58 am
Forum: Volume 100 (10000-10099)
Topic: 10037 - Bridge
Replies: 84
Views: 24861

Check your code....
There is no Compile Error

I submit ur code and got WA



avoid posting code.....
ok
by mohsincsedu
Fri Sep 01, 2006 8:23 pm
Forum: Volume 101 (10100-10199)
Topic: 10194 - Football (aka Soccer)
Replies: 119
Views: 37934

10194

I submit my code in c, then C++
every time result is compile error.
but why???

I run my code in Fedora Core (5) but there compile my code
what's happen??????

Here is my code:
Sorry for posting my big code..................


Thanks in advanced.
by mohsincsedu
Fri Sep 01, 2006 10:41 am
Forum: Volume 100 (10000-10099)
Topic: 10032 - Tug of War
Replies: 91
Views: 32935

Hello Solaris............

Plz give me some ideas....................

I do not understand...................
by mohsincsedu
Mon Aug 21, 2006 11:38 pm
Forum: Volume 2 (200-299)
Topic: 270 - Lining Up
Replies: 48
Views: 16574

270 What's the Problem????

I got WA but why??? Here is my code: #include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #define pi (2*acos(0.0)) int sort_int(const void *a,const void *b) { return (*(int*)a-*(int*)b); } void main() { long x,y,test; int T[10000],i,j,count,max,first,flag = 0; char in[100],*p; do...
by mohsincsedu
Mon Aug 21, 2006 11:26 pm
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 20729

Why WA???

My program gives same output that described above But what 's problem??? #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> long gcd(long a,long b) { if(a%b==0) return b; gcd(b,a%b); } int main() { char in[20]; int k,j,cas=1; long double a,r; long res1,res2,len; // freopen("332...
by mohsincsedu
Sun Aug 20, 2006 6:16 pm
Forum: Volume 3 (300-399)
Topic: 332 - Rational Numbers from Repeating Fractions
Replies: 83
Views: 20729

332 why WA???????

What's the problem in my Code??? Precession Error???? Here is my Code: #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> long gcd(long a,long b) { if(a%b==0) return b; gcd(b,a%b); } int main() { char in[20]; int k,j,cas=1; long double a,r; long res1,res2,len; //freopen("332.in...
by mohsincsedu
Fri Nov 25, 2005 8:58 pm
Forum: Volume 7 (700-799)
Topic: 726 - Decode
Replies: 36
Views: 10019

726_WA

Hi all.................... I faced a problem again!!!!!! Why i got WA????? May be my code is ok!!!!!!!! But what is the problem??? here is my code: #include<stdio.h> #include<ctype.h> #include<string.h> #define M 40000 #define MAX 100 int table[2][30],index[2][30]; void make_table(char s[],int n) { ...
by mohsincsedu
Fri Nov 25, 2005 8:32 pm
Forum: Volume 7 (700-799)
Topic: 726 - Decode
Replies: 36
Views: 10019

726_WA

Hi all.................... I faced a problem again!!!!!! Why i got WA????? May be my code is ok!!!!!!!! But what is the problem??? here is my code: #include<stdio.h> #include<ctype.h> #include<string.h> #define M 40000 #define MAX 100 int table[2][30],index[2][30]; void make_table(char s[],int n) { ...
by mohsincsedu
Sun Nov 20, 2005 6:19 pm
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 18402

640 TLE

Hi All............................. Plz tell me efficient Algorithm. I got TLE. Here is my code: #include<stdio.h> #include<string.h> #include<stdlib.h> #define MAX 1000000 char table[MAX+2]; long long sumdigit(long long n) { long long sum = 0; while(n>0) { sum+=(n%10); n/=10; } return sum; } void u...
by mohsincsedu
Sat Nov 19, 2005 12:18 am
Forum: Volume 100 (10000-10099)
Topic: 10032 - Tug of War
Replies: 91
Views: 32935

10032 WA

Hi all............................ I got Acc in 562 but WA in 10032 Why................................??? Here is my code: #include<stdio.h> #include<math.h> #include<string.h> #define MAXCOINS 102 #define MAXCENTS 455 #define MAXSUM MAXCOINS * MAXCENTS int nway[MAXSUM + 1]; int ncoins, value, sum;...
by mohsincsedu
Thu Nov 10, 2005 10:38 pm
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16678

I got Acc.....

Thanks Jan & Solaris...............:):)
by mohsincsedu
Thu Nov 10, 2005 9:50 pm
Forum: Volume 100 (10000-10099)
Topic: 10015 - Joseph's Cousin
Replies: 23
Views: 5183

Hi Jan ..........
Thanks for ur reply.............!!!!!!!

I changed my code.

But This time i got TLE!!!!!

Plz help me!!!
by mohsincsedu
Wed Nov 09, 2005 9:03 pm
Forum: Volume 107 (10700-10799)
Topic: 10703 - Free spots
Replies: 26
Views: 9119

Thanks Solaris.................................
I got Acc..

I always follow your Advice..

:)):)):))
by mohsincsedu
Tue Nov 08, 2005 8:14 pm
Forum: Volume 107 (10700-10799)
Topic: 10703 - Free spots
Replies: 26
Views: 9119

hi Cho..
I do not understant!!!! Why TLE???
i changed my code:
But WA

Code: Select all

for(i = min_x-1; i < max_x; i++) 
         { 
            for(j = min_y-1; j < max_y; j++) 
            { 
               board[i][j] = '1'; 
            } 
         } 
Plz help me!!!:(
by mohsincsedu
Mon Nov 07, 2005 6:49 pm
Forum: Volume 107 (10700-10799)
Topic: 10703 - Free spots
Replies: 26
Views: 9119

10703 need help!!!

Hello All..... May be i do not understand What the problem says!!!!!!!! Plz explain. I got WA. here is my coding: int W,H,N,i,j,x1,x2,y1,y2,k,max_x,min_x,max_y,min_y; long long count; while(scanf("%d %d %d",&W,&H,&N)==3) { if(!W&&!H&&!N) break; for(i = 0; i < W; i++) for(j = 0; j < H; j++) board[i][...

Go to advanced search