in_chainz

Untitled

Dec 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main() {
  5.  
  6.     int result = 0;
  7.     int x;
  8.     while (scanf("%d", &x)) {
  9.         result ^= x;
  10.     }
  11.     printf("%d", result);
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment