In the editorial for the question https://codeforces.me/contest/1361/problem/A What is being stored by "last" and "ans" arrays ?
Codeforces Round #647 Div 2. D
In the editorial for the question https://codeforces.me/contest/1361/problem/A What is being stored by "last" and "ans" arrays ?