SCU 2005' Warmup Contest 26

E: Smallest Difference