Referral Credit Tracker

Implement a Referral Credit Tracker that processes operations in order and maintains each account's cumulative credit.

The first input line specifies the mode:

  • DIRECT: only the direct referrer r...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: