#!/usr/bin/perl# 6M King while (<>){ s/\d+ \d+ (\d+) (\d+) (\d+) (\d+)/abs($1-$3)>abs($2-$4)?abs($1-$3):abs($2-$4)/e; print }
10 10 10 10 1 1 2 2 1 1 1 2 5 5 3 3 5 5 6 6 1 1 1 1
9 1 2 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!