It seems that in some of the tests (most of them, in fact) numbers n and m are given in separate lines unlike in the example test. It matters for reading the input in Python for example.
I tried to submit a solution in Rust but I get runtime errors, but my solution in C++ works fine, what did I do wrong ?
user795364 it seems your program goes out of bounds, it fails with this error:
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', source.rs:57:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceuser795364 how do I get to see the error prompted by the tests ?
user795364 it's not shown due to security considerations, you should prepare your own test cases, especially edge cases, and verify your program correctness before submitting it.
skolodyazhnyy Thanks, I am new to the plateform, and since the replies button does not show any reply, I thought it was like bug or something.