SCUACM2018 Summer Training Final Examination

B: 简单的逆序对