Solution for A Minus B in C++


May 11, 2020 0.179572 seconds C++
#include <bits/stdc++.h>

using namespace std;

int main() {
    int n, a, b;
    cin >> n;
    
    for(int i = 0; i < n; i++){
        cin >> a >> b;
        cout << a - b << "\n";
    }
    
    return 0;
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.