1 solutions
-
0
C++ :
#include <iostream> #include <algorithm> using namespace std; int main(void) { int nums[7]; for (int i=0; i<7; i++) cin >> nums[i]; sort (nums, nums+7); int a = nums[0], b = nums[1]; int c = nums[6] - a - b; cout << a << " " << b << " " << c << "\n"; }
- 1
Information
- ID
- 1292
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- (None)
- Tags
- (None)
- # Submissions
- 0
- Accepted
- 0
- Uploaded By