Skip to content

Commit

Permalink
fix: refine string5 problem
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 12, 2024
1 parent 944f4e8 commit 2344efa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/problems/problemData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2792,15 +2792,15 @@ public class Main {
}
static void parse(Turtle t, String c, int x) {
if (c.equals("fo"))
forwardGivenSteps(t, x); // caller
N歩前に進める(t, x); // caller
else if (c.equals("ri"))
t.turnRight(); // sid
t.右を向く(); // sid
else if (c.equals("le"))
t.turnLeft(); // sid
t.左を向く(); // sid
}
static void forwardGivenSteps(Turtle t, int n) {
static void N歩前に進める(Turtle t, int n) {
for (int i = 0; i < n; i++) { // sid
t.forward(); // sid
t.前に進む(); // sid
}
}
}
Expand Down

0 comments on commit 2344efa

Please sign in to comment.