From 089d7edf9ce75fed9c3c5343c40310cdff06a96b Mon Sep 17 00:00:00 2001 From: taketakeyyy Date: Wed, 20 Oct 2021 01:26:10 +0900 Subject: [PATCH] fix: compliant with editorial x' = x - y; y' = x + y; --- sol/036.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sol/036.cpp b/sol/036.cpp index 60762a9..92d564f 100644 --- a/sol/036.cpp +++ b/sol/036.cpp @@ -16,8 +16,8 @@ int main() { // Step #2. 45 “x‰ñ“] for (int i = 1; i <= N; i++) { - long long p1 = X[i] + Y[i]; - long long p2 = Y[i] - X[i]; + long long p1 = X[i] - Y[i]; + long long p2 = X[i] + Y[i]; X[i] = p1; Y[i] = p2; min_X = min(min_X, X[i]);