problem link:
Discuss: in this problem just look at input if the angle is divided by 6 which is angle for every min has a repeated angle.so we just need to check the angle determine weather it has a repeated angle or not.
try yourself before see the code
#include<stdio.h>
int main()
{
int n,i,j;
while(scanf("%d",&n)!=EOF)
{
if(n%6==0)
printf("Y\n");
else
printf("N\n");
}
return 0;
}
Discuss: in this problem just look at input if the angle is divided by 6 which is angle for every min has a repeated angle.so we just need to check the angle determine weather it has a repeated angle or not.
try yourself before see the code
#include<stdio.h>
int main()
{
int n,i,j;
while(scanf("%d",&n)!=EOF)
{
if(n%6==0)
printf("Y\n");
else
printf("N\n");
}
return 0;
}
No comments:
Post a Comment