3393 - Rectangle of Permutation   

Description

https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=346&page=show_problem&problem=2502 

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss