提莫攻击(力扣

int findPoisonedDuration(int* timeSeries, int timeSeriesSize, int duration) {
    int ret=0;
    for(int i=1;i duration ? duration : temp;
    }

    return ret+=duration;
}

你可能感兴趣的:(leetcode,算法,c++)