SCU 2011 team contest 4

B: Binary Operation