Here’s my submission in bash.
https://toph.co/s/1071192
When I test it with custom input (in toph), it works. but when I tested or submitted it gives me runtime error even though the code is fine.
Here’s my submission in bash.
https://toph.co/s/1071192
When I test it with custom input (in toph), it works. but when I tested or submitted it gives me runtime error even though the code is fine.
The test inputs of this problem had CRLF line endings. Drafts usually detects this issue and reports it to the problem authors. But in this case the problem is older than when this feature was added to Drafts.
The test cases have been updated and your submission has been rejudged.
Thanks for reporting this!