QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#561488#257. Optic Communication5un_xiaomivita_mbox100 ✓0ms3628kbC++172.0kb2024-09-12 23:04:462024-09-12 23:04:46

詳細信息


Pretests


Final Tests

Test #1:

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

input:

4
6
VISIBLE B A
MESSAGE A "HELLO"
WEATHER A B
MESSAGE A "GOODBYE"
VISIBLE A B
MESSAGE A "WORLD"
11
VISIBLE B A
VISIBLE C A
VISIBLE D A
VISIBLE E A
VISIBLE F A
VISIBLE G H
MESSAGE A "YOU"
MESSAGE B "ARE"
OBSTACLE B A
MESSAGE C "NOT"
MESSAGE G "ALONE"
3
VISIBLE A B
MESSAGE A "VISIBLE OBSTACLE WEATHER ...

output:

B: ["HELLO", "WORLD"]

A: ["ARE", "NOT"]
B: ["YOU"]
C: ["YOU", "ARE"]
D: ["YOU", "ARE", "NOT"]
E: ["YOU", "ARE", "NOT"]
F: ["YOU", "ARE", "NOT"]
H: ["ALONE"]

B: ["VISIBLE OBSTACLE WEATHER MESSAGE"]

D: ["MESSAGE"]


result:

ok 13 lines