1
0

Torna als inputs del puzzles originals

This commit is contained in:
2025-12-08 16:43:33 +01:00
parent b92350f86d
commit 22d1e5a740
4 changed files with 8274 additions and 8274 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,7 @@ int main(void) {
printf("DIAL starts at %d\n", dial);
while (fscanf(fptr, "%s %d", direction, &rotation) == 2) {
while (fscanf(fptr, "%1s%d", direction, &rotation) == 2) {
printf("DIRECTION %s ROTATION %d\n", direction, rotation);
if (strcmp(direction, "L") == 0) {

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@ int main(void) {
printf("DIAL starts at %d\n", drp[0]);
while (fscanf(fptr, "%s %d", direction, &drp[1]) == 2) {
while (fscanf(fptr, "%1s%d", direction, &drp[1]) == 2) {
printf("DIRECTION %s ROTATION %d\n", direction, drp[1]);
if (strcmp(direction, "L") == 0) {