TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P3511
  • Problem
  • P3511无聊的计算
    Limits : Time Limit : 10000 MS   Memory Limit : 265536 KB
    Description

    Input Format

    Output Format

    输出

    Sample Input

    5 3
    3 2 2 1 0 4
    3 3 2 4 2 1

    Sample Output

    6

    Hint


    Source  nodgd