水题一道,废话不多说,直接贴代码#include<stdio.h>#include<string.h>int main(){ int a[ 105],n; int sum,i,j; while( scanf( "%d",&n)&&n!=0){ sum=0; memset( a,-1,sizeof( a)); for( i=0;i<n;i++) scanf( "%d",&a[ i]); sum+=a[ 0]*6+5; for( i=0;i<n&&a[ i+1]!=-1;i+ Read More