We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eafa9d commit cb9f36dCopy full SHA for cb9f36d
CODECHEF/CODECHEF_COOK82A.c
@@ -0,0 +1,30 @@
1
+//CodeChef Problem : La Liga (COOK82)
2
+//Problem Code : COOK82A
3
+//Author : Piyush
4
+#include<stdio.h>
5
+int main()
6
+{
7
+ char str[20];
8
+ int i,t,b,m,r,e,no;
9
+ scanf("%d",&t);
10
+ while(t--)
11
+ {
12
+ for(i=1;i<=4;i++)
13
14
+ scanf("%s%d",str,&no);
15
+ if(str[0]=='B')
16
+ b=no;
17
+ else if(str[0]=='M')
18
+ m=no;
19
+ else if(str[0]=='R')
20
+ r=no;
21
+ else
22
+ e=no;
23
+ }
24
+ if(r<m && b>e)
25
+ printf("Barcelona\n");
26
27
+ printf("RealMadrid\n");
28
29
+ return 0;
30
+}
0 commit comments