UVA 11462 - Age Sort

Problem PDF

Solution:

#include
#include

using namespace std;
long long a[2000005],i,n;

int main()
{
    while (scanf("%lld",&n)==1)
    {
        if (n==0)
        break;

        for (i=0;i
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/11462/11462.cpp