Cấu trúc rẽ nhánh.
cau H:
using namespace std; int main() { long long a, b; cin >> a >> b; if (a%2==0) { if (b%2==0) { cout << "1"; } else { cout << "0"; } } else { if (b%2==0) { cout << "0"; } else { cout << "1"; } } }
proudly powered by DMOJ
cau H:
include <iostream>
using namespace std; int main() { long long a, b; cin >> a >> b; if (a%2==0) { if (b%2==0) { cout << "1"; } else { cout << "0"; } } else { if (b%2==0) { cout << "0"; } else { cout << "1"; } } }