From 7f856c7ff080b8d455b9ed16c2e57dd862c3879d Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sat, 5 Nov 2022 01:41:11 +0200 Subject: moved some file --- Ghanophobia/main | Bin 24608 -> 0 bytes Ghanophobia/main.cpp | 36 ------------------------------------ Ghanophobia/main_input0.txt | 4 ---- Ghanophobia/main_output0.txt | 3 --- 4 files changed, 43 deletions(-) delete mode 100755 Ghanophobia/main delete mode 100644 Ghanophobia/main.cpp delete mode 100644 Ghanophobia/main_input0.txt delete mode 100644 Ghanophobia/main_output0.txt (limited to 'Ghanophobia') diff --git a/Ghanophobia/main b/Ghanophobia/main deleted file mode 100755 index 80108cd..0000000 Binary files a/Ghanophobia/main and /dev/null differ diff --git a/Ghanophobia/main.cpp b/Ghanophobia/main.cpp deleted file mode 100644 index 31dff88..0000000 --- a/Ghanophobia/main.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include - -using namespace std; - -int main () { - ios_base::sync_with_stdio(false); - cin.tie(NULL); - freopen("ghanophobia.in", "r", stdin); - int tt; - cin >> tt; - int cnt = 0; - while(tt--){ - cnt++; - string s; - cin >> s; - string s1 = s.substr(0, s.find(":")); - string s2 = s.substr(s.find(":") + 1, s.length() - 1); - int eg = stoi(s1) + 1; - int gh = stoi(s2) + 6; - cout << "Case " << cnt << ": "; - if (eg == gh){ - if (gh - 6 > 1) { - cout << "NO\n"; - } else if (gh - 6 == 1) { - cout << "PENALTIES\n"; - } else { - cout << "YES\n"; - } - } else if(eg > gh) { - cout << "YES\n"; - } else { - cout << "NO\n"; - } - } -} diff --git a/Ghanophobia/main_input0.txt b/Ghanophobia/main_input0.txt deleted file mode 100644 index ae9045c..0000000 --- a/Ghanophobia/main_input0.txt +++ /dev/null @@ -1,4 +0,0 @@ -3 -6:0 -1:1 -6:1 diff --git a/Ghanophobia/main_output0.txt b/Ghanophobia/main_output0.txt deleted file mode 100644 index b0ad2a2..0000000 --- a/Ghanophobia/main_output0.txt +++ /dev/null @@ -1,3 +0,0 @@ -Case 1: YES -Case 2: NO -Case 3: PENALTIES -- cgit v1.2.3