Torna als inputs del puzzles originals

This commit is contained in:
JailWebmaster committed 2025-12-08 16:43:33 +01:00
1 parent b92350f86d
commit 22d1e5a740
2 files changed
+2 -2

No files matched your search

+1 -1
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) {
+1 -1
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) {