QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#518508#1956. Find The HouseDennisTran#RE 0ms3668kbC++14476b2024-08-13 21:12:382024-08-13 21:12:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3600kb

input:

4
3 R 4
-2 R 5
7 L 5
0 L 2
0

output:

2

result:

ok single line: '2'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3668kb

input:

5
10 L 7
1 R 4
-1 R 11
5 L 6
3 L 3
1

output:

0

result:

ok single line: '0'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

1
100 L 123
100

output:

-23

result:

ok single line: '-23'

Test #4:

score: -100
Runtime Error

input:

1000
1217 R 2
1015 R 2
1001 R 2
1281 R 2
105 R 2
1489 R 2
-481 R 2
1419 R 2
111 R 2
-287 R 2
615 R 2
-89 R 2
85 R 2
225 R 2
-443 R 2
1013 R 2
1009 R 2
1245 R 2
1057 R 2
-143 R 2
83 R 2
-103 R 2
163 R 2
-117 R 2
733 R 2
-405 R 2
751 R 2
759 R 2
1207 R 2
507 R 2
351 R 2
-343 R 2
317 R 2
-491 R 2
-421 ...

output:


result: