optimized each
atcoder codefestival quala