摘要:
给定一个二维的矩阵,包含 'X' 和 'O'(字母 O)。 找到所有被 'X' 围绕的区域,并将这些区域里所有的 'O' 用 'X' 填充。 示例: X X X XX O O XX X O XX O X X运行你的函数后,矩阵变为: X X X XX X X XX X X XX O X X解释: 被 阅读全文
摘要:
Lee tried so hard to make a good div.2 D problem to balance his recent contest, but it still doesn't feel good at all. Lee invented it so tediously sl 阅读全文
摘要:
B. AccurateLee time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Lee was cleaning his hous 阅读全文
摘要:
There are n cards of different colours placed in a line, each of them can be either red, green or blue cards. Count the minimum number of cards to wit 阅读全文