]> Skullheadx's Git Forge - CCC.git/commitdiff
S3 wip
authorSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Sun, 2 Oct 2022 14:59:13 +0000 (10:59 -0400)
committerSkullheadx <94652084+Skullheadx@users.noreply.github.com>
Sun, 2 Oct 2022 14:59:13 +0000 (10:59 -0400)
Main/C++/2019/2019 S3.txt
Main/C++/2019/S3.cpp
Main/C++/2019/S3.exe
Main/C++/2019/S3.o

index 44a2db785ba200fc7c7ee979aaddcab6ed5c7676..43dca4449b8e270a5c2f79eecc4465980446f619 100644 (file)
@@ -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
+
+
+
+
index 745af0a8090731e709fdc7ddf900c558352c4490..d710109fda1c0b2ee2a28be7daa44737ce5721ba 100644 (file)
@@ -3,11 +3,17 @@ using namespace std;
 
 int main()
 {
-    int n = 0;
-    for (int i = 0; i < 10000000; i++)
+    vector<vector<char>> 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;
 }
index 7d77b463b8b4b82ebb5d1ca9c1fc9b6c783f5b25..f071c1e530a6bafc3d14bce435f59658ff46a29a 100644 (file)
Binary files a/Main/C++/2019/S3.exe and b/Main/C++/2019/S3.exe differ
index 9fd85bf7c41c38f8e8fd3ce13b5e3b12cf7924dc..3b8eec72c5e51d0d32328ccee83619815820951c 100644 (file)
Binary files a/Main/C++/2019/S3.o and b/Main/C++/2019/S3.o differ