ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1003. Parity

HELP ME IN 1003!THANK YOU
Posted by roy 22 Aug 2002 14:58
why do the Memory usage is always -8.
Even in such an experiment, I got Time Limit Exceeded and the
Memory usage was -8.

*********************************************
#include <iostream.h>

typedef struct node1
{int start;
 int end;
 char mark[10];
}node;

int main()
{
node ku[100];
int i;
int n;
short maxs;

cin>>maxs>>n;
while(n!=-1){
   for(i=1;i<=n;i++){
      cin>>ku[i].start>>ku[i].end;
      cin>>ku[i].mark;
   }
   cin>>n;
}
cout<<n;

return 1;
}
****************************************