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 1100. Final Standings

here is a solvation
Posted by Costel::icerapper@k.ro 25 Feb 2002 21:17
program timus_1100;
const
  maxn=150000;
var
  ID:array[1..maxn]of longint;
  np:array[1..maxn]of byte;
  n:longint;
  i,j:longint;
begin
  readln(n);
  for i:=1 to n do
    readln(ID[i],np[i]);
  for i:=100 downto 0 do
    for j:=1 to n do
      if np[j]=i then
        writeln(ID[j],' ',np[j]);
end.
Re: here is a solvation
Posted by ECUST Multistar 12 Mar 2002 16:11
the difficulty is too high!
No, it can work out the problem in the limited time!
Posted by Bighead 19 Apr 2002 18:50
Re: here is a solvation
Posted by Mukabe Abi 31 Mar 2003 18:41
> program timus_1100;
> const
>   maxn=150000;
> var
>   ID:array[1..maxn]of longint;
>   np:array[1..maxn]of byte;
>   n:longint;
>   i,j:longint;
> begin
>   readln(n);
>   for i:=1 to n do
>     readln(ID[i],np[i]);
>   for i:=100 downto 0 do
>     for j:=1 to n do
>       if np[j]=i then
>         writeln(ID[j],' ',np[j]);
> end.
>
Re: here is a solvation
Posted by 杀(kill)希特勒 10 Aug 2004 15:19
MLE also!
Re: here is a solvation
Posted by 杀(kill)希特勒 10 Aug 2004 15:19
MLE also!
Re: here is a solvation
Posted by Katy 10 Jul 2006 00:49
i used this way and i've got wrong answer it third test.
Re: here is a solvation
Posted by Katy 10 Jul 2006 00:50
Costel::icerapper@k.ro wrote 25 February 2002 21:17
  maxn=150000;

why 15000???? you have only 100!!!!
My time 0.124 with it but little upgraded for optimization
Posted by IlushaMax 13 Mar 2016 23:30