My issue
My code
#include <stdio.h>
int main(void) {
// your code goes here
int t,x;
scanf("%d",&t);
while(t--)
{
scanf("%d",&x);
}
return 0;
}
Problem Link: SQUATS Problem - CodeChef
#include <stdio.h>
int main(void) {
// your code goes here
int t,x;
scanf("%d",&t);
while(t--)
{
scanf("%d",&x);
}
return 0;
}
Problem Link: SQUATS Problem - CodeChef
The problem gives the total number of sets X completed. Each set has 15 squats. Therefore the total number of squats is X \cdot 15.
In code:
#include <stdio.h>
int main(void) {
int t; scanf("%d", &t);
while (t--) {
int x; scanf("%d", &x);
printf("%d\n", x * 15); // total sets * squats in a set
}
return 0;
}