Cod sursa(job #1509919)

Utilizator rosuflaRosu Flaviu rosufla Data 24 octombrie 2015 13:52:55
Problema Sortare prin comparare Scor 0
Compilator cpp Status done
Runda Arhiva educationala Marime 0.25 kb
#include <iostream>
#include <fstream>
#include <algorithm>
using namespace std;
ifstream f("algsort.in");
ofstream g("algsort.out");
int main()
{   int n,i,a[500000];
    f>>n;
    for(i=1;i<=n;i++)
        f>>a[i];
    sort(a+1, a+n+1);

    return 0;
}