about summary refs log tree commit diff
path: root/THT/B/QG-2016/trigrid.c
diff options
context:
space:
mode:
Diffstat (limited to 'THT/B/QG-2016/trigrid.c')
-rw-r--r--THT/B/QG-2016/trigrid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/THT/B/QG-2016/trigrid.c b/THT/B/QG-2016/trigrid.c
index 5b8606c..7f5a75f 100644
--- a/THT/B/QG-2016/trigrid.c
+++ b/THT/B/QG-2016/trigrid.c
@@ -1,9 +1,9 @@
 #include <stdio.h>
 
 
-const long long a[] = {4, 3, 5, 6, 111, 222, 3333, 4444, 55555, 666666, 7777777,
-                       88888888, 999999999, 123456789123456789,
-                       1000000000000000000};
+const long long TESTS[] = {4, 3, 5, 6, 111, 222, 3333, 4444, 55555, 666666,
+                           7777777, 88888888, 999999999, 123456789123456789,
+                           1000000000000000000};
 
 long long quadratic(long long x, char a, char b, char c)
 {
@@ -19,8 +19,8 @@ int main()
 	f = fopen("TRIGRID.TXT", "w");
 
 	for (i = 0; i < 15; i++) {
-		q = a[i] % 2016;
-		k = a[i] / 2016 % 2016 * 252 * quadratic(q, 6, 10, 2);
+		q = TESTS[i] % 2016;
+		k = TESTS[i] / 2016 % 2016 * 252 * quadratic(q, 6, 10, 2);
 		fprintf(f, "%d\n", (k + quadratic(q, 2, 5, 2) * q / 8) % 2016);
 	}