TouchStone
  Please Login
Login Sign Up
 Homepage  Problem Set  Examinations  Submissions  Discussions  Statistics
  • Home
  • Problem Set
  • P4664
  • Problem
  • P4664「AHOI / HNOI2018」游戏
    Limits : Time Limit : - MS   Memory Limit : - KB
    Judgment Tips : 1s 512m
    Description

    Input Format

    Output Format

    Sample Input 1

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

    Sample Output 1

    YES
    NO
    YES
    YES
    NO

    Sample Input 2

    7 5 4
    2 2
    3 3
    4 2
    5 3
    6 6
    2 1
    3 4
    3 7
    4 5

    Sample Output 2

    YES
    YES
    NO
    NO

    Hint


    Source  AHOI/HNOI2018