User:Sweepline/UVa 10979.cpp