Hello
Suppose there is a task in which you need to output two numbers, for example, 1 and 2.
In this case, both the output "1 2" and "2 1" is considered correct.
Can you tell me how to make such a check?
Thanks
Hello
Suppose there is a task in which you need to output two numbers, for example, 1 and 2.
In this case, both the output "1 2" and "2 1" is considered correct.
Can you tell me how to make such a check?
Thanks
\A(1 2)|(2 1)\s*\Z
. But regular expression graders confuse students so this isn't usually a good approach.