uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

main.c (308B)


      1 #include "kcombinations.h"
      2 
      3 int main(int argc, char **argv)
      4 {
      5     int *arr, N, K, x1, x2, y1, y2;
      6 
      7     N = get_n();
      8     K = get_k(N);
      9 
     10     arr = fill_array(N);
     11     quicksort(arr, 0, N-1);
     12     x_pair(&x1, &x2);
     13     y_pair(&y1, &y2);
     14     print_combs(arr, N, K, x1, x2, y1, y2);
     15 
     16     free(arr);
     17 
     18     return 0;
     19 }