Chef and Masks | Problem - 33 | Beginner level | C language | CodeChef
Link to the problem statement: https://www.codechef.com/submit-v2/CMASKS
Solution:
#include <stdio.h>
int main(void) {
int t, i, x, y;
scanf("%d", &t);
for(i=0;i<t;i++)
{
scanf("%d %d", &x, &y);
x = x*100;
y = y*10;
if(x > y || x == y)
printf("CLOTH\n");
else
printf("DISPOSABLE\n");
}
return 0;
}
Hope this will help you, if you want anything else leave a comment.
Thank you
Comments
Post a Comment