The Arrangers X12306


Statement
 

pdf   zip

html
Public test cases
  • Input

    2 2 4 1 3
    3
    

    Output

    12
    
  • Input

    5 1 3 2
    2
    

    Output

    2
    
  • Information
    Author
    Language
    English
    Official solutions
    C++
    User solutions
    C C++ Python