From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Sun, 2 Oct 2022 14:59:13 +0000 (-0400) Subject: S3 wip X-Git-Url: http://git.skullheadx.com/about.html?a=commitdiff_plain;h=5c78a2447f109573141b9768367047a8b0fff655;p=CCC.git S3 wip --- diff --git a/Main/C++/2019/2019 S3.txt b/Main/C++/2019/2019 S3.txt index 44a2db7..43dca44 100644 --- a/Main/C++/2019/2019 S3.txt +++ b/Main/C++/2019/2019 S3.txt @@ -11,4 +11,38 @@ a+c a+c+d a+c+2d a+2c a+2c+d a+2c+2d 9a + 9d + 9c = sum -9(a+c+d) = sum \ No newline at end of file +9(a+c+d) = sum + +(d + a) - (a) = (a + 2d) - (a+d) = d +(a + c + d) - (a+c) = (a+c+2d)-(a+c+d)=d +(a + 2c + d) - (a+2c) = (a+2c+2d)-(a+2c+d)=d +--------------------------------------------- +a a+b a+2b +a+c a+c+d a+c+2d +a+2c a+2c+e a+2c+2e + +a a+b a+2b +a+c a+b+f a+2b+g +a+2c a+2b+2f a+2b+2g + +a+b+2f = a+2c+e +a+b+f = a+c+d +f = c + e - d + +b-2c=e-2f +-b+c=-d+f //b-c = d-f +-c = e-d-f +c=d+f-e +b = d-f+c +=d+f+d+f-e +=2d+2f-e + + +a+2b+2g = a+2c+2e +a+2b + g = a+c+2d +g = c+2e-2d +g = f + e - d + + + + diff --git a/Main/C++/2019/S3.cpp b/Main/C++/2019/S3.cpp index 745af0a..d710109 100644 --- a/Main/C++/2019/S3.cpp +++ b/Main/C++/2019/S3.cpp @@ -3,11 +3,17 @@ using namespace std; int main() { - int n = 0; - for (int i = 0; i < 10000000; i++) + vector> table= {{},{},{}}; + char a,b,c; + for (int i = 0; i < 3; i++) { - n++; + cin >> a >> b>> c; + table[i].push_back(a); + table[i].push_back(b); + table[i].push_back(c); } - cout << n; + + + return 0; } diff --git a/Main/C++/2019/S3.exe b/Main/C++/2019/S3.exe index 7d77b46..f071c1e 100644 Binary files a/Main/C++/2019/S3.exe and b/Main/C++/2019/S3.exe differ diff --git a/Main/C++/2019/S3.o b/Main/C++/2019/S3.o index 9fd85bf..3b8eec7 100644 Binary files a/Main/C++/2019/S3.o and b/Main/C++/2019/S3.o differ