题库练习 Icy Perimeter--Silver
← 上一题 下一题 →

A963 | Icy Perimeter--Silver

来源USACO
时间限制1s
内存限制128MB
通过 / 提交0/0

题目描述

Farmer John is going into the ice cream business! He has built a machine that
produces blobs of ice cream but unfortunately in somewhat irregular shapes,
and he is hoping to optimize the machine to make the shapes produced as output
more reasonable.
The configuration of ice cream output by the machine can be described using an
$N \times N$ grid ($1 \leq N \leq 1000$) as follows:
C++ 编辑器
输入
输出