A 19-year-old has admitted to causing the death of three teenagers by dangerous driving after inhaling nitrous oxide and travelling at speeds of more than 100mph, a court has heard.