aboutsummaryrefslogtreecommitdiff
path: root/codechef/Math1Enrolment
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/Math1Enrolment')
-rwxr-xr-xcodechef/Math1Enrolment/mainbin0 -> 22576 bytes
-rw-r--r--codechef/Math1Enrolment/main.cpp20
-rw-r--r--codechef/Math1Enrolment/main_input0.txt5
-rw-r--r--codechef/Math1Enrolment/main_output0.txt4
4 files changed, 29 insertions, 0 deletions
diff --git a/codechef/Math1Enrolment/main b/codechef/Math1Enrolment/main
new file mode 100755
index 0000000..74a2133
--- /dev/null
+++ b/codechef/Math1Enrolment/main
Binary files differ
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;
+ }
+
+ }
+}
diff --git a/codechef/Math1Enrolment/main_input0.txt b/codechef/Math1Enrolment/main_input0.txt
new file mode 100644
index 0000000..2786035
--- /dev/null
+++ b/codechef/Math1Enrolment/main_input0.txt
@@ -0,0 +1,5 @@
+4
+1 1
+12 34
+50 49
+49 50
diff --git a/codechef/Math1Enrolment/main_output0.txt b/codechef/Math1Enrolment/main_output0.txt
new file mode 100644
index 0000000..93edea2
--- /dev/null
+++ b/codechef/Math1Enrolment/main_output0.txt
@@ -0,0 +1,4 @@
+0
+22
+0
+1