Type: Default 1000ms 128MiB

找颜色(1.5)

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

最初给出7种颜色的英文,输入一个句子,判断句子中是否包含有这7种颜色的单词。如果有,输出1,并在第二行输出该种颜色,如果没有,输出0。7种颜色:red,yellow,blue,black,white,puple,brown.
(保证这个句子最多只有其中的一种颜色)
I have a blue book.
1
blue

来源

字符串

字符和字符串

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
12
Start at
2025-12-16 14:30
End at
2025-12-24 22:30
Duration
200 hour(s)
Host
Partic.
39