TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4705
  • Problem
  • P4705【清华集训2016】你的生命已如风中残烛
    Limits : Time Limit : - MS   Memory Limit : - KB
    Judgment Tips : 2s 256m
    Description

    Input Format

    Output Format

    Sample Input 1

    1
    5

    Sample Output 1

    24

    Sample Input 2

    6
    1 2 3 4 5 6

    Sample Output 2

    90337303

    Hint


    Source  清华集训2016