Login
Sign-Up
Problem
Contest
Category
Submissions
English
Problem
Contest
Category
Submissions
English
#293
Submit Code
Submissions
통근버스 출발 순서 검증하기
Time Limit: 1 Sec
Memory Limit: 1024 MiB
한국어
Example Input 1
Copy
3 3 1 2
Example Output 1
Copy
0
Example Input 2
Copy
3 2 3 1
Example Output 2
Copy
1
Example Input 3
Copy
4 4 3 1 2
Example Output 3
Copy
0
Example Input 4
Copy
5 4 2 5 3 1
Example Output 4
Copy
4
Language-Specific Restrictions