Binge-Watching
Statement
Goal
We have given you a list of movies to watch but you don't want to waste time watching movies rated below 6/10!You have to choose which movies you are going to watch and rank them according to their ratings.
Input
Line 1 : The number of movies in the list
N next lines : A string with the title of the movie and his rating
N next lines : A string with the title of the movie and his rating
Output
List of movies titles rated >= 6/10
Constraints
If two movies have the same rating, you need to range them in the same order of the original list.
Example
Input
3 Destination finale 2 (6.2/10) The Fighting Temptations (5.6/10) Le monde de Nemo (8.1/10)
Output
Le monde de Nemo Destination finale 2
Game modes
Fastest, Shortest, Reverse
Test cases
Easy Test
Input
3
Destination finale 2 (6.2/10)
The Fighting Temptations (5.6/10)
Le monde de Nemo (8.1/10)
Output
Le monde de Nemo
Destination finale 2
Validator 1 Validator
Input
5
Test 1 (3.5/10)
Test 2 (4.3/10)
Test 3 (6.4/10)
Test 4 (8.8/10)
Test 5 (9.9/10)
Output
Test 5
Test 4
Test 3
Easy 2 Test
Input
7
Elfe (6.9/10)
Un duplex pour 3 (5.9/10)
Dreamcatcher, l'attrape-reves (5.5/10)
Dickie Roberts: Ex-enfant star (5.6/10)
Lune de miel en enfer (5.4/10)
Dark Blue (6.6/10)
Daredevil (5.3/10)
Output
Elfe
Dark Blue
Validator 2 Validator
Input
8
Test 1 (3.5/10)
Test 2 (4.3/10)
Test 3 (6.4/10)
Test 4 (8.8/10)
Test 5 (3.5/10)
Test 6 (4.6/10)
Test 7 (6.8/10)
Test 8 (7.9/10)
Output
Test 4
Test 8
Test 7
Test 3
Check rating parsing Test
Input
2
Ecole paternelle (5.6/10)
Lady Chance (7/10)
Output
Lady Chance
Validator 3 Validator
Input
3
Test 1 (5/10)
Test 2 (4.3/10)
Test 3 (8/10)
Output
Test 3
Check title parsing + order Test
Input
5
Self Control (6/10)
2 Fast 2 Furious (5.9/10)
30 minutes maximum (6/10)
The Simpsons (The movie) (7.3/10)
Destination: Graceland (6/10)
Output
The Simpsons (The movie)
Self Control
30 minutes maximum
Destination: Graceland
Validator 4 Validator
Input
5
Test 1 (5/10)
Test 2 (8.3/10)
Test 3 (6.5/10)
Test 4 (6.5/10)
Test 5 (test) (8/10)
Output
Test 2
Test 5 (test)
Test 3
Test 4
Solution language
Solution
Stub generator input