From 518d98ad5f9eec0cf4124375bdbb84d1296b3f3f Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 4 Jul 2024 17:09:55 +0200 Subject: (almost) added getcube --- test/010_math_permsign/00_solved.in | 8 -------- test/010_math_permsign/00_solved.out | 1 - test/010_math_permsign/01_3cycle.in | 6 ------ test/010_math_permsign/01_3cycle.out | 1 - test/010_math_permsign/02_22swap.in | 13 ------------- test/010_math_permsign/02_22swap.out | 1 - test/010_math_permsign/03_singleswap.in | 7 ------- test/010_math_permsign/03_singleswap.out | 1 - test/010_math_permsign/04_5ycle.in | 11 ----------- test/010_math_permsign/04_5ycle.out | 1 - test/010_math_permsign/05_6ycle.in | 9 --------- test/010_math_permsign/05_6ycle.out | 1 - test/010_math_permsign/permsgn_tests.c | 20 -------------------- 13 files changed, 80 deletions(-) delete mode 100644 test/010_math_permsign/00_solved.in delete mode 100644 test/010_math_permsign/00_solved.out delete mode 100644 test/010_math_permsign/01_3cycle.in delete mode 100644 test/010_math_permsign/01_3cycle.out delete mode 100644 test/010_math_permsign/02_22swap.in delete mode 100644 test/010_math_permsign/02_22swap.out delete mode 100644 test/010_math_permsign/03_singleswap.in delete mode 100644 test/010_math_permsign/03_singleswap.out delete mode 100644 test/010_math_permsign/04_5ycle.in delete mode 100644 test/010_math_permsign/04_5ycle.out delete mode 100644 test/010_math_permsign/05_6ycle.in delete mode 100644 test/010_math_permsign/05_6ycle.out delete mode 100644 test/010_math_permsign/permsgn_tests.c (limited to 'test/010_math_permsign') diff --git a/test/010_math_permsign/00_solved.in b/test/010_math_permsign/00_solved.in deleted file mode 100644 index 54b5db0..0000000 --- a/test/010_math_permsign/00_solved.in +++ /dev/null @@ -1,8 +0,0 @@ -7 -0 -1 -2 -3 -4 -5 -6 diff --git a/test/010_math_permsign/00_solved.out b/test/010_math_permsign/00_solved.out deleted file mode 100644 index 573541a..0000000 --- a/test/010_math_permsign/00_solved.out +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/test/010_math_permsign/01_3cycle.in b/test/010_math_permsign/01_3cycle.in deleted file mode 100644 index bfabfd6..0000000 --- a/test/010_math_permsign/01_3cycle.in +++ /dev/null @@ -1,6 +0,0 @@ -5 -0 -4 -1 -3 -2 diff --git a/test/010_math_permsign/01_3cycle.out b/test/010_math_permsign/01_3cycle.out deleted file mode 100644 index 573541a..0000000 --- a/test/010_math_permsign/01_3cycle.out +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/test/010_math_permsign/02_22swap.in b/test/010_math_permsign/02_22swap.in deleted file mode 100644 index d0b0921..0000000 --- a/test/010_math_permsign/02_22swap.in +++ /dev/null @@ -1,13 +0,0 @@ -12 -0 -1 -8 -3 -5 -4 -6 -7 -2 -9 -10 -11 diff --git a/test/010_math_permsign/02_22swap.out b/test/010_math_permsign/02_22swap.out deleted file mode 100644 index 573541a..0000000 --- a/test/010_math_permsign/02_22swap.out +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/test/010_math_permsign/03_singleswap.in b/test/010_math_permsign/03_singleswap.in deleted file mode 100644 index 42a584b..0000000 --- a/test/010_math_permsign/03_singleswap.in +++ /dev/null @@ -1,7 +0,0 @@ -6 -4 -1 -2 -3 -0 -5 diff --git a/test/010_math_permsign/03_singleswap.out b/test/010_math_permsign/03_singleswap.out deleted file mode 100644 index d00491f..0000000 --- a/test/010_math_permsign/03_singleswap.out +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/test/010_math_permsign/04_5ycle.in b/test/010_math_permsign/04_5ycle.in deleted file mode 100644 index 630f6fa..0000000 --- a/test/010_math_permsign/04_5ycle.in +++ /dev/null @@ -1,11 +0,0 @@ -10 -0 -1 -6 -2 -3 -4 -5 -7 -8 -9 diff --git a/test/010_math_permsign/04_5ycle.out b/test/010_math_permsign/04_5ycle.out deleted file mode 100644 index 573541a..0000000 --- a/test/010_math_permsign/04_5ycle.out +++ /dev/null @@ -1 +0,0 @@ -0 diff --git a/test/010_math_permsign/05_6ycle.in b/test/010_math_permsign/05_6ycle.in deleted file mode 100644 index a226bae..0000000 --- a/test/010_math_permsign/05_6ycle.in +++ /dev/null @@ -1,9 +0,0 @@ -8 -6 -0 -1 -3 -2 -4 -5 -7 diff --git a/test/010_math_permsign/05_6ycle.out b/test/010_math_permsign/05_6ycle.out deleted file mode 100644 index d00491f..0000000 --- a/test/010_math_permsign/05_6ycle.out +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/test/010_math_permsign/permsgn_tests.c b/test/010_math_permsign/permsgn_tests.c deleted file mode 100644 index 04975db..0000000 --- a/test/010_math_permsign/permsgn_tests.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "../test.h" - -int permsign(uint8_t *, int); - -void run(void) { - char str[STRLENMAX]; - uint8_t a[100]; - int n, i, p; - - fgets(str, STRLENMAX, stdin); - n = atoi(str); - - for (i = 0; i < n; i++) { - fgets(str, STRLENMAX, stdin); - a[i] = atoi(str); - } - - p = permsign(a, n); - printf("%d\n", p); -} -- cgit v1.3