## Search found 42 matches

Tue Sep 21, 2010 2:02 pm
Forum: Volume 118 (11800-11899)
Topic: 11847 - Cut the Silver Bar
Replies: 11
Views: 4401

### 11847 - Cut the Silver Bar

Code: Select all

``happy coding``
Tue Jul 06, 2010 11:26 am
Forum: Volume 118 (11800-11899)
Topic: 11805 - Bafana Bafana
Replies: 23
Views: 7139

### Re: 11805-Bafana Bafana

Code: Select all

``````Got ACCEPTED and I was so #Stupid...

Thanks to all...
``````
Tue Jul 06, 2010 2:55 am
Forum: Volume 118 (11800-11899)
Topic: 11805 - Bafana Bafana
Replies: 23
Views: 7139

### Re: 11805-Bafana Bafana

I'm getting WA. Need some critical test cases.
Mon Sep 14, 2009 9:36 pm
Forum: Volume 116 (11600-11699)
Topic: 11666 - Logarithms
Replies: 16
Views: 6068

### Re: 11666 Logarithms WA again and agian

lgarcia wrote:I solved the problem with this:

Code: Select all

``````L = ceil(log(n) - log(2.));
x = 1 - exp(log(n) - L);``````
hi, lgarcia
can you please make it clear to me, why you use

Code: Select all

``L=ceil(lon(n) - log(2.0));``
log(2.0) here????
Sat Sep 12, 2009 7:56 am
Forum: Volume 116 (11600-11699)
Topic: 11659 - Informants
Replies: 31
Views: 8485

### Re: 11659 - Informants

this prob is really very easy......it says to find out MAXIMUM no of reliable ans......so if any one says that "A" is not reliable......then we don't need to bother about "A"......even if next time anyone says that "A" is reliable......bcz A is already out of focus...... :wink: i think this will he...
Wed Sep 09, 2009 3:14 pm
Forum: Volume 116 (11600-11699)
Topic: 11659 - Informants
Replies: 31
Views: 8485

### Re: 11659

Igor9669 wrote:First you print leading new line!
Second why do you use such a big array you need only 20 elements and third try this test:

Code: Select all

``````3 2
1 -3
3 -2
0 0
``````
how could the answer be 1 !!!!!
Wed May 27, 2009 5:56 pm
Forum: Volume 114 (11400-11499)
Topic: 11459 - Snakes and Ladders
Replies: 33
Views: 14541

### Re: 11459 - Snakes and Ladders

Anyone please give some special I/O............
getting wa and wa.....
Sat Mar 21, 2009 11:34 am
Forum: Volume 115 (11500-11599)
Topic: 11530 - SMS Typing
Replies: 41
Views: 8374

### Re: WA: 11530: SMS Typing

shamim wrote:Just add a dummy gets after you take the number of cases as input and remove the fflush().

This should get your code AC

Code: Select all

``thanks a lot.........``
Tue Sep 02, 2008 10:29 pm
Forum: Volume 104 (10400-10499)
Topic: 10405 - Longest Common Subsequence
Replies: 103
Views: 28745

### Re: 10405 - Longest Common Subsequence

maximum string length is 1000.........check it
Sat Jul 19, 2008 9:27 am
Forum: Volume 8 (800-899)
Topic: 855 - Lunch in Grid City
Replies: 41
Views: 19121

### Re: 855 - Lunch in Grid City

sapnil wrote:>> Sorry i think the input be negetive number.

>> change here:

Code: Select all

``````if(f%2==0) printf("(Street: %ld, Avenue: %ld)\n", str[f/2-1], ave[f/2-1]);
else printf("(Street: %ld, Avenue: %ld)\n", str[f/2+1], ave[f/2+1]);
``````
thanks
sapnil
i have not used you output format, but got AC..........
Sat Jul 19, 2008 9:23 am
Forum: Volume 8 (800-899)
Topic: 855 - Lunch in Grid City
Replies: 41
Views: 19121

### Re: 855 - Lunch in Grid City

Code: Select all

``thanks kabir.........don't forget to remove that code``
[/b]
Tue Jul 01, 2008 8:25 pm
Forum: Volume 8 (800-899)
Topic: 855 - Lunch in Grid City
Replies: 41
Views: 19121

### Re: 855 - Lunch in Grid City

Code: Select all

``use quick sort for avoiding TLE``
Wed May 07, 2008 8:44 am
Forum: Volume 108 (10800-10899)
Topic: 10878 - Decode the tape
Replies: 23
Views: 15898

### Re: 10878 - Decode the tape

any one pls help me to find the bug.........
i m really confused.............
here is my code...........

Code: Select all

``````/*****  decode the tape @ 10878  *****/

#include<stdio.h>
#include<math.h>
#include<string.h>

[b][size=150]accepted[/size][/b]

``````
Mon Apr 21, 2008 7:43 am
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 22400

### Re: 11371 - Number Theory for Newbies

what should be output for these input????????

Code: Select all

``````100
500
10000
0005
``````
some one get acc help pls........