Timus Problem 1263 Solution
#include <stdio.h> double a[10004]; int main() { int i,m,n,l,o; double d=0; scanf("%d %d",&n,&m); l=m; while(m--) { scanf("%d",&o); a[o]++; } for(i=0;i<n;i++) { d=(a[i]/l)*100; printf("%2.2lf%%\n",d); } return 0; }
Chapter 4 Relational Algebra
Relational Algebra The part of mathematics in which letters and other general symbols are used to represent numbers and quantities in formula and equations. Ex: (x + y) · z = (x · z) + (y · z). The main application of relational algebra is providing a theoretical...