Cod sursa(job #1016445)

Utilizator nicuvladNicu Vlad nicuvlad Data 26 octombrie 2013 11:44:01
Problema 12-Perm Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.18 kb
#include <fstream>

using namespace std;
ifstream fin ("12perm.in");
ofstream fout ("12perm.out");
int main()
{
    long long n;
    fin >> n;
    fout << n*(n-1)%1048576;
}