1 solutions
-
0
C :
#include<stdio.h> int main() { int a[10],i,x,y,o[10],e[10]; while(scanf("%d",a)!=EOF) { for(i=1;i<10;i++) scanf("%d",&a[i]); for(x=y=i=0;i<10;i++) if(a[i]%2) o[x++]=a[i]; else e[y++]=a[i]; if(x==1) printf("%d\n",o[0]); else printf("%d\n",e[0]); } return 0; }
- 1
Information
- ID
- 1330
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- (None)
- # Submissions
- 0
- Accepted
- 0
- Uploaded By