ACM从零开始---电子科大POJ "孤单整数"

   孤单整数


Time Limit: 3000/1000MS (Java/Others)     Memory Limit: 65535/65535KB (Java/Others)




C-sources:

#include

int main()
{
    int num,pa,temp,test=0;
    printf("Please input the value of num:\n");
    scanf("%d",&num);

    pa=num/2;

    int *array=NULL;
    array=(int*)malloc(num*sizeof(int));

    printf("Please input the array:\n");
    int i,j,k=0;
    for(i=0;i


转载请注明作者:小刘

你可能感兴趣的:(算法,ACM)