#P11034. 【MX-X3-T1】「RiOI-4」What beats RiOI
【MX-X3-T1】「RiOI-4」What beats RiOI
Background
Original problem link: https://oier.team/problems/X3B。

But as everyone knows, RiOI split off from KDOI, so this is just for fun... (whisper)
Sorry, KDOI, meow!
Problem Description
Define a string as good flash if and only if it contains the substring RiOI (case-insensitive, for example, containing rioi, RIOI, rIoI all counts as containing it).
Given two non-empty strings that contain only uppercase and lowercase English letters:
- If both strings are good flash, output
Either is ok!。 - Otherwise, if is good flash, output
for sure!。 - Otherwise, if is good flash, output
for sure!。 - If neither string is good flash, output
Try again!。
Input Format
Two lines, each contains a non-empty string consisting only of uppercase and lowercase English letters, representing .
Output Format
One line with one string, representing your answer.
RiOI
KDOI
RiOI for sure!
RiOIroundfour
RiOIroundnegtiveone
Either is ok!
majsoul
digdigio
Try again!
GoInForNOI
GoInForIOI
GoInForIOI for sure!
Hint
Sample Explanation #1
RiOI contains the substring RiOI, while KDOI does not, so output RiOI for sure!。
Sample Explanation #2
RiOIroundfour and RiOIroundnegtiveone both contain the substring RiOI, so output Either is ok!。
Sample Explanation #4
GoInForIOI contains the substring rIOI, while GoInForNOI does not, so output GoInForIOI for sure!。
Constraints
For of the testdata, are guaranteed to contain only lowercase English letters.
For of the testdata, the lengths of are both at most , and both are non-empty strings consisting only of uppercase and lowercase English letters.
Translated by ChatGPT 5