Search found 29 matches

by sampad74
Wed Jul 23, 2014 4:28 am
Forum: Volume 106 (10600-10699)
Topic: 10611 - The Playboy Chimp
Replies: 44
Views: 17390

Re: 10611 - The Playboy Chimp

I have changed that,but i am getting WA.Please,help me to find any bug..Thanks in advance.

Code: Select all

got ac
by sampad74
Tue Jul 22, 2014 5:07 pm
Forum: Volume 106 (10600-10699)
Topic: 10611 - The Playboy Chimp
Replies: 44
Views: 17390

Re: 10611 - The Playboy Chimp

I am getting WA.Please,help.Here is my code.Thanks in advance.

Code: Select all

got ac
by sampad74
Tue Jul 22, 2014 1:35 pm
Forum: Volume 108 (10800-10899)
Topic: 10887 - Concatenation of Languages
Replies: 49
Views: 18753

Re: 10887 - Concatenation of Languages

I got TLE.Here is my code,please help me to make my program fast.Thanks in advance. #include<stdio.h> #include<string.h> int main(void) { int t,i; scanf("%d",&t); for(i=1;i<=t;i++) { int m,n; scanf("%d %d",&m,&n); char a[m][20],b[n][20],c[m*n][40]; char e[1]; int j,k,l=0; gets(e); //for(j=0;j<m;j++)...
by sampad74
Tue Jul 22, 2014 4:57 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25947

Re: 492 why RE?

Thank you,Ibv.I got AC.
by sampad74
Mon Jul 21, 2014 4:08 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25947

Re: 492 why RE?

Now,i am getting wrong ans.please,help.thanks in advance.Here is my code..

Code: Select all

got AC
by sampad74
Mon Jul 21, 2014 10:27 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25947

Re: 492 why RE?

I am getting RE.Here is my code.Please anybody help..Thanks in advance.

Code: Select all

got AC
by sampad74
Fri Jun 27, 2014 4:23 pm
Forum: Volume 5 (500-599)
Topic: 543 - Goldbach's Conjecture
Replies: 109
Views: 24289

Re: 543-goldbach's conjecture..WHY AM I GETTING TLE??

i got wa.here is my code... #include<stdio.h> #include<math.h> int p(int n); int main(void) { int n; while(scanf("%d",&n)!=EOF) { int i=0; if(n==0) return 0; if(n>=6 && n<1000000) { int as=1; for(i=3;i<=(int)sqrt(n)+1;i=i+2) { int k=0; int j=p(i); if(j==2) { k=p(n-i); if(k==2) { printf("%d = %d + %d...
by sampad74
Fri Jun 27, 2014 6:33 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185076

Re: If you get WA in problem 100, read me before post!

I got AC assuming that i or j might be greater than 10000.But,i am confused about the problem statement.please,help me.
Thank you.
brianfry.
by sampad74
Fri Jun 27, 2014 6:23 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185076

Re: If you get WA in problem 100, read me before post!

but problem says...
All integers will be less than 10000 and greater than 0.
by sampad74
Thu Jun 26, 2014 4:36 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185076

UVa:100 why WA?

Got AC
by sampad74
Tue Jun 24, 2014 12:22 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35421

Re: 706 - LC-Display

sorry,i missed that.thanx brian fry
by sampad74
Sat Jun 21, 2014 1:06 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35421

Re: 706 - LC-Display

i got wa.please,help me to find out mistakes.
here is my code...
by sampad74
Sat Jun 21, 2014 8:19 am
Forum: Volume 4 (400-499)
Topic: 474 - Heads / Tails Probability
Replies: 50
Views: 10976

Re: 474 Head / Tails probability

thank u @ brianfry713
by sampad74
Wed Jun 18, 2014 4:02 pm
Forum: Volume 4 (400-499)
Topic: 474 - Heads / Tails Probability
Replies: 50
Views: 10976

Re: 474 Head / Tails probability

a=10^digit/2^n
I can't understand this line.I think it should be a=1/2^n.
please,anyone help me.

Go to advanced search