摘要:
问题: Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum i 阅读全文
摘要:
给你n个整数,请按从大到小的顺序输出其中前m大的数。 先看代码: #include<stdio.h>#include<string.h>#define MAX 1100000int a[MAX]; int main(){ int n,m,i,t,k; while(scanf("%d%d",&n,&m 阅读全文