1 import java
.util
.Scanner
;
2 import java
.util
.Scanner
.*;
3 import java
.io
.FileReader
;
4 import java
.io
.FileReader
.*;
8 public static void main(String
[] args
) throws Exception
10 FileReader f
= new FileReader("00-prices.txt");
11 Scanner sc
= new Scanner(f
);
13 String id
, bestId
= "";
15 int price
, extras
, nextCost
;
16 int bestCost
= Integer
.MAX_VALUE
;
24 String lo
= sc
.next();
26 if(lo
.contains("Nullarbor"))
29 extras
= sc
.nextInt();
31 nextCost
= price
+ extras
;
33 int savings
= Math
.min(extras
, 500);
37 if(nextCost
< bestCost
)
44 System
.out
.println("Nullarbor holidays " + nullarbor
);
45 System
.out
.println("Best price holiday " + bestCost
+ " id " + bestId
);