Cod sursa(job #1016445)
Utilizator | 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;
}