2.10题目翻译
https://acs.jxnu.edu.cn/problem/HDU1312
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But he can't move on red tiles, he can move only on black tiles. Write a program to count the number of black tiles which he can reach by repeating the moves described above.
输入:
The input consists of multiple data sets. A data set starts with a
2.10题目翻译最先出现在Python成神之路。
共有 0 条评论