测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A963. Icy Perimeter--Silver

编程题 普及/提高-

题目描述

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:
上一题 去做题 下一题