Search found 63 matches

by mohsincsedu
Sun Oct 30, 2005 7:04 am
Forum: Volume 104 (10400-10499)
Topic: 10474 - Where is the Marble?
Replies: 50
Views: 19471

Thanks a lot!!!!!
I got Ac..
:lol:
ok i obey ur Advised!!!
by mohsincsedu
Thu Oct 27, 2005 10:29 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43730

Thanks Solaris...
I got ACC........ :lol:
by mohsincsedu
Thu Oct 27, 2005 9:52 pm
Forum: Volume 104 (10400-10499)
Topic: 10474 - Where is the Marble?
Replies: 50
Views: 19471

Thanks Solaris... But where is infinite loop in my code: Here is my code: #include<stdio.h> #define MAX 10010 void main() { int table[MAX],i,N,Q,num,test = 1; long long res; while(scanf("%d %d",&N,&Q)==2) { if(!N&&!Q) break; for(i = 0;i<MAX;i++) table[i] = 0; for(i = 0; i<N;i++) { scanf("%d",&num); ...
by mohsincsedu
Thu Oct 27, 2005 4:57 pm
Forum: Volume 104 (10400-10499)
Topic: 10474 - Where is the Marble?
Replies: 50
Views: 19471

10474_OLE

hello i am a new solver!!!!! I do not understand why i got OLE!!!!!!
Plz tell me about this!!!!

Thanks in Advance :wink:
by mohsincsedu
Thu Oct 27, 2005 1:05 am
Forum: Volume 100 (10000-10099)
Topic: 10015 - Joseph's Cousin
Replies: 23
Views: 5036

10015

I got TLE :roll: And it takes CPU 240.033 But Why????? Here is my code: #include<stdio.h> #include<string.h> #include<math.h> #define MAX 3502 #define M 40000 long prime[MAX]; char composite[M]; void seive()//Generate prime number up to 40000 { unsigned long i,j,k; memset(composite,'0',sizeof(compos...
by mohsincsedu
Wed Oct 26, 2005 11:10 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43730

10324

I do not uderstand Why i got TLE :roll: Plz tell me about this!!! Here is my code: #include<stdio.h> #include<string.h> #define MAX 1000001 #define M 1000001 char num[MAX]; int main() { int counter[M]; long n, a, b, i, j,len,test = 1; char pre, post; //freopen("10324.in","r",stdin); //freopen("10324...
by mohsincsedu
Wed Oct 26, 2005 10:38 pm
Forum: Volume 106 (10600-10699)
Topic: 10633 - Rare Easy Problem
Replies: 37
Views: 18832

Thanks to Solaris
Plz help every time!!!!
I got Acc.
Thanks Again
by mohsincsedu
Sun Oct 23, 2005 10:18 pm
Forum: Volume 102 (10200-10299)
Topic: 10222 - Decode the Mad man
Replies: 30
Views: 9195

I got Acc!!! :D
  • :)
  • Thanks
by mohsincsedu
Sun Oct 23, 2005 10:08 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31603

ACC

I got ACC.
my code has a simple mistake.
Don't try to find my bug in above code.
by mohsincsedu
Sun Oct 23, 2005 10:04 pm
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16423

Thanks...

Plz Explain:
I donot understand What they want!!!:(
by mohsincsedu
Sun Oct 23, 2005 1:58 am
Forum: Volume 106 (10600-10699)
Topic: 10699 - Count the factors
Replies: 27
Views: 11444

10699

Why RTE?? Plz help me!!! #include<stdio.h> #include<math.h> #define MAX 1002 long prime[MAX]; void main() { long i,j,n,count; for(i = 3;i<MAX;i+=2) prime[i] = 1; for(i = 3;i*i<MAX;i+=2) { if(prime[i]) { for(j = i*i;j<MAX;j+=i) prime[j] = 0; } } prime[0] = 2; for(i = 3,j = 1;i<MAX-1;i+=2) if(prime[i]...
by mohsincsedu
Sun Oct 23, 2005 12:11 am
Forum: Volume 106 (10600-10699)
Topic: 10633 - Rare Easy Problem
Replies: 37
Views: 18832

10633WA

What's the problem in my coding:
plz help me!!

Code: Select all

#include<stdio.h>

void main()
{
	unsigned long long N,B;
	while(scanf("%llu",&N)==1)
	{
		if(!N)
			break;
		B = (N/9)*10;
		if(N%9==0)
			printf("%llu %llu\n",B-1,B);
		else
			printf("%llu\n",B);
	}
}
by mohsincsedu
Thu Oct 20, 2005 1:48 am
Forum: Volume 3 (300-399)
Topic: 350 - Pseudo-Random Numbers
Replies: 56
Views: 16423

350 - Pseudo-Random Numbers

Plz Explain for the inputs:
9111 5309 6000 1234
1079 2136 9999 1237

Why way outputs is:
500
220
by mohsincsedu
Wed Oct 19, 2005 11:21 pm
Forum: Volume 103 (10300-10399)
Topic: 10303 - How Many Trees?
Replies: 19
Views: 3179

10303

I got TLE :roll: Plz tell me the Algorithm Here is my code: #include<stdio.h> #include<string.h> #define M 1001 #define MAX 1001 void Add(char *a, char *b, char *c) { int carry = 0,len_a,len_b,k,i,j; len_a = strlen(a); len_b = strlen(b); strcpy(c,"0"); if(len_b>len_a) Add(b,a,c); k = len_a + 1; c[k-...
by mohsincsedu
Wed Oct 05, 2005 10:33 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 31603

401_WA_Boring.....

Hi............. I got WA. Plz give me same input.. #include<stdio.h> #include<string.h> int Palind(char *string) { int len,i; len = strlen(string)-1; for(i = 0;i<=len/2;i++) { if(string[i]!=string[len-i]) return 0; } return 1; } int Mirror(char *string) { char Mir[300]; Mir['A'] = 'A'; Mir['E'] = '3...

Go to advanced search