QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#239668 | #8981. Kangaroo Puzzle | Bbaka_ | WA | 1ms | 3944kb | C++20 | 559b | 2023-11-04 22:20:56 | 2023-11-04 22:20:56 |
Judging History
你现在查看的是测评时间为 2023-11-04 22:20:56 的历史记录
- [2024-11-05 18:07:55]
- hack成功,自动添加数据
- (/hack/1130)
- [2023-11-04 22:20:56]
- 提交
answer
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(void)
{
int n,m;
cin>>n>>m;
string s;
for(int i=1;i<=n;i++)
{
cin>>s;
}
s="";
mt19937 rnd(random_device{}());
string step="LRDU";
for(int i=0;i<50000;i++)
{
s+=step[rnd()%4];
}
assert(s.length()<=50000);
cout<<s<<endl;
}
int main(void)
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t=1;
while(t--)
{
solve();
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3652kb
input:
4 4 1111 1001 1001 1110
output:
UDUULDDDUDRLUDUDDRUDLLRLDUUDLRRURULUDLDDULRLDLDUDURUDLDLLRRRRLURDDRUURURULURLUUUUULDDDURDLDUUURDLDLLRUUULDLRDRUUUUUDDURLRRUDDDLURDRLRLULULLURLDURLRDDLLLLRUDRLUULDDDUULDULLRDLLDRRLLUUULDUUUDUDLRRRLLULLUUULLRURDUURLLLRRLDLURLDLDDLDULRDRLLLRLRDDRLDRDDLLLDLRUDDRRDLRLLLDRURURDRLUDDDRULLDLURUDRUDDULRLRLUL...
result:
ok AC
Test #2:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
2 15 111111111111111 101010101010101
output:
LURLUUDURLRUUDDDRUDDRLULUURUURDLURURRRUDDRRLDLRRDRLDDDDDURUDUDUUDLULUDULDLDDURLUULULUULDULRRURDDUDRULDDRLDULUDDDULLLRURRUURUDLDRUDDRRLDLRUDDLLRRRDULDLUDLRLRDDDRDLRLRUDDLRULDDUDDLUDRDRRDRDLLLUUULLDUDDRLDRDRDURDRUUDDULDUUULUDRRLLUUDRRDUDURLDURRRLDURRRLDULUDULLRLLULDDULRRLLRLLRULRDDDLLLLRULLUURDRUUDULL...
result:
ok AC
Test #3:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
1 2 11
output:
URLURLRLLRRULRRLRUDDDDLLRULLUDRDLURDLRLLDRULRDLUDDUDRRUDLLUUDULLDURDULDRUUDDUUUDDRRDLURLUURDULDLDDRRUDDDRUDUDDURRDRLURULULDLDLRLLRRDDULRUDRRRRURRUUDUURLLRRUDURRLLDDLLLLULDUULULURLDULLUULLURURLLRUDLLRDDDRRDUDRLRLURDRRUDUDRUUULDUDUURUDUDLRUDRRDDULURLUURDDUUULLRLDUDLLRDRDUDLRUUDUUDRLLRDLUDDDDDDULLRRRDL...
result:
ok AC
Test #4:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
2 1 0 1
output:
LULLLURRDDDLDDUDDLDUULLRLLRDLDDUDDDLULLDRDUDRLUULRLRRUULUDLLRULUDUULUUUDRDULDRLRDDURLLLRDDLRLDLDUDDRLLDLRLRURUUUULDRUUURRLDURLRLLUURLDLRRUULLULUDLURRRLLUDLUDRDRLRDRRRLLRLDURDRUUURRUDRULRLULDDRRRRDULDDDDRLDRRULLURDLRLDRUUDLDULDRRDUULRDRLLLULDRULDRUDLDUURULDDUUDRULLRDLRRUDLLDUULDRDDUDLLUUURLLLRLRDURRD...
result:
ok AC
Test #5:
score: 0
Accepted
time: 1ms
memory: 3736kb
input:
20 20 00000000000000000000 00000000000000000000 00000000000000000000 00000000000000010000 00000000000000010100 00000000000000111110 11001100000001101001 01110100111001000111 10011111101111001101 11110100110101001001 01000000001101011101 00000000000011010000 01000000000110010000 11100000001010110000 ...
output:
DLDULDUDUDRUDUDDRDDUURDURDRUDRDULRUDULDDRURRULUDLRDRRLDULRLUURLLDULDLUULULUDURUDDDLLULURDRRRUDLLULDDLUURUDDUDRRDUUDDLULDLRUUUUURURRRUDURRRLLDLURULRRDULRDUDLUULRRLUDURLDDRLRLRRULUDULUDRRUDUDLLDLLDRDUUUUULRUURDLLUDDLLLDLDRDLDDRURULUDULUDRRDLDRULUURRDRURRDLRLLULDDDDDDDRRDLULULDLLRDLURRRRDUDULRDUUDUUDUU...
result:
ok AC
Test #6:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
20 20 10101010000000111100 11111110000000100111 00101000000000000101 11101100000000001011 01000101100000001101 01001110111010111011 00111011001011101010 00101001111001001111 11001011000111011010 01010110000000110100 11110010000101011100 10011111101101110011 10101000100111000110 11100111111100111011 ...
output:
ULUDDRRLDRDDLDRLDDDLURURLRRLRDRULUUUDLRRULURLDLDDLLDRDUDRRDRLDRUDLRRLDRLDDUDRDLDDURDDURUDDRUUDDDURDDLURULRDDDLDUULRDULUUUDRLLUUURLRURRDRULLULRLRLLDRDDURLRDDLDLDRLLUDDUURLUDLUUURULUUDRLLLUURRDDULDDRULRULRLRRLURUULURLUDRRRDLULLDDRLLDRRRULLRDRRULLUURULRDRRLUURDLDRLLUUDDDLLDRULDRULLUDUUDLRRDLULURLRUDLRL...
result:
ok AC
Test #7:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
20 20 11101111101011101010 10110000101100111111 11011111100101001010 10010010110111110111 01101001101101010101 11001111010101011001 01110101110010001111 11010100001110011001 01010111101011100111 10111100100100111101 11001011111101010100 10111010010011010011 10100110111110111110 11101011010101101000 ...
output:
LRUUDLDDDLRLDLULLUDDUUDRURLDULDLDDDUUURULLDLDRURLRLLDRLUUDRDURUURDDDDURDDUDLURLULRRRDURRUDULLLDLRRLULUULDDRDLLUDDDURLLDURUDLRDUURRDURUDURULDLDULURDLLDULRUDLUDDURRLRDLDUDULRDDRUURLDRURDUUUUULLRRRLRDLDLDULDLURLRLLRRUUURRRRURUDLDDLURLRUDRRUUDUDRRURDRDDLDRRRURDRLRLURRRRDDDUDLLDDUDRULLDLRLDDLRUDLULRRURRU...
result:
ok AC
Test #8:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
10 10 1010100000 1111110000 0001010000 0101000000 1111100000 1001000000 1110000000 1011000000 0001100000 0000110000
output:
UDULRUDURUURDLRRLRRDDUDDLURURDDDRULULLLRUDLUUDLRURLRLUDDRRDDRLDLRLRLUUUULRUULRRRUUDRUUDRRURUDLLURRDLDDDUUULLRRDDRUDURUUDDLLDUDRRUDDLDDDUULLRULULLDLUDUDLDDDULDDDURRDDLRURDRDRDRDDUDDRRLURRRRRDLLLRULLLRLLLLDDDLUULDUUDUUDLDRRURDLDDRLLURDRLUDDULRRRLUURDDLRLLLLRULUDDURUDRDLRLURUUUUUUUULUDLRRRUDDLURLLDLURL...
result:
ok AC
Test #9:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
12 12 000000011101 000011110111 000001010001 000011000011 000010000000 000010000000 000000000000 000000000000 000000000000 000000000000 000000000000 000000000000
output:
UULULULRRLLLUDRDLDRLUUDURRRRLDRRUDRDDDRDLRRRURUDRLULRUDDDURLULRLRLDUUDDLLLDRURRLRLRRRULLDDDUDLLRLDLRLDUUUDUULURDULDDRDURLLDDRUDDLDUDLUDRDDUDULLUUDDRUUDULRDDLLLLUUUDDLUUUDULLRLLRDURUULLLDUUDUDULLULDDLLURDURRLDLLULULDDRLRDRURURURLULLRDDDLLUDRRLUULDRDRLLLDLURUDRLDDLRDUDRLLRRURRULUUDDDRURDDDULURUULDLRUU...
result:
ok AC
Test #10:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
20 20 00000000000000000000 00000000000000000000 00000000000000000000 00000000000000000000 00000000100000000000 00000011110000000000 00000001010000000000 00000000000000000000 00000000000000000000 00000000000000000000 00000000000000000000 00000000000000000000 00000000000000000000 00000000000000000000 ...
output:
LDRULDRUUDRRURLDDRDULLLLUUUURUDDDLULDLRDRRRDLRRUULDLRLLLULUDLDRLDURLULLDUDRDRLRLULDURRULRUULRURLUDDUDRUURLDLRLLUUDUDLRRLLLURLLURLLRUDURRDRRLDLLDRLLDRURLLUUDLLDDLDURRUURLLDULUUUULDLLDLRLRLRLDLULLRLLUURDRLRURRUUDRRUUDULDLLRDLLLDDDLUUDLDDDDRUURUURRRULRDRDRRDLLDDLULLLLLLDDDDURLRDLLUDRUUURURDLLDRULUDRDRL...
result:
ok AC
Test #11:
score: 0
Accepted
time: 1ms
memory: 3944kb
input:
20 20 00000000000111111111 00000000000010010100 10000000000001110111 10000000110010010100 11000011010011010001 01000010010101011111 01110111110111110000 11011101011100100011 01000000110000111110 11000000000000101010 01110100100001101101 11011111111000010111 10000010101001111010 11000011000111010010 ...
output:
RRDUDRLLDLLLLULLDDLRDULDUDRURLUUUDLLRLRLUUDRRDLUDDLRRDRULDRRDRRLDUDLLURDUUDRRRDLUURLLLUUUDUDDDLDRDLLDLLUURDDUULLLRRURRRURLDDDDRRLDUDLDUDULDDRDRDDLRRRDUUDLRDRDUURRLDLLDRDLUURUDDUULRLRLLRURRDUDDRRRLLRRLLRLLLDDULRDRLULLRRRRRUDDULLDRDDUDULDDRRRDLRUURUURDRURLRRLDRRLURDDRLRDDRUDLLUURRLUURURULUUURLDLLLRURD...
result:
ok AC