poj2636

    技术2024-11-15  18

    #include <stdio.h>

    int main(){int i,j,total,n;int k;int sum=0;

    scanf("%d",&total);for( i=1;i<=total;i++){ scanf("%d",&n); sum = 0; for(j=1;j<=n;j++) { scanf("%d",&k); sum += k; } sum = sum-n+1; printf("%d/n",sum);

     }return 0;}

    最新回复(0)