not exactly an algorithm... 2013 BJUT TAI HE GU WEN BEI Mathematical Contest in Modeling first match