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

By |2017-04-09T23:49:28+00:00April 9th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

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