## Search found 15 matches

Fri Apr 27, 2012 4:05 pm
Forum: Volume 9 (900-999)
Topic: 928 - Eternal Truths
Replies: 11
Views: 5315

### Re: 928 - Eternal Truths

Shihab vaia, you are probably forgetting that you can not jump past e wall at any time. Although it's not mentioned in the question, i've added it to my code and got AC with .05 seconds.
Fri Apr 27, 2012 9:08 am
Forum: Volume 2 (200-299)
Topic: 200 - Rare Order
Replies: 25
Views: 12877

### Re: 200 - Rare Order

wow great algorithm. thanks. i'll try it
Thu Apr 26, 2012 10:40 am
Forum: Volume 2 (200-299)
Topic: 200 - Rare Order
Replies: 25
Views: 12877

### Re: 200 - Rare Order

Sorry i don't get it. I'm looping while *p and *q both is non-zero. If at some point both are non-zero(not null character) and have different value then a ordering information is added and the return statement is executed. If the strings are not of the same lengths, then the null character of the sm...
Wed Apr 25, 2012 1:40 am
Forum: Volume 2 (200-299)
Topic: 200 - Rare Order
Replies: 25
Views: 12877

### Re: 200 - Rare Order

In your process function you loop until *p&&*q. What happens if a and b aren't the same length? I suppose in that case a decision cannot be made like- AGQ AGQBE What decision can i make out of this? In the problem it was mentioned that Not all letters are necessarily used, but the list will imply a...
Tue Apr 24, 2012 2:35 pm
Forum: Bugs and suggestions
Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
Replies: 62
Views: 5183

### Re: 200 - Rare Order(WA on Java)

Anyone help me please, why am i getting WA for this problem? It gives me right answers for all testcases i found on the board. #include<iostream> #include<stack> #include<cstdio> #include<cstring> using namespace std; struct index { char str[25]; }str[200000]; struct adjacency { char child[50],ances...
Tue Apr 24, 2012 7:21 am
Forum: Volume 2 (200-299)
Topic: 200 - Rare Order
Replies: 25
Views: 12877

### Re: 200 - Rare Order

Anyone help me please, why am i getting WA for this problem? It gives me right answers for all testcases i found on the board.

GOT AC
Sat Apr 21, 2012 2:07 pm
Forum: Volume 101 (10100-10199)
Topic: 10113 - Exchange Rates
Replies: 5
Views: 2837

### Re: 10113 - Exchange Rates

Anika, at first search the board for existing topics before creating a new thread.
And before pasting your code, click on the "code" button above, or else your code will loose clarity due to omission of the whitespace and tab characters.
Sat Apr 21, 2012 10:46 am
Forum: Volume 109 (10900-10999)
Topic: 10946 - You want what filled?
Replies: 38
Views: 18338

### Re: 10946 - You want what filled?

I'm frustrated with this problem. I use a straightforward approach of DFS and mark all the nodes that are traversed with '.' My code works totally fine with the testcases i've found on the board. Please anyone help me out. Why am i getting WA? Here'r my code- GOT AC this is weird! In the problem it ...
Thu Apr 05, 2012 8:18 am
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 65384

### Re: 10131 - Is Bigger Smarter?

thanks brainfry, my silly mistake :S
Mon Apr 02, 2012 6:50 pm
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 93
Views: 65384

### Re: 10131 - Is Bigger Smarter?

Can anybody tell me what i am doing wrong here? I'm getting WA for this problem. Here's what i did- 1. Create a structure which holds the weight, iq and serial no. of the elephants 2. Sort the structure array in descending order in the basis of their iq 3. Now create the sequence of LIS 4. print the...
Wed Mar 28, 2012 10:51 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 40944

### Re: 10013 - Super Long Sums

thanks, i've recently heard abt these problems, kind of weird,,anyway got AC now, thanks again and again brainfry
Tue Mar 27, 2012 11:29 am
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 26325

### Re: 10420 WA

thanks
Mon Mar 26, 2012 2:36 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 40944

### Re: 10013 - Super Long Sums

I'm just dumbstruck, i've tried at least 30 different testcases of different types, my program seems to work perfectly, but judge gives me WA

Code: Select all

`` REMOVED AFTER AC ``
Tue Mar 20, 2012 10:23 am
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 26325

### Re: 10420 WA

wow, it worked! but i'm confused here, i though strcmp(char* ,char* ) was supposed to return any one of -1,0,1 and no other value! i've tested this in codeblocks for several strings! why is the function acting differently now? :\
Sun Mar 18, 2012 2:52 pm
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 26325

### 10420 WA

Please help me out with this code. I've tried several testcases by myself and my code seems to work perfectly, yet i got WA. Here is the code-

Code: Select all

``AC``