Help for this page

Select Code to Download


  1. or download this
    @lines = <>;
    
    $n=1000;
    ...
        $max < $_ and $max = $_ for keys %occ;
        print $max," ",$occ{$max} || 1,$/;
        }
    
  2. or download this
    # Example input:
    )((())))(()())
    ))(
    ...
    2 1
    28 1
    662 1