My issue
My code
#include <stdio.h>
int main(void) {
int t;
scanf("%d",&t);
while(t--){
int p,z;
scanf("%d",&p);
if(p<10){
printf("%d\n",p);
}
else if(z=p/100 && p-100<10){
int x=z+p-100;
printf("%d\n",x);
}
else if(p%100==0){
printf("%d\n",p/100);
}
else{
printf("-1\n");
}
}
// your code goes here
return 0;
}
Problem Link: ACS Problem - CodeChef