Harry Potter and the History of Magic

Problem Name:
Harry Potter and the History of Magic
Site:CodeForces
Links:
Tags:
Problem setters: