Counting Friends

TarifEzaz Criterion 2022 Round 16

For each person, it is required to keep the number of unique interactions. For that, we can use a two dimensional matrix or standard libraries to keep track of the unique interactions for each of the users. Some extra care needs to be taken if same pairs are given more than once.

Statistics

66% Solution Ratio
NirjhorEarliest, 3M ago
EdgedancerFastest, 0.0s
zahidILightest, 131 kB
alamkhanShortest, 273B
Toph uses cookies. By continuing you agree to our Cookie Policy.