CodeFoeces-330A

题目

原题链接:A. Cakeminator

题意

有一块蛋糕,被切成了rc块,其中有些有草莓,不吃有草莓的蛋糕的行和列,问最多能吃多少块。范围只有1010,模拟即可,若是大于这个,应该需要搜索做。

代码

#include
using namespace std;
int r,c;
char s[11][11];
int main() {
    scanf("%d%d",&r,&c);
    for(int i=0; i

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