Can anyone help me with the input and output for the 'Turn the lights off' problem????
Thanks in advance......
Search found 3 matches
- Fri Apr 09, 2004 7:55 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10309 - Turn the Lights Off
- Replies: 19
- Views: 12664
- 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 ...
[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 ...
- 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 ...
[cpp]
/*"@BEGIN_OF_SOURCE_CODE"*/
#include <stdio.h>
#include <iostream.h>
#include <string.h>
#include <ctype.h>
char* reverseToken (char* inputToken)
{
int strlength ...