Clear mind workd always better...found a mistake at pile...onto command and cleared it but still no luck...here goes the change:
if(strcmp(pos,"onto")==0){
for(i=0;i<boxes;i++){
for(j=1;j<=boxes;j++){
if(boxtable[i][j]==st1){
spots=0;
for(k=j;k<=boxes;k++){
if(boxtable[i][k]!=-1){
movetable ...
Search found 2 matches
- Wed Feb 14, 2007 5:44 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110416
- Tue Feb 13, 2007 7:06 am
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110416
101 WA Help please!
Hello. I have the following code, checked it bout 10 times, checked every possible test case and it works just fine. Still I get a Wrong Answer! Any ideas?It's driving me crazy!
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void main ()
{
char command[20];
char *com,*pos,*stack1 ...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void main ()
{
char command[20];
char *com,*pos,*stack1 ...