April Fools Contest 2017, problem: (C) INTERCALC Solution in C

#include<stdio.h>
int main(){
 int a[10], i, n, max=0;
 scanf("%d", &n);
 for(i=0; i<n; i++){
 scanf("%d", &a[i]);
 if(max<a[i]) max=a[i];
 }
 printf("%d", max^a[n-1]);
 return 0;
}
(Visited 48 times, 1 visits today)

About the Author:

Leave A Comment