From 99f0242d1301f9d2f793b0c51e4d043eb3635f51 Mon Sep 17 00:00:00 2001 From: "Sakamoto, Kazunori" Date: Thu, 26 Sep 2024 23:33:23 +0900 Subject: [PATCH] fix: refine problems --- src/problems/problemData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/problems/problemData.ts b/src/problems/problemData.ts index 32ba1c19..87e8cacd 100644 --- a/src/problems/problemData.ts +++ b/src/problems/problemData.ts @@ -972,7 +972,7 @@ s.set('x', 0); s.set('y', 100); for (s.set('i', <4-5>); s.get('i') > 0; s.set('i', s.get('i') - 1)) { s.set('x', s.get('x') + s.get('i')); - s.set('y', s.get('y') + s.get('i')); + s.set('y', s.get('y') - s.get('i')); } delete s.vars['i']; s.set('x', s.get('x') / 4); @@ -987,7 +987,7 @@ public class Main { int y = 100; // sid for (int i = <4-5>; i > 0; i--) { // sid x += i; // sid - y += i; // sid + y -= i; // sid } x /= 4; // sid y /= 5; // sid