Cod sursa(job #109159)

Utilizator RobytzzaIonescu Robert Marius Robytzza Data 24 noiembrie 2007 20:16:06
Problema 12-Perm Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <fstream.h>
int main(){
ifstream fin("12perm.in");
ofstream fout("12perm.out");
long long N;
fin>>N;
if (N==1)
   fout<<N;
else
  if (N==2)
     fout<<N;
  else
     fout<<((N-2)%1048576)*6;
fout<<"\n";
fin.close();
fout.close();
return 0;
}