public static void main ( String [ ] args ) throws IOException {
  Scanner sc = new Scanner ( System . in ) ;
  int n = sc . nextInt ( ) , K = sc . nextInt ( ) ;
  rec = new double [ n ] [ 2 ] ;
  double sum = 0.0 ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    double w = sc . nextDouble ( ) , p = sc . nextDouble ( ) / 100.0 ;
    rec [ i ] [ 0 ] = w ;
    rec [ i ] [ 1 ] = p ;
    sum += p ;
  }
  if ( sum < 0.0001 ) {
    System . out . println ( 0 ) ;
    return ;
  }
  double lo = 0 , hi = 1 ;
  for ( int i = 0 ;
  i < 33 ;
  i ++ ) {
    double mid = ( lo + hi ) / 2 ;
    if ( check ( mid , K , n ) ) lo = mid ;
    else hi = mid ;
  }
  System . out . println ( lo * 100 ) ;
}

public static void main ( String [ ] args ) throws IOException { Scanner sc = new Scanner ( System . in ) ; int n = sc . nextInt ( ) , K = sc . nextInt ( ) ; rec = new double [ n ] [ 2 ] ; double sum = 0.0 ; for ( int i = 0 ; i < n ; i ++ ) { double w = sc . nextDouble ( ) , p = sc . nextDouble ( ) / 100.0 ; rec [ i ] [ 0 ] = w ; rec [ i ] [ 1 ] = p ; sum += p ; } if ( sum < 0.0001 ) { System . out . println ( 0 ) ; return ; } double lo = 0 , hi = 1 ; for ( int i = 0 ; i < 33 ; i ++ ) { double mid = ( lo + hi ) / 2 ; if ( check ( mid , K , n ) ) lo = mid ; else hi = mid ; } System . out . println ( lo * 100 ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (array_creation_expression type: (floating_point_type) dimensions: (dimensions_expr (identifier)) dimensions: (dimensions_expr (decimal_integer_literal))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_floating_point_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_floating_point_literal)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (decimal_integer_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_floating_point_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (return_statement))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier))) alternative: (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))