So, I started in WeekGolf. And i ask Vyxal' pro's help to fight with it ))
Here is challenge:
https://week.golf/challenge.php?id=29
Here is my solution:
https://vyxal.pythonanywhere.com/#WyIiLCIiLCLilqHijIjijIo6e3RMxIt84bij4oip4bmYOn1XZjrhuo89QSxcbiIsIiIsIjAwIDAxIDAyXG4wNyAwOCAwM1xuMDYgMDUgMDQiXQ==
Maybe it is not good, and there is no output "valid/invalid" yet… I will try.
But! It's really correct for all test cases from WG.
And two problems appear:
1. With WG IDE code does not work at all. vyxal.pythonanywhere produce correct "1", but WG show "0" for the same code