https://codeforces.com/gym/101981/attachments
分析:地图只有400个点,直接随机跑一个长度50000的字符串就可以了。
#include "bits/stdc++.h"
using namespace std;
const long long mod = 1e9 + 7;
char mp[24][24];
int main() {
srand(time(0));
int n, m;
cin >> n >> m;
for (int i = 0; i < n; ++i) {
scanf("%s", mp[i]);
}
string ans;
for (int i = 0; i < 50000; ++i) {
int temp = rand() % 4;
if (temp == 0) {
ans += 'U';
} else if (temp == 1) {
ans += 'L';
} else if (temp == 2) {
ans += 'R';
} else if (temp == 3) {
ans += 'D';
}
}
cout << ans << endl;
}