HDU/2052/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

14 lines
201 B
C

#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;
}