2 solutions
-
0
先模拟,再反推
AC code:
#include <bits/stdc++.h> using namespace std; int x, a, b, c; int main() { cin >> x; a = b = c = x / 3; b /= 2; a /= 2; c += (b + a); a /= 2; c /= 2; b += (a + c); b /= 2; c /= 2; a += (b + c); cout << a << " " << b << " " << c; return 0; }
Information
- ID
- 537
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 6
- Tags
- # Submissions
- 211
- Accepted
- 63
- Uploaded By