TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4704
  • Problem
  • P4704【清华集训2016】石家庄的工人阶级队伍比较坚强
    Limits : Time Limit : - MS   Memory Limit : - KB
    Judgment Tips : 2s 512m
    Description

    Input Format

    Output Format

    Sample Input 1

    1 1 10009
    10 100 1000
    2 3
    4

    Sample Output 1

    4320
    3240
    2430

    Sample Input 2

    2 3 103
    7 8 9 10 11 12 13 14 15
    1 2 3
    4 5
    6

    Sample Output 2

    96
    8
    73
    38
    53
    15
    27
    42
    4

    Hint


    Source  清华集训2016