Search found 3 matches

by knapsack
Fri Apr 09, 2004 7:55 pm
Forum: Volume 103 (10300-10399)
Topic: 10309 - Turn the Lights Off
Replies: 19
Views: 12664

10309

Can anyone help me with the input and output for the 'Turn the lights off' problem????

Thanks in advance......
by knapsack
Sat Jul 20, 2002 1:24 am
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 79322

673: Parentheses Balance

I got Wrong Answer for 673 :( . Can anyone help me out??

[cpp]
void main () {
char input[1000], tempInput[1000];
char ch;
int len = 0;
int i,j,k;
i = j = k = 0;
int balanced = 1;
int numInput = 0;

cin >> numInput;
while(numInput>0){
cin>>input;
numInput--;
len = strlen(input);
strcpy ...
by knapsack
Tue Jun 25, 2002 8:56 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 38816

WA for Prg 483!!!!

I submitted the below code and received a 'Wrong Answer'. But, it worked for the test cases I tried out. Can anyone help me?? :(
[cpp]
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>

char* reverseToken (char* inputToken)
{
int strlength ...

Go to advanced search