aboutsummaryrefslogtreecommitdiff
path: root/codechef/BestOfTwo/main.cpp
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-06-29 21:03:53 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-06-29 21:03:53 +0200
commit37b7e815612dec5655d2ee2363835e2075701ae6 (patch)
tree5c0b5e5fcf0c383c0e63c5c86524334630b35139 /codechef/BestOfTwo/main.cpp
parent1b8f7c9d4eb8b767d32dbbbfd96662b73c037627 (diff)
downloadcompetitive-programming-37b7e815612dec5655d2ee2363835e2075701ae6.tar.xz
competitive-programming-37b7e815612dec5655d2ee2363835e2075701ae6.zip
Solved the first 6 problems of codechef Starters
Diffstat (limited to 'codechef/BestOfTwo/main.cpp')
-rw-r--r--codechef/BestOfTwo/main.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/codechef/BestOfTwo/main.cpp b/codechef/BestOfTwo/main.cpp
new file mode 100644
index 0000000..f2961f0
--- /dev/null
+++ b/codechef/BestOfTwo/main.cpp
@@ -0,0 +1,15 @@
+#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 x, y;
+ cin >> x >> y;
+ cout << max(x, y) << endl;
+ }
+}