Torna als inputs del puzzles originals
This commit is contained in:
@@ -20,7 +20,7 @@ int main(void) {
|
|||||||
|
|
||||||
printf("DIAL starts at %d\n", dial);
|
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);
|
printf("DIRECTION %s ROTATION %d\n", direction, rotation);
|
||||||
|
|
||||||
if (strcmp(direction, "L") == 0) {
|
if (strcmp(direction, "L") == 0) {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ int main(void) {
|
|||||||
|
|
||||||
printf("DIAL starts at %d\n", drp[0]);
|
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]);
|
printf("DIRECTION %s ROTATION %d\n", direction, drp[1]);
|
||||||
|
|
||||||
if (strcmp(direction, "L") == 0) {
|
if (strcmp(direction, "L") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user