/******************************************************* * Copyright (C) 2015 Haotian Wu * * This file is the solution to the question: * https://www.hackerrank.com/challenges/find-median * * Redistribution and use in source and binary forms are permitted. *******************************************************/ #include #include #include #include #include #include #include #include #include using namespace std; // Sort the numbers, then look at the number on index n/2. int main() { int n; int arr[1000001]; scanf("%d",&n); for (int i=0;i