From 63242390fcabd1c8d00e17033ebecec4889c368e Mon Sep 17 00:00:00 2001 From: Owais Ali Date: Wed, 17 Oct 2018 17:34:04 +0500 Subject: [PATCH] Revert "Add problem in Codechef, reference #1" --- Hackerrank/COOK82A.cpp | 50 ------------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 Hackerrank/COOK82A.cpp diff --git a/Hackerrank/COOK82A.cpp b/Hackerrank/COOK82A.cpp deleted file mode 100644 index 75b2c018..00000000 --- a/Hackerrank/COOK82A.cpp +++ /dev/null @@ -1,50 +0,0 @@ -#include -#include -#include -#include -using namespace std; -int main() -{ - - int numofiterations; - scanf("%d", &numofiterations); - int i,j;//loopnig variables - char teamname[30]; - - int goals[4]; - - int teamgoals; - for (i=0;i>teamname>>teamgoals; - - if (strcmp(teamname,"Barcelona")==0 ) - { - goals[0]=teamgoals; - } - else if(strcmp(teamname,"Malaga")==0) - { - goals[1]=teamgoals; - } - else if(strcmp(teamname,"RealMadrid")==0) - { - goals[2]=teamgoals; - } - else //if(teamname=="Eibar") - { - goals[3]=teamgoals; - } - } - - if (goals[1]>goals[2] && goals[0]>goals[3]) - { - printf("Barcelona\n"); - } - else - printf("RealMadrid\n"); - } - - -}