In order to pass the course you have to obtain a passing grade on all four problem sets and have submitted them in time for the deadline. In order to pass the course with distinction you must in addition obtain as passing grade on two of the VG exercises and have submitted them in time for the deadline.
In special cases we may provide additional exercises if you do not obtain a passing grade the first time you submit an exercise. This option will not be available for VG exercises.