fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. int n = 6;
  14. int c = 100;
  15. Random rand = new Random(System.currentTimeMillis());
  16. List<Detail> res1 = new ArrayList<>();
  17. List<Detail> res2 = new ArrayList<>();
  18. List<Detail> res3 = new ArrayList<>();
  19. List<Detail> res4 = new ArrayList<>();
  20. PrintStream pbout = new PrintStream(bout);
  21. PrintStream out = null;
  22. for (int i = 0; i < 200001; i++) {
  23. int s = rand.nextInt(Integer.MAX_VALUE);
  24. while (s == 0) s = rand.nextInt(Integer.MAX_VALUE);
  25. if (i < 30) {
  26. out = pbout;
  27. out.println("-----------------------------------");
  28. out.println("[" + i + "] seed = " + s);
  29. } else {
  30. out = null;
  31. }
  32. res1.add(show(n, gen1(n, c, s), out));
  33. res2.add(show(n, gen2(n, c, s), out));
  34. res3.add(show(n, gen3(n, c, s), out));
  35. res4.add(show(n, gen4(n, c, s), out));
  36. }
  37.  
  38. out = System.out;
  39. for (int p = 0; p < 6; p++) {
  40. out.println("-----------------------------------");
  41. switch (p) {
  42. case 0: out.println("min"); break;
  43. case 1: out.println("max"); break;
  44. case 2: out.println("mean"); break;
  45. case 3: out.println("med"); break;
  46. case 4: out.println("std"); break;
  47. case 5: out.println("gap"); break;
  48. }
  49. out.println(analyze(res1, p));
  50. out.println(analyze(res2, p));
  51. out.println(analyze(res3, p));
  52. out.println(analyze(res4, p));
  53. }
  54. out.println(bout);
  55. }
  56.  
  57. static class Detail {
  58. int min, max, mean, med, std, gap;
  59. int get(int i) {
  60. switch (i) {
  61. case 0: return min;
  62. case 1: return max;
  63. case 2: return mean;
  64. case 3: return med;
  65. case 4: return std;
  66. case 5: return gap;
  67. default: return 0;
  68. }
  69. }
  70. }
  71.  
  72. static String analyze(List<Detail> xs, int p) {
  73. int sum = 0;
  74. int[] sorted = new int[xs.size()];
  75. for (int i = 0; i < xs.size(); i++) {
  76. int v = xs.get(i).get(p);
  77. sorted[i] = v;
  78. sum += v;
  79. }
  80. Arrays.sort(sorted);
  81. int min = sorted[0];
  82. int max = sorted[sorted.length-1];
  83. int avg = sum / xs.size();
  84. int med = sorted[sorted.length/2];
  85. int gap = max - min;
  86. int std = 0;
  87. for (int v : sorted) {
  88. int d = (v * sorted.length - sum) / sorted.length;
  89. std += d * d;
  90. }
  91. std = (int)Math.sqrt((double)std / (double)sorted.length);
  92. return String.format("min %4d, max %4d, mean %4d, med %4d, std %4d, gap %4d",
  93. min, max, avg, med, std, gap);
  94. }
  95.  
  96. static Detail show(int n, int[] xs, PrintStream out) {
  97. int sum = 0;
  98. List<Integer> ys = new ArrayList<>();
  99. for (int i = 0; i < n; i++) {
  100. for (int j = i+1; j < n; j++) {
  101. int x = i * n + j;
  102. if (out != null) {
  103. if (x > 1) out.print(" ");
  104. out.printf("%4d", xs[x]);
  105. }
  106. sum += xs[x];
  107. ys.add(xs[x]);
  108. }
  109. }
  110. if (out != null) out.println();
  111. Collections.sort(ys);
  112. int avg = sum / ys.size();
  113. int sd = 0;
  114. for (int y : ys) {
  115. int d = (y * ys.size() - sum) / ys.size();
  116. sd += d * d;
  117. }
  118. sd = (int)Math.sqrt((double)sd / (double)ys.size());
  119. Detail dt = new Detail();
  120. dt.min = ys.get(0);
  121. dt.max = ys.get(ys.size()-1);
  122. dt.mean = avg;
  123. dt.med = ys.get(ys.size()/2);
  124. dt.std = sd;
  125. dt.gap = dt.max - dt.min;
  126. if (out != null)
  127. out.printf("min %4d, max %4d, mean %4d, med %4d, std %3d, gap %4d%n",
  128. dt.min, dt.max, dt.mean, dt.med, dt.std, dt.gap
  129. );
  130. return dt;
  131. }
  132.  
  133. static int[] gen1(int n, int c, int s) {
  134. Random rand = new Random(s);
  135. int[] ret = new int[n * n];
  136. for (int i = 0; i < c; i++) {
  137. int a = rand.nextInt(n);
  138. int b = rand.nextInt(n);
  139. while (a == b) {
  140. b = rand.nextInt(n);
  141. }
  142. int x = Math.min(a * n + b, b * n + a);
  143. ret[x]++;
  144. }
  145. return ret;
  146. }
  147.  
  148. static int[] gen2(int n, int c, int s) {
  149. Random rand = new Random(s);
  150. int[] ret = new int[n * n];
  151. for (int i = 0; i < c; i++) {
  152. int a = rand.nextInt(n);
  153. int b = a + rand.nextInt(n-1) + 1;
  154. if (b >= n) { b -= n; }
  155.  
  156. int x = Math.min(a * n + b, b * n + a);
  157. ret[x]++;
  158. }
  159. return ret;
  160. }
  161.  
  162. static int[] gen3(int n, int c, int s) {
  163. Random rand = new Random(s);
  164. int[] ret = new int[n * n];
  165. for (int i = 0; i < c; i++) {
  166. int a = rand.nextInt(n-1);
  167. int b = a + 1 + rand.nextInt(n-a-1);
  168. int x = Math.min(a * n + b, b * n + a);
  169. ret[x]++;
  170. }
  171. return ret;
  172. }
  173.  
  174. static int[] gen4(int n, int c, int s) {
  175. Random rand = new Random(s);
  176. int[] ret = new int[n * n];
  177. List<Integer> ps = new ArrayList<>(n);
  178. for (int i = 0; i < n; i++) ps.add(i);
  179. Collections.shuffle(ps, rand);
  180. int j = 0;
  181. for (int i = 0; i < c; i++) {
  182. int a = ps.get(j);
  183. int b = ps.get(j + 1);
  184. int x = Math.min(a * n + b, b * n + a);
  185. ret[x]++;
  186. j += 2;
  187. if (j + 1 >= ps.size()) {
  188. j = 0;
  189. Collections.shuffle(ps, rand);
  190. }
  191. }
  192. return ret;
  193. }
  194. }
Success #stdin #stdout 3.76s 2184192KB
stdin
Standard input is empty
stdout
-----------------------------------
min
min    0, max    6, mean    2, med    3, std    0, gap    6
min    0, max    6, mean    2, med    3, std    0, gap    6
min    0, max    5, mean    1, med    2, std    0, gap    5
min    0, max    6, mean    2, med    3, std    0, gap    6
-----------------------------------
max
min    8, max   22, mean   11, med   11, std    1, gap   14
min    8, max   22, mean   11, med   11, std    1, gap   14
min    9, max   40, mean   20, med   20, std    3, gap   31
min    7, max   20, mean   10, med   11, std    1, gap   13
-----------------------------------
mean
min    6, max    6, mean    6, med    6, std    0, gap    0
min    6, max    6, mean    6, med    6, std    0, gap    0
min    6, max    6, mean    6, med    6, std    0, gap    0
min    6, max    6, mean    6, med    6, std    0, gap    0
-----------------------------------
med
min    4, max    9, mean    6, med    7, std    0, gap    5
min    4, max    9, mean    6, med    7, std    0, gap    5
min    3, max    9, mean    5, med    5, std    0, gap    6
min    4, max    9, mean    6, med    7, std    0, gap    5
-----------------------------------
std
min    0, max    4, mean    1, med    2, std    0, gap    4
min    0, max    4, mean    1, med    2, std    0, gap    4
min    1, max    8, mean    3, med    4, std    0, gap    7
min    0, max    4, mean    1, med    1, std    0, gap    4
-----------------------------------
gap
min    2, max   22, mean    8, med    9, std    1, gap   20
min    2, max   21, mean    8, med    9, std    1, gap   19
min    5, max   40, mean   18, med   18, std    3, gap   35
min    1, max   19, mean    7, med    8, std    1, gap   18
-----------------------------------
[0] seed = 1774890034
   6    6    4    4    6    2    3    6   10   12    6   10    6   10    9
min    2, max   12, mean    6, med    6, std   2, gap   10
   8    7   11    3    6    4    5    3   11    6    5    5    7   14    5
min    3, max   14, mean    6, med    6, std   2, gap   11
   6    6    5    7    1    3    5    8    6    6    9    6   10   11   11
min    1, max   11, mean    6, med    6, std   2, gap   10
   4    6    8    6    9    9    7    8    5    6    8    5    4    8    7
min    4, max    9, mean    6, med    7, std   1, gap    5
-----------------------------------
[1] seed = 583258691
   4   11    7   12    4    5    7    9    5    1    4   11    7    7    6
min    1, max   12, mean    6, med    7, std   2, gap   11
   9    9    3    8    8    4    2   12    7    7    8    7    5    6    5
min    2, max   12, mean    6, med    7, std   2, gap   10
   4    3    5    2    1    7    8    7    5    3    5    3    9   16   22
min    1, max   22, mean    6, med    5, std   5, gap   21
   6    6    9    7    5   11    4    9    3    5    4    7    5   10    9
min    3, max   11, mean    6, med    6, std   1, gap    8
-----------------------------------
[2] seed = 346903087
   7    6   12    4    4    6    7    6    6   10    7   11    3    4    7
min    3, max   12, mean    6, med    6, std   2, gap    9
   2    5    5    8    9   11    7   10    2   12    8    5    4    4    8
min    2, max   12, mean    6, med    7, std   2, gap   10
   3    0    1    1    2   11    5    9    7    5    8    8    5   11   24
min    0, max   24, mean    6, med    5, std   5, gap   24
   6    8    5    5    9    8    8    3    8    4   10    3    9    8    6
min    3, max   10, mean    6, med    8, std   1, gap    7
-----------------------------------
[3] seed = 344733395
   5    5    4    4    9    6    6    8    6   10    8   11    5    8    5
min    4, max   11, mean    6, med    6, std   1, gap    7
   3    5    4    1   10    9   10    5    8    7   10   10    9    5    4
min    1, max   10, mean    6, med    7, std   2, gap    9
   3    4    2    3    7    4    3    7    4    5    7    9   11    9   22
min    2, max   22, mean    6, med    5, std   4, gap   20
  10    5    8    4    6    7    4    7    5    7    5    9    9    5    9
min    4, max   10, mean    6, med    7, std   1, gap    6
-----------------------------------
[4] seed = 695425582
   5    6    5    7    4    4    4   12    5    8    6    9    7   10    8
min    4, max   12, mean    6, med    6, std   1, gap    8
   8    8    3   11    4    5    2    7    7    7    6    5    9    9    9
min    2, max   11, mean    6, med    7, std   2, gap    9
   5    6    4    3    4    2    8    5    5    8    8    4   10   10   18
min    2, max   18, mean    6, med    5, std   3, gap   16
   7    3   13    6    5   12    4    4    6    6    7    5    5    6   11
min    3, max   13, mean    6, med    6, std   2, gap   10
-----------------------------------
[5] seed = 1627778295
   9    4    7    6    5    6    4   11    6    8    7    4    7    8    8
min    4, max   11, mean    6, med    7, std   1, gap    7
   4    8    3    5    9    7    9    8    7    4    7   10    4    6    9
min    3, max   10, mean    6, med    7, std   1, gap    7
   3    4    6   10    5    6    7    3    8    5    7    2    7    7   20
min    2, max   20, mean    6, med    6, std   3, gap   18
   5    5    5   10    9    5    8    7    8    8    7    8    6    6    3
min    3, max   10, mean    6, med    7, std   1, gap    7
-----------------------------------
[6] seed = 1697298036
   7    7    6    6    4    7   13    5    5   11    3    6    8    9    3
min    3, max   13, mean    6, med    6, std   2, gap   10
   6    9    6    7    8    4   11    3    6   11    5    5    7    7    5
min    3, max   11, mean    6, med    6, std   1, gap    8
   5    1    3    5    3    8    4    5    7   11    9    5   12    8   14
min    1, max   14, mean    6, med    5, std   3, gap   13
   6    8    4    6    9    5    8    5    9    8    8    5    9    5    5
min    4, max    9, mean    6, med    6, std   1, gap    5
-----------------------------------
[7] seed = 1794059861
   3    5    8    5    8    7    9    5    8    8    7    8    7    8    4
min    3, max    9, mean    6, med    7, std   1, gap    6
   4    5    7   10    5    9    7    1    7   12    9    7    5    6    6
min    1, max   12, mean    6, med    7, std   2, gap   11
   6    4    5    4    4    6    3    3    5    5    4    3   15   16   17
min    3, max   17, mean    6, med    5, std   4, gap   14
   6    7    9    6    5    5   10    7    5    6    6   10    5    4    9
min    4, max   10, mean    6, med    6, std   1, gap    6
-----------------------------------
[8] seed = 1253152687
  12    9    4    6    8    4    8    9    3    7    5    3    9    3   10
min    3, max   12, mean    6, med    7, std   2, gap    9
   7    9    8   11    6    8    2   11    3    8    5    6    6    6    4
min    2, max   11, mean    6, med    6, std   2, gap    9
   3    5    8    1    4    8    4    7    8    9    5    2   11   10   15
min    1, max   15, mean    6, med    7, std   3, gap   14
   5    5   10    7    6    4    8    8    9    5   11    9    4    6    3
min    3, max   11, mean    6, med    6, std   1, gap    8
-----------------------------------
[9] seed = 1937304568
   9    5    7    4    6    5    8   13    7    9    9    7    2    2    7
min    2, max   13, mean    6, med    7, std   2, gap   11
   8    6    7    7    3    5   12    8    5    4    9    9    5    7    5
min    3, max   12, mean    6, med    7, std   1, gap    9
   6    3    7    6    3    5    5    3    5    4    6    8   10   13   16
min    3, max   16, mean    6, med    6, std   3, gap   13
   6   14    4    3    7    3   12    4    8    5    6    5    9    3   11
min    3, max   14, mean    6, med    6, std   2, gap   11
-----------------------------------
[10] seed = 555665098
   3   13    4    4    9    7    9    7    9    7    4    7    6    4    7
min    3, max   13, mean    6, med    7, std   2, gap   10
   4   10   10    6    7    6    3    3    7   10    5    6    6    8    9
min    3, max   10, mean    6, med    6, std   1, gap    7
   6    3    3    3    3    4    3    6    6   11    8    6    5   10   23
min    3, max   23, mean    6, med    6, std   4, gap   20
   9    8    5    7    4    4    7    6    8    6    7    8    7    8    6
min    4, max    9, mean    6, med    7, std   1, gap    5
-----------------------------------
[11] seed = 1340280183
   6    4    7    4    4    9   13    7    3    4    7   10    5    9    8
min    3, max   13, mean    6, med    7, std   2, gap   10
   4    2    7    8   11    6    7    3    9    8    7    6    6    7    9
min    2, max   11, mean    6, med    7, std   1, gap    9
   0    5    3    4    5    5    3    3    5   11    7   11    8    9   21
min    0, max   21, mean    6, med    5, std   4, gap   21
   7   10    8    4    5    8    6    8    4    2    2   12   12    5    7
min    2, max   12, mean    6, med    7, std   2, gap   10
-----------------------------------
[12] seed = 1376687124
   8    5    9    4    7   10    6    9    6    6    4    3   10    9    4
min    3, max   10, mean    6, med    6, std   1, gap    7
   7    4    8    5    9   10    7    9    4    5    6    5    6   11    4
min    4, max   11, mean    6, med    6, std   1, gap    7
   3    5    8    3    4    4    3    3    7    7    6    7   15   11   14
min    3, max   15, mean    6, med    6, std   3, gap   12
   6    5    7    7    8    9    7    7    5    9    6    4    4    6   10
min    4, max   10, mean    6, med    7, std   1, gap    6
-----------------------------------
[13] seed = 1043319239
   8    6    6    3    8    6    5   10    4   11    6    5    8    8    6
min    3, max   11, mean    6, med    6, std   1, gap    8
   4    9    6    3    8    8    8    8   12    3    6    5    9    3    8
min    3, max   12, mean    6, med    8, std   2, gap    9
   5    3    2    2    6    7    4    6   10    8    2    5   16    7   17
min    2, max   17, mean    6, med    6, std   4, gap   15
   9    8    7    6    4    4    5    6    9    7    4   10   11    4    6
min    4, max   11, mean    6, med    6, std   1, gap    7
-----------------------------------
[14] seed = 1169587380
   7    1    3    7    7    8    9    8    5    6    4   10    8   11    6
min    1, max   11, mean    6, med    7, std   2, gap   10
   8    8    4    8    3    7    6    5   10    4    4    8    6   12    7
min    3, max   12, mean    6, med    7, std   2, gap    9
   2    6    1    2    3    8   11    5    3    9    8    1    4   19   18
min    1, max   19, mean    6, med    5, std   5, gap   18
   4   10    5   10    4    7    9    6    7    5    6    6    4   10    7
min    4, max   10, mean    6, med    6, std   1, gap    6
-----------------------------------
[15] seed = 885086627
   6    1   10   12    8    9    7    5    4   11    8    3    5    9    2
min    1, max   12, mean    6, med    7, std   2, gap   11
   7   11    6    4    5    9    9    6    9    7    5    5    8    5    4
min    4, max   11, mean    6, med    6, std   1, gap    7
   3    5    2    4    5    4    3   12    3    7    6    3   19   11   13
min    2, max   19, mean    6, med    5, std   4, gap   17
   8    6    4    5   10    6    5    8    7    7    6    8   12    6    2
min    2, max   12, mean    6, med    6, std   1, gap   10
-----------------------------------
[16] seed = 1061720702
  10    4    8    2   14    7    4    2    7    5    9    4    6    5   13
min    2, max   14, mean    6, med    6, std   3, gap   12
   8    8    8    7    7    2    4    5    7    5    7    8    9   11    4
min    2, max   11, mean    6, med    7, std   1, gap    9
   4    9    5    7    1    6    7    1    2    5    9    6   17   12    9
min    1, max   17, mean    6, med    6, std   3, gap   16
   9    5    7    6    6    7    5    9    4    4    6   11    9    8    4
min    4, max   11, mean    6, med    6, std   1, gap    7
-----------------------------------
[17] seed = 1552293894
   6    9    5   10   10    6    3    2    5    8    8    6    8    6    8
min    2, max   10, mean    6, med    6, std   1, gap    8
   7    6    6    8   11    5    8    6    5    5    9    8    5    6    5
min    5, max   11, mean    6, med    6, std   1, gap    6
   3    3    5   10    5    6    5    5    0    6    5    7   13    6   21
min    0, max   21, mean    6, med    5, std   4, gap   21
   4    5   10    7    8   11    6    9    3    2    9    6    4   11    5
min    2, max   11, mean    6, med    6, std   2, gap    9
-----------------------------------
[18] seed = 903176795
   8   12    4    8   10    7    8    9    6    5    3    7    7    3    3
min    3, max   12, mean    6, med    7, std   2, gap    9
   9   12    4   11    8    3    4    6   13    7    5    6    5    4    3
min    3, max   13, mean    6, med    6, std   2, gap   10
   2    7    4    3    1    3    5    9    3    7    8   10    7    7   24
min    1, max   24, mean    6, med    7, std   5, gap   23
   5    5    9    8    7    7    9    6    6    5    7    9    5    5    7
min    5, max    9, mean    6, med    7, std   1, gap    4
-----------------------------------
[19] seed = 715137765
   8   11    7    4    9    7    9    3    7    7    6    5    7    4    6
min    3, max   11, mean    6, med    7, std   1, gap    8
   8   11    6    7    5    7    7    5    7   12    5    4    5    5    6
min    4, max   12, mean    6, med    6, std   1, gap    8
   6    4    4    5    6    2    5    7    2    8    5    6    6   14   20
min    2, max   20, mean    6, med    6, std   4, gap   18
   9    3    4   10    7    4   12    3    6    7   12    7    3    8    5
min    3, max   12, mean    6, med    7, std   2, gap    9
-----------------------------------
[20] seed = 263295645
   7    7    7    6    5    3    3   11    7    9    1    7   10   10    7
min    1, max   11, mean    6, med    7, std   2, gap   10
  12    6    5   10    7    7    9    2    5    5    5    7    4    6   10
min    2, max   12, mean    6, med    6, std   2, gap   10
   1    2    4    4    6    4    8    4    6    6    4    8   14    6   23
min    1, max   23, mean    6, med    6, std   4, gap   22
   6    6    8    3   11    8    6    8    5    6    9    5    7    6    6
min    3, max   11, mean    6, med    6, std   1, gap    8
-----------------------------------
[21] seed = 1823651041
   3    4    8    4    4    8    9    6    7    5    7   11    9    5   10
min    3, max   11, mean    6, med    7, std   1, gap    8
   6    7    3    9    7    8    5    7    8    4    2    8    8    7   11
min    2, max   11, mean    6, med    7, std   1, gap    9
   7    2    5    4    3    5    1    5    9    8    5    4    8   12   22
min    1, max   22, mean    6, med    5, std   4, gap   21
   4    4    9    6   11    7    9    9    4    8    9    5    2    5    8
min    2, max   11, mean    6, med    7, std   2, gap    9
-----------------------------------
[22] seed = 1547764909
   6    6    9    5    4    6    5    4   11    5    6   12    5    9    7
min    4, max   12, mean    6, med    6, std   2, gap    8
   6    1    6    6    7    4   10    8   10   14    5    8    5    3    7
min    1, max   14, mean    6, med    6, std   2, gap   13
   3    3    2    3    6    5    4    3    6    8    4    8   12   14   19
min    2, max   19, mean    6, med    5, std   4, gap   17
   4    9   10    5    6    9    6    8    6    3    7    6    6    8    7
min    3, max   10, mean    6, med    6, std   1, gap    7
-----------------------------------
[23] seed = 716449891
   9    8    7    6    4    3    3    7    7   10    6    3   14    9    4
min    3, max   14, mean    6, med    7, std   2, gap   11
   5    7    6   11    6    3    6    9    4    4    5    9    8   10    7
min    3, max   11, mean    6, med    6, std   1, gap    8
   9    7    8    4    5    2    4    2    4    8    6    6    8   14   13
min    2, max   14, mean    6, med    6, std   3, gap   12
   3    8    9    8    5    5    6    9   10    9    4    8    6    4    6
min    3, max   10, mean    6, med    6, std   1, gap    7
-----------------------------------
[24] seed = 691434664
   6    8    7    3    4    7    3   11    9    7    9    3   10    8    5
min    3, max   11, mean    6, med    7, std   2, gap    8
   8    4    7    5    7    8    6    9    5    4    7   10    8    5    7
min    4, max   10, mean    6, med    7, std   1, gap    6
   5    3    7    2    3    9    2    2    6   12    6    5   10   11   17
min    2, max   17, mean    6, med    6, std   3, gap   15
   6    7    9    7    5    7    5    5   10    5    7    8    9    5    5
min    5, max   10, mean    6, med    7, std   1, gap    5
-----------------------------------
[25] seed = 188036375
  10    6    5    6    8    6    7    9    7    3    5   12    3   10    3
min    3, max   12, mean    6, med    6, std   2, gap    9
   6    7    4    8    6    7    8    8    8    5    4    8    7    6    8
min    4, max    8, mean    6, med    7, std   1, gap    4
   5    3    3    6    4    3    1    4    4    7    7   11    4   11   27
min    1, max   27, mean    6, med    4, std   5, gap   26
   9    2    6   11    5    7    6    3    8    9    5   10    8    5    6
min    2, max   11, mean    6, med    6, std   2, gap    9
-----------------------------------
[26] seed = 2075534754
  10    6    3    4    8    9    5    8    4   11    4    4    6   13    5
min    3, max   13, mean    6, med    6, std   2, gap   10
   9    8    6    4    4    9    3    2    9   13    2    5   11    9    6
min    2, max   13, mean    6, med    6, std   2, gap   11
   9    1    2    3    3    7    5    4    4    5   12    6   11   10   18
min    1, max   18, mean    6, med    5, std   4, gap   17
   4    7    7    6   10    5   12    3    9    4   12    5    6    4    6
min    3, max   12, mean    6, med    6, std   2, gap    9
-----------------------------------
[27] seed = 1263962745
  11   10    7    5    8    5    8    5    7    4    2   10    8    8    2
min    2, max   11, mean    6, med    7, std   2, gap    9
   8    9    8    7    9    9    6    3    5    5    6    3   13    8    1
min    1, max   13, mean    6, med    7, std   2, gap   12
   4    3    3    5    5    5    6   10    6    5    4    6   11   12   15
min    3, max   15, mean    6, med    5, std   3, gap   12
   8    8    5    4    8    4    6    8    8    7    9    5    8    7    5
min    4, max    9, mean    6, med    7, std   1, gap    5
-----------------------------------
[28] seed = 1204234854
   6    5   13    6   12    5    6    8   10    4    5    1    7    9    3
min    1, max   13, mean    6, med    6, std   2, gap   12
   5    5    8    7    7    2    8    7    9    9    6    3   10    9    5
min    2, max   10, mean    6, med    7, std   1, gap    8
   1    4    3    6    4    9    2    6    1    3    5   10   11   13   22
min    1, max   22, mean    6, med    5, std   5, gap   21
   6    6    8    7    6   11    7    5    4    0    8    9    9    9    5
min    0, max   11, mean    6, med    7, std   2, gap   11
-----------------------------------
[29] seed = 1558267049
   6   11    8    7    6    4    7    7    4    6    7    4    7   11    5
min    4, max   11, mean    6, med    7, std   1, gap    7
  10    7    6    8   11    7    5    4    7    7    5    4    2   12    5
min    2, max   12, mean    6, med    7, std   2, gap   10
   4    4    3    6    2    6    3    4    2    5    9    8   11    9   24
min    2, max   24, mean    6, med    5, std   5, gap   22
   6   10    8    3    7    7    5   10    6    6    6    4    6    8    8
min    3, max   10, mean    6, med    6, std   1, gap    7