Codeforces Round #424 (Div. 1, rated, based on VK Cup Finals) B. Cards Sorting(树状数组+模拟)

NoSuchKey