Skip to content

Commit

Permalink
fix: improve variable4 problem
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Oct 11, 2024
1 parent 05ea7e5 commit 36b4e59
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/problems/problemData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,19 +610,19 @@ public class Main {
},
variable4: {
instrumented: `
s.set('y', <1-4>);
s.set('y', s.get('y') + 1);
s.set('x', s.get('y') - 2);
const t = new Turtle(s.get('x') + 1, s.get('y'));
s.set('b', <1-4>);
s.set('b', s.get('b') + 1);
s.set('a', s.get('b') - 2);
const t = new Turtle(s.get('a') + 1, s.get('b'));
t.forward();
`.trim(),
java: `
public class Main {
public static void main(String[] args) {
int y = <1-4>; // sid
y = y + 1; // sid
int x = y - 2; // sid
Turtle 亀 = new Turtle(x + 1, y); // sid
int b = <1-4>; // sid
b = b + 1; // sid
int a = b - 2; // sid
Turtle 亀 = new Turtle(a + 1, b); // sid
亀.前に進む(); // sid
}
}
Expand Down

0 comments on commit 36b4e59

Please sign in to comment.