3 import java
.io
.FileReader
;
4 import java
.util
.Scanner
;
12 public static void main(String
[] args
) throws Exception
14 Scanner sc
= new Scanner(new FileReader("00-prices.txt"));
16 String id
, loc
, bestId
= "";
18 int price
, extras
, nextCost
;
19 int bestCost
= Integer
.MAX_VALUE
;
26 extras
= sc
.nextInt();
28 if(loc
.contains("Nullarbor"))
31 nextCost
= price
+ extras
- Math
.min(extras
, 500);
33 if(nextCost
< bestCost
)
40 System
.out
.println("Nullarbor holidays " + nullarbor
);
41 System
.out
.println("Best price holiday " + bestCost
+ " id " + bestId
);