Skip to content

Internal Error の実装 #95

Description

@riantkb

Internal Error(ジャッジが正常でない)際に、システムの出力が空になり Accepted と判定されるのが罠である

Open3.capture3("[ -f /data/tasks/#{task_id}/judge.cpp ] && g++ -O2 -std=c++14 /data/tasks/#{task_id}/judge.cpp -o /data/tasks/#{task_id}/judge.exe")

o, e, s = Open3.capture3(cmd)

上記の Open3.capture3 の 3 つめの返り値に終了ステータスが入るので、それを見て分岐が可能か?

test.sh が AC 以外のステータスでも 0 を返すかの調査は必要(多分大丈夫だとは思うけど)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions