Ford-Bellman#1453

Ford-Bellman (Discussion)

  1. Le_NodJun 18, 2025, 2:54 PM

    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.

    1. ConnectJun 18, 2025, 4:10 PM

      Le_Nod The problem has already been solved.In the input, n and m are given in one line. Try submitting the problem now

  2. user795364Feb 2, 2024, 1:17 AM

    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 ?

    1. skolodyazhnyyFeb 2, 2024, 8:41 AM

      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 backtrace
    2. user795364Feb 2, 2024, 10:43 AM

      user795364 how do I get to see the error prompted by the tests ?

    3. skolodyazhnyyFeb 2, 2024, 10:50 AM

      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.

    4. user795364Feb 2, 2024, 9:36 PM

      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.