ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1196. History Exam

i have confusing why i use set(STL). i got WA in case #1. but when i write it in normal binary search it can AC.
I have modified the problem statement a little. Numbers in teacher's list can appear more than once, so you got WA.