//1280 #include #include #include #include int main(){ int n; int m; int c; int i; int j,k; int pd; double pb; int count1=0,count2=0; int a[100000]; int b[100000]; printf("input n,m,c\n"); scanf("%d %d %d",&n,&m,&c); printf("input a[i]\n"); for(i=0;ic){ count1++; } else { count2++; } } } pb=(double)count1/(count1+count2); printf("%lf",pb); system("pause"); }