vishwaCTF 2021: Good Driver Bad Driver

Good Driver Bad Driver

Category: General

496 points

We are starting a new service company providing on-rent good drivers, by the name BBDrivers. We already have 3600 drivers that we have classified as Good=0, Average=1 or Bad=2 and also have their scores on particular tests. We have received 400 more applications for drivers, but reviewing them will be a loss of time and money. Can you please let me know what kind of drivers these guys are? I’ll even give you the old driver’s data in case you need it.

Test your results here (Follow instructions shown on the website) : Enter the results only in a string as mentioned on the website. You will get a flag only if you have an accuracy of 1.0 in predicting the classes.

Designer :

files: drivertestunlabeled.csv, drivertrainlabeled.csv


Ok, we got two csv files. One with labeled data and second with unlabeled (which needs to be labeled in accurate way).


My first thought was to use scikit-learn, but after initial examination of provided data I decided to first try the easy way.

import csv

with open('drivertestunlabeled.csv', newline='') as csvfile:
    csvreader = csv.reader(csvfile, delimiter=',', quotechar='|')
    next(csvreader, None)
    for row in csvreader:
        if float(row[0]) > 100 and float(row[1]) < 30:
            print('0', end='')
        elif float(row[0]) > 100 and float(row[1]) > 30:
            print('2', end='')
            print('1', end='')

I got below as an output.


And it was enough to get the flag ;-)




Privacy Policy
luc © 2021