Skip to content

Commit

Permalink
Solve Optical Reader in c
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Sep 30, 2024
1 parent f811d6b commit 7f3d3fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion solutions/beecrowd/1129/1129.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ int main() {
if (c != 1) {
puts("*");
} else {
printf("%c\n", l[r]);
// buggy code was printing non readable characters
if (r == 0) {
printf("A\n");
} else if (r == 1) {
printf("B\n");
} else {
printf("%c\n", l[r]);
}
}
}
}
Expand Down
Empty file removed solutions/beecrowd/1129/WRONG
Empty file.

0 comments on commit 7f3d3fe

Please sign in to comment.