aboutsummaryrefslogtreecommitdiff
path: root/codechef/AirHockey
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-06-29 15:57:29 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-06-29 15:57:29 +0200
commit1b8f7c9d4eb8b767d32dbbbfd96662b73c037627 (patch)
tree7f984139dcca441d7ab582e0c67daa125e400a14 /codechef/AirHockey
parent7860cb994fbf6af63865eb6dc9045bbc8abd61a4 (diff)
downloadcompetitive-programming-1b8f7c9d4eb8b767d32dbbbfd96662b73c037627.tar.xz
competitive-programming-1b8f7c9d4eb8b767d32dbbbfd96662b73c037627.zip
Solved some problem from codechef and codeforces
Diffstat (limited to 'codechef/AirHockey')
-rw-r--r--codechef/AirHockey/inp0
-rwxr-xr-xcodechef/AirHockey/mainbin0 -> 22624 bytes
-rw-r--r--codechef/AirHockey/main.cpp15
-rw-r--r--codechef/AirHockey/main_input0.txt5
-rw-r--r--codechef/AirHockey/main_output0.txt4
5 files changed, 24 insertions, 0 deletions
diff --git a/codechef/AirHockey/inp b/codechef/AirHockey/inp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/codechef/AirHockey/inp
diff --git a/codechef/AirHockey/main b/codechef/AirHockey/main
new file mode 100755
index 0000000..9e054fb
--- /dev/null
+++ b/codechef/AirHockey/main
Binary files differ
diff --git a/codechef/AirHockey/main.cpp b/codechef/AirHockey/main.cpp
new file mode 100644
index 0000000..ba9a839
--- /dev/null
+++ b/codechef/AirHockey/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 a, b;
+ cin >> a >> b;
+ cout << min(7 - a, 7 - b) << endl;
+ }
+}
diff --git a/codechef/AirHockey/main_input0.txt b/codechef/AirHockey/main_input0.txt
new file mode 100644
index 0000000..acb0144
--- /dev/null
+++ b/codechef/AirHockey/main_input0.txt
@@ -0,0 +1,5 @@
+4
+0 0
+2 5
+5 2
+4 3
diff --git a/codechef/AirHockey/main_output0.txt b/codechef/AirHockey/main_output0.txt
new file mode 100644
index 0000000..83d3aa6
--- /dev/null
+++ b/codechef/AirHockey/main_output0.txt
@@ -0,0 +1,4 @@
+7
+2
+2
+3