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 1280. Topological Sorting

TheBeet An interesting Problem [2] // Problem 1280. Topological Sorting 26 Jun 2004 09:09
type
 node=record
       d:integer;
       n:longint;
      end;
var
 dl:array [1..100000] of node;
 l,le:array [1..1000] of longint;
 able:array [1..1000] of integer;
 i,n,m,f,t,k:longint;

This program I got "Memory Limit Exceeded 15 1153 КБ"

Then I change the node
 node=record
       d:word;
       n:longint;
      end;
I got AC.
Khlyzov Andrew Re: An interesting Problem [1] // Problem 1280. Topological Sorting 21 Jul 2004 14:55
What is the difference between using word and integer?
Each of them is 2 bytes. I changed integer to word myself and I got AC too.
Evil Cheater Re: An interesting Problem // Problem 1280. Topological Sorting 21 Jul 2004 20:06
In some compilers integer and longint have the same size. If you want a 2 byte integer I think you can use smallint.