At the time attack menu, choose the records option. Then choose Ruby Cup. Then hold L and press R, A, Z, A, C-up, C-Left, A, C-Down, R, Z. You will then be taken to the password screen.
Go to Time Attack, choose Records, then choose Emerald Cup
now hold R and press Z, A, C-Down, L, C-Left, A, Z, C-Left, L, A
Go to Time Attack, and choose records. Go to Sapphire Cup and highlight your best score.