mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 22:11:59 +00:00
25 lines
299 B
C++
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;
|
||
|
}
|