G

mail@pastecode.io avatar
unknown
c_cpp
a year ago
466 B
10
Indexable
Never
#include <bits/stdc++.h>

#define ll long long

using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    int wina = 0, winb = 0, draw = 0;
    for (int x = 1; x <= 6; ++x) {
        if (abs(x - a) < abs(x - b)) {
            wina++;
        } else if (abs(x - a) > abs(x - b)) {
            winb++;
        } else {
            draw++;
        }
    }    
    
    cout << wina << ' ' << draw << ' ' << winb;
    return 0; 
}