随机化强强强
ExCh_dd2014_Gcdunk · · 题解
显然,随机一个长度
我取了
#include <bits/stdc++.h>
using namespace std;
string p[1005];
int main()
{
string s = "UDLR";
srand(time(0));
int F = 1000;
string A;
while(F--)
{
int G = 50000;
string ans;
while(G--)
ans += s[rand() % 4];
p[F] = ans;
}
cout << p[rand() % F + 1];
}