From 1ccba7112b334c0887bd349966219b38eb9ccfb9 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sun, 10 Dec 2023 15:55:42 +0200 Subject: Removed some empty problems and solved 2 problems in rust --- contests/Codechef_Starters_41/D/main.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 contests/Codechef_Starters_41/D/main.cpp (limited to 'contests/Codechef_Starters_41/D/main.cpp') diff --git a/contests/Codechef_Starters_41/D/main.cpp b/contests/Codechef_Starters_41/D/main.cpp deleted file mode 100755 index a0365c2..0000000 --- a/contests/Codechef_Starters_41/D/main.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include -#include - -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; - if(x > y) { - if((x - y) % 2 == 0) { - cout << (x - y) / 2 << endl; - } else { - cout << (x - y) / 2 + 2 << endl; - } - } else if (y > x) { - cout << y - x << endl; - } else { - cout << 0 << endl; - } - } -} -- cgit v1.2.3