1 条题解
-
0
C :
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int i,t; double x; char a[9]; while(gets(a),strcmp(a,"END")) { x=atof(a); t=0; if(x==0||x==1) printf("MEMBER\n"); else { i=13; while(i--) { x=(x-(int)x)*3; if((int)x==1) { printf("NON-MEMBER\n"); t++; break; } } if(t==0) printf("MEMBER\n"); } } return 0; }
- 1
信息
- ID
- 3667
- 时间
- 10000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者