public static String process ( TestCase testCase ) {
  final int N = testCase . N ;
  final int T = testCase . T ;
  final List < Integer > c = testCase . c ;
  final List < Integer > t = testCase . t ;
  Optional < Integer > minCost = Optional . empty ( ) ;
  for ( int i = 0 ;
  i < N ;
  ++ i ) {
    final int cost = c . get ( i ) ;
    final int time = t . get ( i ) ;
    if ( time <= T ) {
      if ( minCost . isPresent ( ) ) {
        minCost = minCost . map ( curr -> Math . min ( curr , cost ) ) ;
      }
      else {
        minCost = Optional . of ( cost ) ;
      }
    }
  }
  return minCost . map ( String :: valueOf ) . orElse ( TLE ) ;
}

public static String process ( TestCase testCase ) { final int N = testCase . N ; final int T = testCase . T ; final List < Integer > c = testCase . c ; final List < Integer > t = testCase . t ; Optional < Integer > minCost = Optional . empty ( ) ; for ( int i = 0 ; i < N ; ++ i ) { final int cost = c . get ( i ) ; final int time = t . get ( i ) ; if ( time <= T ) { if ( minCost . isPresent ( ) ) { minCost = minCost . map ( curr -> Math . min ( curr , cost ) ) ; } else { minCost = Optional . of ( cost ) ; } } } return minCost . map ( String :: valueOf ) . orElse ( TLE ) ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration (modifiers) type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration (modifiers) type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration (modifiers) type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration (modifiers) type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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 (modifiers) type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (local_variable_declaration (modifiers) type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))))))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))))) (return_statement (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list (identifier))))))