P2975 [USACO10JAN] Taking Turns G

题目描述

Farmer John has invented a new way of feeding his cows. He lays out N (1

输入格式

\* Line 1: A single integer: N \* Lines 2..N+1: Line i+1 contains a single integer: W\_i

输出格式

\* Line 1: Two space-separated integers, the total weight of hay consumed by Bessie and Dessie respectively