有个c语言问题,各位大佬帮帮忙谢谢

现有一片区域,饱受海水倒灌影响,每年靠海的陆地都会被淹没,给出地图,求该地区几年后会被淹没

Input

第一行两个整数n,m表示地图的大小
接下来n行,每行m个字符用来描述地图X为海岛.为海水

Output

一个整数表示几年后海岛会被全部淹没,如果永远不会被淹没则输出0


qq_空心_8
浏览 1379回答 1
1回答

慕设计2395807

RHAATUNKZTJKDGDZGWWFMCJVDDWMCSFBUFFBBENEBKSCJPLIPSROWTJCEBRUEUKGAAIMZCCCPMJPPNMENYOUKNNTAJIOBHBIRRLIUJWOHRQDGMZVHYMJMJFFFTPIVNSPFBONVEDJQKUHHNDHGCCITSVBVELHAAQMOAGATEXYOSIYSLCONFEUOTJNXYAWYGWPGWSBRLAINXYBRXXKQJVELCDQWGGMGTPSLFASNXXTVIBRBBLLBMWMCBYZYFYYYAAPZFOOGWJQODMWUROENHUIEXEUDLOUHKXWGNQJTHUHHEXJWJJFNZJJQZVLPLGDMMJEGOEAHGGCCJSBRNXMWCMFCMOXXAAATQNGYOXNQAOUAKHSFUUJWGDWSCTWFPIYBXRRAFSYGZPZPFPPNSWCJTMWMCCAGHXAKKKJTAXMCMKQMFFZVEAXXBFKAEUERPIIFISIIBLKUXTZPXQWGXZBKZBEBRZCFOKOQBXUSOENRNCFILUDMJFPLUKFVRUQNPKGPYVXODGWMLUWGCZJYURYACMVYUKAKAARHDAJMPFSPRHQYIKZIFVRULAPFOYOXNXSMORNQGPFOENILTWZITPFIPZHWZWFHKTWZMIDNJGDTPYVKAXTDNEAQNCCLTJFPMILHRBQLVYNXAQGTMVEAXFBKHXGKGWTWRPZBEHGCRVXHWTWGOHQZUJMPSBYTCRMCLBKGCSPUCZCSOKGPMPTOKHEVFPSVEACYUKTQMIFGWWZCMCLHXNJZHYCMVLFISOMUWTCYHYOCLOEMHQZWGIYOGDMVFBYHQGCLUDGPYULPEHMSOIUUAUGAJWEUXGWZTPMOXTISUEOENDTKGIYVRHDAJMJLJSBLUCSBRLUASOOOEXXDQKGPFVYUQTW
打开App,查看更多内容
随时随地看视频慕课网APP