// C code for 13662. H Number Problem code: HNUM
#include<stdio.h>
int main()
{
int test, n,i;
scanf("%d",&test);
for(i=1;i<=test;i++)
{
scanf("%d",&n);
if (n%30==0)
printf("Case #%d: H-Number\n",i);
else
printf("Case #%d: Not H-Number\n",i);
}
return 0;
}
#include<stdio.h>
int main()
{
int test, n,i;
scanf("%d",&test);
for(i=1;i<=test;i++)
{
scanf("%d",&n);
if (n%30==0)
printf("Case #%d: H-Number\n",i);
else
printf("Case #%d: Not H-Number\n",i);
}
return 0;
}
No comments:
Post a Comment