-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.txt
95 lines (95 loc) · 1.47 KB
/
input.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Insert(5,50,120)
Insert(4,30,60)
Insert(7,40,90)
Insert(3,20,40)
Insert(1,10,20)
Print(2)
Insert(6,35,70)
Insert(8,45,100)
Print(3)
Print(1,6)
UpdateTrip(6,75)
Insert(10,60,150)
GetNextRide()
CancelRide(5)
UpdateTrip(3,22)
Insert(9,55,110)
GetNextRide()
UpdateTrip(6,95)
Print(6)
Print(5,9)
GetNextRide()
CancelRide(7)
Print(7)
Insert(11,70,170)
GetNextRide()
Insert(12,80,200)
Print(12)
UpdateTrip(11,210)
GetNextRide()
CancelRide(14)
UpdateTrip(12,190)
Insert(13,70,220)
GetNextRide()
Insert(14,100,40)
UpdateTrip(14,100)
CancelRide(12)
Print(11,14)
GetNextRide()
Insert(15,20,35)
Print(14)
Print(10,16)
GetNextRide()
UpdateTrip(13,30)
Print(13)
GetNextRide()
Print(12)
CancelRide(19)
Insert(16,60,45)
Insert(17,70,25)
UpdateTrip(16,60)
GetNextRide()
Print(11)
Print(16,18)
Insert(18,65,130)
Insert(12,40,30)
Insert(8,60,97)
UpdateTrip(16,82)
Insert(20,16,75)
UpdateTrip(18,300)
Print(23)
Print(12,21)
CancelRide(12)
GetNextRide()
CancelRide(25)
Print(20,26)
GetNextRide()
UpdateTrip(16,124)
Insert(7,125,54)
GetNextRide()
Print(16)
Insert(22,80,85)
Insert(15,90,85)
UpdateTrip(22,195)
GetNextRide()
Insert(23,49,46)
Insert(1,56,85)
UpdateTrip(16,300)
GetNextRide()
Print(1,30)
CancelRide(1)
GetNextRide()
GetNextRide()
Insert(24,21,46)
Insert(17,12,37)
GetNextRide()
Print(16)
Insert(24,80,85)
Insert(15,90,85)
CancelRide(28)
UpdateTrip(23,450)
GetNextRide()
Print(24)
Print(22,26)
CancelRide(29)
Print(28)