よじろめ覚書

私の理解度重視のソースコードです。

ABC154A - Remaining Balls

問題:A - Remaining Balls

#include <iostream>
#include <string>
using namespace std;

int main(void) {
    string s, t, u;
    int a, b;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> s >> t;
    cin >> a >> b;
    cin >> u;
    if (s == u) {
        --a;
    } else {
        --b;
    }

    cout << a << " " << b << "\n";
    return 0;
}