Advertisement
roronoa

categories

Sep 1st, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Auto-generated code below aims at helping you parse
  3.  * the standard input according to the problem statement.
  4.  **/
  5.  
  6. const X = parseInt(readline());
  7. const N = parseInt(readline());
  8. for (let i = 0; i < N; i++) {
  9.     var inputs = readline().split(' ');
  10.     const F = parseInt(inputs[0]);
  11.     const T = parseInt(inputs[1]);
  12.    
  13.     const category = inputs[2];
  14.     if(X >= F && X <= T)
  15.         print(category)
  16.    
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement