CodeFoeces-629A

题目

原题链接:A. Far Relative’s Birthday Cake

题意

问同行或同列为C的个数。开始没明白样例二,后来参考了其他作者的代码,遍历搜索。

代码

#include
using namespace std;
int n,sum=0;
char s[100][100];
void bfs(int a,int b) {
    for(int i=b+1; i

你可能感兴趣的:(CodeFoeces-629A)