chiark / gitweb /
Ahem, typo.
[matchsticks-search.git] / main.c
diff --git a/main.c b/main.c
index f12196103b4e03497fc296aeea3056a3e6136cb1..5850860559113dd0bbd0b1de3de12437ebca167c 100644 (file)
--- a/main.c
+++ b/main.c
@@ -834,7 +834,7 @@ static void report(void) {
         for (j = 0; j < m; j++)
           qsort(ai2+j, n, sizeof(int), compare_ints_1);
         qsort(ai2, m, n*sizeof(int), compare_ints_n);
-        printf("  Reassemble as %d sticks of length %d like this:\n", n, m);
+        printf("  Reassemble as %d sticks of length %d like this:\n", m, n);
         for (j = 0; j < m ;) {
           for (i = 1; i+j < m && compare_ints_n(ai2+j, ai2+j+i) == 0; i++);
           printf("    %d x (", i);