TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4550
  • Problem
  • P4550【2017 湖南集训】翻卡片
    Limits : Time Limit : - MS   Memory Limit : - KB
    Judgment Tips : 1s,256m
    Description

    Input Format

    ac

    Output Format

    ac

    Sample Input

    5 3 
    4 6 
    9 1 
    8 8 
    4 2 
    3 7 


    9

    Sample Output

    18

    Hint