"The percent of whole income that i-th friend will get is equal to the part of his unique stamp's type."
I think I'm not interpreting it correctly. Also what happens when a person has more than one of the same type of stamps, even though that type is unique?
baodog wrote:I simply ignore all duplicates, but I get wa.
Is that the correct interpretation?
That's not correct. For example if I own 8 stamps of type=5, but other peoples doesn't have type=5, then I own uniquely type=5, so it means 1 to my whole income ( so not 8, not 0 ).
Thanks Robert!!
I get ac after small change. Yes "unique" means unique to
to the group. You can have alot of stamps of the same type and if you
are the only one who has it... it is "unique".
baodog wrote:Thanks Robert!!
I get ac after small change. Yes "unique" means unique to
to the group. You can have alot of stamps of the same type and if you
are the only one who has it... it is "unique".
I'll clarify my statement:
By ignoring duplicate, I mean that you treat the stamps that each person owns as a set, meaning only the types matters.
I'm an amateur programmer.. I start to study programming about 4 months ago.. and I studied java..
1
3
3 1 2 3
2 4 5
3 4 2 6
my idea is, I want to save the number of stamp fof each player first, after that compare it each other.. but I dunno how to start..
Is there someone who can give me some advice about this problem..
thank in advanced