HDU/2052/main.c

14 lines
201 B
C
Raw Permalink Normal View History

2020-08-31 16:48:58 +00:00
#include <stdio.h>
int main(void){
long th,i;
while(scanf("%ld",&th) == 1){
int state = 0;
for(i = 1; i <= th; i++){
if(!(th % i)) state = !state;
}
printf("%d\n",state);
}
return 0;
}