P2926 [USACO08DEC] Patting Heads S

题目描述

It's Bessie's birthday and time for party games! Bessie has instructed the N (1

输入格式

输出格式

说明/提示

The 5 cows are given the numbers 2, 1, 2, 3, and 4, respectively. The first cow pats the second and third cows; the second cows pats no cows; etc.