diff options
Diffstat (limited to 'codechef/BestOfTwo')
| -rw-r--r-- | codechef/BestOfTwo/inp | 0 | ||||
| -rwxr-xr-x | codechef/BestOfTwo/main | bin | 0 -> 22624 bytes | |||
| -rw-r--r-- | codechef/BestOfTwo/main.cpp | 15 | ||||
| -rw-r--r-- | codechef/BestOfTwo/main_input0.txt | 5 | ||||
| -rw-r--r-- | codechef/BestOfTwo/main_output0.txt | 4 |
5 files changed, 24 insertions, 0 deletions
diff --git a/codechef/BestOfTwo/inp b/codechef/BestOfTwo/inp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/codechef/BestOfTwo/inp diff --git a/codechef/BestOfTwo/main b/codechef/BestOfTwo/main Binary files differnew file mode 100755 index 0000000..571ccd9 --- /dev/null +++ b/codechef/BestOfTwo/main 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; + } +} diff --git a/codechef/BestOfTwo/main_input0.txt b/codechef/BestOfTwo/main_input0.txt new file mode 100644 index 0000000..3d8197a --- /dev/null +++ b/codechef/BestOfTwo/main_input0.txt @@ -0,0 +1,5 @@ +4 +40 60 +67 55 +50 50 +1 100 diff --git a/codechef/BestOfTwo/main_output0.txt b/codechef/BestOfTwo/main_output0.txt new file mode 100644 index 0000000..da1a975 --- /dev/null +++ b/codechef/BestOfTwo/main_output0.txt @@ -0,0 +1,4 @@ +60 +67 +50 +100 |
