Search found 5 matches

by coder21
Thu Sep 03, 2015 7:10 am
Forum: Volume 112 (11200-11299)
Topic: 11280 - Flying to Fredericton
Replies: 43
Views: 15988

11280 - Flying to Fredericton

I have tried all available inputs here and also in udebug but still getting WAs in online judge. Can someone please take a look at my code. Thank you. #include<stdio.h> #define VALUE 1000000000 long long dist[1001]; char cityNames[102][41]; int adjList[102][1001]; int indexCity; int listIndex; int s...
by coder21
Mon Jun 15, 2015 7:41 am
Forum: Volume 5 (500-599)
Topic: 523 - Minimum Transport Cost
Replies: 44
Views: 9023

Re: 523 - Minimum Transport Cost

I am getting RTE...Could anyone please point me where I am getting it wrong. Following is my code: #include<iostream> #include<cstring> using namespace std; #define value 999999 #define INF 0x3FFFFFFF #define SIZE 1001 long input[SIZE][SIZE]; long route[SIZE][SIZE]; long arr[SIZE]; void floydWarshal...
by coder21
Tue Feb 10, 2015 2:34 pm
Forum: Volume 109 (10900-10999)
Topic: 10945 - Mother bear
Replies: 65
Views: 15611

10945 - Mother Bear

Getting WA. Please help. Following is the code: #include<stdio.h> #include<string.h> #define SIZE 1000 int palin(char a[SIZE],int length); int main() { //freopen("input.txt","r",stdin); char a[SIZE]; char b[SIZE]; while( (gets(b)) ) { if( strcmp(b,"DONE") == 0 ) break; int j=0; for(int i=0;i<strlen(...
by coder21
Tue Feb 10, 2015 9:38 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 28746

401 - Palindromes

I got WA. Please help. Following is my code: #include<stdio.h> #include<string.h> #define SIZE 100 int palin(char a[SIZE],int length); int mirror(char a[SIZE],int length); int check(char a[SIZE],int length,int index); int main() { //freopen("input.txt","r",stdin); char a[SIZE]; char b[SIZE]; while( ...
by coder21
Tue Feb 10, 2015 9:24 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 28746

401 - Palindromes

I got WA. Please help. Following is my code: #include<stdio.h> #include<string.h> #define SIZE 100 int palin(char a[SIZE],int length); int mirror(char a[SIZE],int length); int check(char a[SIZE],int length,int index); int main() { //freopen("input.txt","r",stdin); char a[SIZE]; char b[SIZE]; while( ...

Go to advanced search