本蒟蒻今天做了道RMJ的CF,目前已经AC,代码:
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
string a[10000];
int n,m;
bool chk (int x)
{
char first = a[x][1];
...
return true;
}
int main()
{
scanf ("%d %d", &n, &m);
...
return 0;
}
//luogu rmj ver
这个是洛谷rmj交上去的,但本人喜欢先从原OJ上交,但在CF上会提示第八个点RE(数组开大也无效会MLE),洛谷两发有一个RE,一个AC,问是为啥?
(如果要在CF上通过,只需要把string a[1000]改成char a[1000][1000],求解???