Cod sursa(job #2477510)
Utilizator | Data | 20 octombrie 2019 15:06:33 | |
---|---|---|---|
Problema | Factorial | Scor | 15 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
ifstream f("fact.in");
ofstream g("fact.out");
ull n,nr,i;
int main()
{
f>>n;
if(n==0)
g<<1;
else g<<-1;
return 0;
}