我有一个清单:
int list = { 1,1,2,3,4,4,5,7,7,7,10};
现在我需要制作一个计算双数的程序.当前面的数字相同时,数字是两倍.我希望你明白.因此1是双倍,4是双打,我们在7,7,7中得到2双.
c# list
c# ×1
list ×1