aboutsummaryrefslogtreecommitdiff
path: root/codechef/AirHockey
diff options
context:
space:
mode:
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