QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#372618 | #5572. Gridlandia | paul2008# | AC ✓ | 27ms | 4756kb | C++14 | 810b | 2024-03-31 16:44:38 | 2024-03-31 16:44:38 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
const int N=1005;
char a[N][N];
int main()
{
int n;
cin >> n;
if(n==1)
{
printf("L\n");
return 0;
}
for(int i=1;i<=n;i++)
for(int j=1;j<=n;j++)
a[i][j]='.';
if(n%2==0)
{
for(int i=1;i<=n;i+=2)
for(int j=1;j<=n-1;j++)
a[i][j]='L';
for(int i=1;i<=n;i++)
a[i][n]='U';
for(int i=1;i<=n;i+=2)
a[n][i]='D';
}
else
{
for(int i=1;i<=n-1;i++)
a[i][1]='U';
for(int i=1;i<=n-1;i++)
a[n][i]='L';
for(int i=n;i>=2;i--)
a[i][n]='D';
for(int i=n;i>=2;i--)
a[1][i]='R';
for(int i=3;i<=n-2;i+=2)
for(int j=2;j<=n-2;j++)
a[i][j]='R';
}
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)
printf("%c",a[i][j]);
printf("\n");
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3788kb
input:
1
output:
L
result:
ok answer = 1
Test #2:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
2
output:
LU DU
result:
ok answer = 4
Test #3:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
3
output:
URR U.D LLD
result:
ok answer = 8
Test #4:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
4
output:
LLLU ...U LLLU D.DU
result:
ok answer = 12
Test #5:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
5
output:
URRRR U...D URR.D U...D LLLLD
result:
ok answer = 18
Test #6:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
6
output:
LLLLLU .....U LLLLLU .....U LLLLLU D.D.DU
result:
ok answer = 24
Test #7:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
7
output:
URRRRRR U.....D URRRR.D U.....D URRRR.D U.....D LLLLLLD
result:
ok answer = 32
Test #8:
score: 0
Accepted
time: 1ms
memory: 3732kb
input:
8
output:
LLLLLLLU .......U LLLLLLLU .......U LLLLLLLU .......U LLLLLLLU D.D.D.DU
result:
ok answer = 40
Test #9:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
9
output:
URRRRRRRR U.......D URRRRRR.D U.......D URRRRRR.D U.......D URRRRRR.D U.......D LLLLLLLLD
result:
ok answer = 50
Test #10:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
10
output:
LLLLLLLLLU .........U LLLLLLLLLU .........U LLLLLLLLLU .........U LLLLLLLLLU .........U LLLLLLLLLU D.D.D.D.DU
result:
ok answer = 60
Test #11:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
11
output:
URRRRRRRRRR U.........D URRRRRRRR.D U.........D URRRRRRRR.D U.........D URRRRRRRR.D U.........D URRRRRRRR.D U.........D LLLLLLLLLLD
result:
ok answer = 72
Test #12:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
12
output:
LLLLLLLLLLLU ...........U LLLLLLLLLLLU ...........U LLLLLLLLLLLU ...........U LLLLLLLLLLLU ...........U LLLLLLLLLLLU ...........U LLLLLLLLLLLU D.D.D.D.D.DU
result:
ok answer = 84
Test #13:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
13
output:
URRRRRRRRRRRR U...........D URRRRRRRRRR.D U...........D URRRRRRRRRR.D U...........D URRRRRRRRRR.D U...........D URRRRRRRRRR.D U...........D URRRRRRRRRR.D U...........D LLLLLLLLLLLLD
result:
ok answer = 98
Test #14:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
14
output:
LLLLLLLLLLLLLU .............U LLLLLLLLLLLLLU .............U LLLLLLLLLLLLLU .............U LLLLLLLLLLLLLU .............U LLLLLLLLLLLLLU .............U LLLLLLLLLLLLLU .............U LLLLLLLLLLLLLU D.D.D.D.D.D.DU
result:
ok answer = 112
Test #15:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
15
output:
URRRRRRRRRRRRRR U.............D URRRRRRRRRRRR.D U.............D URRRRRRRRRRRR.D U.............D URRRRRRRRRRRR.D U.............D URRRRRRRRRRRR.D U.............D URRRRRRRRRRRR.D U.............D URRRRRRRRRRRR.D U.............D LLLLLLLLLLLLLLD
result:
ok answer = 128
Test #16:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
16
output:
LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU ...............U LLLLLLLLLLLLLLLU D.D.D.D.D.D.D.DU
result:
ok answer = 144
Test #17:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
17
output:
URRRRRRRRRRRRRRRR U...............D URRRRRRRRRRRRRR.D U...............D URRRRRRRRRRRRRR.D U...............D URRRRRRRRRRRRRR.D U...............D URRRRRRRRRRRRRR.D U...............D URRRRRRRRRRRRRR.D U...............D URRRRRRRRRRRRRR.D U...............D URRRRRRRRRRRRRR.D U...............D LLLLLLLLLLLL...
result:
ok answer = 162
Test #18:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
18
output:
LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU .................U LLLLLLLLLLLLLLLLLU ..................
result:
ok answer = 180
Test #19:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
19
output:
URRRRRRRRRRRRRRRRRR U.................D URRRRRRRRRRRRRRRR.D U.................D URRRRRRRRRRRRRRRR.D U.................D URRRRRRRRRRRRRRRR.D U.................D URRRRRRRRRRRRRRRR.D U.................D URRRRRRRRRRRRRRRR.D U.................D URRRRRRRRRRRRRRRR.D U.................D URRRRRRRRRRRRRRRR.D ...
result:
ok answer = 200
Test #20:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
20
output:
LLLLLLLLLLLLLLLLLLLU ...................U LLLLLLLLLLLLLLLLLLLU ...................U LLLLLLLLLLLLLLLLLLLU ...................U LLLLLLLLLLLLLLLLLLLU ...................U LLLLLLLLLLLLLLLLLLLU ...................U LLLLLLLLLLLLLLLLLLLU ...................U LLLLLLLLLLLLLLLLLLLU ...................U LLLLLL...
result:
ok answer = 220
Test #21:
score: 0
Accepted
time: 24ms
memory: 4656kb
input:
980
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 481180
Test #22:
score: 0
Accepted
time: 20ms
memory: 4756kb
input:
981
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 482162
Test #23:
score: 0
Accepted
time: 24ms
memory: 4676kb
input:
982
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 483144
Test #24:
score: 0
Accepted
time: 24ms
memory: 4696kb
input:
983
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 484128
Test #25:
score: 0
Accepted
time: 24ms
memory: 4632kb
input:
984
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 485112
Test #26:
score: 0
Accepted
time: 14ms
memory: 4696kb
input:
985
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 486098
Test #27:
score: 0
Accepted
time: 24ms
memory: 4684kb
input:
986
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 487084
Test #28:
score: 0
Accepted
time: 24ms
memory: 4660kb
input:
987
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 488072
Test #29:
score: 0
Accepted
time: 20ms
memory: 4668kb
input:
988
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 489060
Test #30:
score: 0
Accepted
time: 24ms
memory: 4644kb
input:
989
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 490050
Test #31:
score: 0
Accepted
time: 25ms
memory: 4644kb
input:
990
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 491040
Test #32:
score: 0
Accepted
time: 26ms
memory: 4652kb
input:
991
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 492032
Test #33:
score: 0
Accepted
time: 26ms
memory: 4632kb
input:
992
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 493024
Test #34:
score: 0
Accepted
time: 24ms
memory: 4692kb
input:
993
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 494018
Test #35:
score: 0
Accepted
time: 26ms
memory: 4648kb
input:
994
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 495012
Test #36:
score: 0
Accepted
time: 21ms
memory: 4696kb
input:
995
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 496008
Test #37:
score: 0
Accepted
time: 21ms
memory: 4688kb
input:
996
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 497004
Test #38:
score: 0
Accepted
time: 22ms
memory: 4676kb
input:
997
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 498002
Test #39:
score: 0
Accepted
time: 25ms
memory: 4704kb
input:
998
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 499000
Test #40:
score: 0
Accepted
time: 25ms
memory: 4644kb
input:
999
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 500000
Test #41:
score: 0
Accepted
time: 27ms
memory: 4664kb
input:
1000
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 501000
Test #42:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
113
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR U...............................................................................................................D URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 6498
Test #43:
score: 0
Accepted
time: 15ms
memory: 4556kb
input:
844
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 357012
Test #44:
score: 0
Accepted
time: 7ms
memory: 4340kb
input:
629
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 198450
Test #45:
score: 0
Accepted
time: 3ms
memory: 4020kb
input:
303
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 46208
Test #46:
score: 0
Accepted
time: 24ms
memory: 4684kb
input:
985
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 486098
Test #47:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
111
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR U.............................................................................................................D URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 6272
Test #48:
score: 0
Accepted
time: 23ms
memory: 4676kb
input:
964
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 465612
Test #49:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
35
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR U.................................D URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR.D U.................................D URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR.D U.................................D URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR.D U.................................D URRRRRRRRRRR...
result:
ok answer = 648
Test #50:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
159
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR U..............................................................................................................................................
result:
ok answer = 12800
Test #51:
score: 0
Accepted
time: 8ms
memory: 4192kb
input:
515
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 133128
Test #52:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
82
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLU .................................................................................U LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLU ......................................................
result:
ok answer = 3444
Test #53:
score: 0
Accepted
time: 15ms
memory: 4436kb
input:
779
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 304200
Test #54:
score: 0
Accepted
time: 1ms
memory: 3836kb
input:
54
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLU .....................................................U LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLU .....................................................U LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLU ............................
result:
ok answer = 1512
Test #55:
score: 0
Accepted
time: 1ms
memory: 3960kb
input:
178
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLU ............................................................................................................................
result:
ok answer = 16020
Test #56:
score: 0
Accepted
time: 7ms
memory: 4180kb
input:
492
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 121524
Test #57:
score: 0
Accepted
time: 5ms
memory: 4100kb
input:
400
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 80400
Test #58:
score: 0
Accepted
time: 4ms
memory: 4272kb
input:
567
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 161312
Test #59:
score: 0
Accepted
time: 12ms
memory: 4468kb
input:
785
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 308898
Test #60:
score: 0
Accepted
time: 11ms
memory: 4244kb
input:
643
output:
URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR...
result:
ok answer = 207368
Test #61:
score: 0
Accepted
time: 22ms
memory: 4640kb
input:
932
output:
LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL...
result:
ok answer = 435244