0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-09-20 21:45:26 +00:00
OI-codes/S2OJ/1618/1618.cpp

25 lines
299 B
C++

#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
while (t--) {
int l, r;
cin >> l >> r;
cout << r - l + 1 << endl;
}
return 0;
}