-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathB_Simple_Molecules.cpp
More file actions
43 lines (40 loc) · 951 Bytes
/
Copy pathB_Simple_Molecules.cpp
File metadata and controls
43 lines (40 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// ATTEMPTED
// #include <iostream>
// #include <vector>
// #include <algorithm>
// using namespace std;
// int main()
// {
// vector<int> nums(3);
// for (int i = 0; i < 3; i++)
// cin >> nums[i];
// sort(nums.begin(), nums.end());
// int a = nums[0], b = nums[1], c = nums[2];
// if (a == b && b == c && c == a)
// {
// if (a == 1)
// {
// cout << "Impossible" << endl;
// return 0;
// }
// else
// {
// int x = (a) / 2;
// cout << x << " " << x << " " << x << endl;
// return 0;
// }
// }
// else
// // {
// if (!(a + b > c))
// {
// cout << "Impossible" << endl;
// return 0;
// }
// int x = b - a;
// int z = c - a;
// int y = x + z;
// cout << x << " " << y << " " << z << endl;
// }
// return 0;
// }