Skip to content

C16のサンプルコードにバグ? #20

@forest3-dot

Description

@forest3-dot

C16 Flightsの解説にしたがって、サンプルコードほぼそのままを提出するとWAになります。
時刻順にソートする配列の要素が、時刻、ID、種別の順になっているので、同時刻に複数のイベントが存在する場合に種別よりもIDがソートキーとして優先されるので、到着の後に出発するとは限らない場合があるようです。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions