fork download
  1. #include<bits/stdc++.h>
  2. #define ull unsigned long long
  3. #define ll long long
  4. #define all(x) x.begin(), x.end()
  5. using namespace std;
  6. const int maxn = 1e6 + 5;
  7. int main() {
  8. ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  9. int a, b, c, d, e, f;
  10. cin >> a >> b >> c >> d >> e >> f;
  11.  
  12. int pointA = 0, pointB = 0, pointC = 0;
  13.  
  14. if (a > b) {
  15. pointA += 3;
  16. }
  17. else if (a < b) {
  18. pointB += 3;
  19. }
  20. else {
  21. pointA++;
  22. pointB++;
  23. }
  24. if (c > d) {
  25. pointA += 3;
  26. }
  27. else if (c < d) {
  28. pointC += 3;
  29. }
  30. else {
  31. pointA++;
  32. pointC++;
  33. }
  34. if (e > f) {
  35. pointB += 3;
  36. }
  37. else if (e < f) {
  38. pointC += 3;
  39. }
  40. else {
  41. pointB++;
  42. pointC++;
  43. }
  44. cout << pointA << " " << pointB << " " << pointC;
  45. }
  46.  
  47.  
Success #stdin #stdout 0s 5292KB
stdin
1 1 1 1 1 1
stdout
2 2 2