• + 1 comment

    Hi, I also get "Runtime Error" for the exact same testcases - other testcases solved. I'm sure it is not because of a time limit since you would get "Timeout" as a result.

    To be more specific: I'm using Haskell, a self-defined segment tree (should be quite fast), and the following approach to read the next command:

    solve _    0 = return ()
    solve tree q = do
    commandTemp <- getLine
    let splittedCommand = map (\x -> read x :: Int) $ words commandTemp
    ...
    

    No idea, how the Runtime Error occurs, to be honest.

    EDIT: I changed my IO approach and now i get the Runtime Error in some other testcases aswell.

    EDIT: It has something to do with lazy input reading - no time to dig deeper.