Skip to main content
JudgeKit
Practice
Playground
Contests
Rankings
Submissions
Community
Sign in
Loading...
Problem
Editorial
Accepted Solutions
Problem discussion
Back
작업 사이클
Try in playground
Sign in to submit
Time Limit: 2000 ms
Memory Limit: 128 MB
Silver III
3.5
Author: Super Admin
위상 정렬
그리디
시뮬레이션
입출력 예시
입력 1
4 4 2 1 2 1 3 2 4 3 4
출력 1
3
입력 2
5 0 2
출력 2
3
Silver V
3