From 1b8f7c9d4eb8b767d32dbbbfd96662b73c037627 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Wed, 29 Jun 2022 15:57:29 +0200 Subject: Solved some problem from codechef and codeforces --- codechef/AirHockey/main.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 codechef/AirHockey/main.cpp (limited to 'codechef/AirHockey/main.cpp') 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 + +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; + } +} -- cgit v1.2.3