diff options
Diffstat (limited to 'codechef/Math1Enrolment/main.cpp')
| -rw-r--r-- | codechef/Math1Enrolment/main.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/codechef/Math1Enrolment/main.cpp b/codechef/Math1Enrolment/main.cpp new file mode 100644 index 0000000..4011941 --- /dev/null +++ b/codechef/Math1Enrolment/main.cpp @@ -0,0 +1,20 @@ +#include<bits/stdc++.h> + +using namespace std; + +int main () { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + int tt; + cin >> tt; + while(tt--){ + int n, m; + cin >> n >> m; + if(m <= n) { + cout << 0 << endl; + } else { + cout << m - n << endl; + } + + } +} |
