
Search found 6 matches
- Thu Oct 18, 2012 1:57 am
- Forum: Volume 100 (10000-10099)
- Topic: 10037 - Bridge
- Replies: 84
- Views: 37522
Re: 10037 - Bridge
Thx a lot brianfry... i had been struggling for months to get it submitted... 

- Tue Oct 16, 2012 10:34 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10037 - Bridge
- Replies: 84
- Views: 37522
Re: 10037 - Bridge
The outputs of two consecutive cases will be separated by a blank line. Correct output: 17
1 2
1
5 10
2
1 2 Your output:
17
1 2
1
5 10
2
1 2
well,.. i corrected that ... but still its WA? Here's my corrected code:
#include <stdio.h>
#include <stdlib.h>
int a;
int arr[5000][2];
void empty ...
1 2
1
5 10
2
1 2 Your output:
17
1 2
1
5 10
2
1 2
well,.. i corrected that ... but still its WA? Here's my corrected code:
#include <stdio.h>
#include <stdlib.h>
int a;
int arr[5000][2];
void empty ...
- Sun Oct 07, 2012 7:42 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10037 - Bridge
- Replies: 84
- Views: 37522
Re: 10037 - Bridge
Getting wrong answer...dunno y
#include <stdio.h>
#include <stdlib.h>
int a;
int arr[5000][2];
void empty()
{
int j;
for(j=0;j<=a;j++)
{
arr[j][0]=0;
arr[j][1]=0;
}
}
void add()
{
int j,sum=0;
for(j=0;j<=a;j++)
{
if((j%2)==0)
{
sum+=arr[j][1];
}
else
{
sum+=arr[j][0 ...
#include <stdio.h>
#include <stdlib.h>
int a;
int arr[5000][2];
void empty()
{
int j;
for(j=0;j<=a;j++)
{
arr[j][0]=0;
arr[j][1]=0;
}
}
void add()
{
int j,sum=0;
for(j=0;j<=a;j++)
{
if((j%2)==0)
{
sum+=arr[j][1];
}
else
{
sum+=arr[j][0 ...
- Sun Sep 23, 2012 1:11 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10154 - Weights and Measures
- Replies: 60
- Views: 48664
Re: 10154 - Weights and Measures
I hav tried all the critical inputs given in ths forum and got correct answers for all.... my algo uses DP(not exactly LIS, actually quite different from it)...
m quite sure tht my algo is correct... m missing somethng silly(either silly inputs or some output format)... tried debugging a lot ...
m quite sure tht my algo is correct... m missing somethng silly(either silly inputs or some output format)... tried debugging a lot ...
- Sun Sep 23, 2012 1:07 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 88870
Re: 10131 - Is Bigger Smarter?
thx brainfry...got AC finally. 

- Sun Sep 16, 2012 5:04 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 88870
Re: 10131 - Is Bigger Smarter?
i tried all possible inputs i could on my program and matched with the toolkit... i m getting correct answers... but still getting wrong answer as judgement... i even got all the answers correct posted in this forum...
here is my code:(plz reply asap.. its kinda demoralizing)
#include<cstdio ...
here is my code:(plz reply asap.. its kinda demoralizing)
#include<cstdio ...