PAT1049 数列的片段和 (20分)(C语言)Sample InputSample Output
Sample Input40.1 0.2 0.3 0.4Sample Output5.00思路: 考虑每一位的数出现的次数。代码#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; double a[100005]; for(i=0;i<n;i++){ scanf("%...