Mam problem z zadaniem na spoju: http://pl.spoj.com/problems/FCTRL3/ nie chce mi zaakceptować mojego kodu:
#include <iostream>
int factorial(int n)
{
return result;
}
int main()
{
int numberOfTests, n;
std::cin >> numberOfTests;
return 0;
}
Wyświetla się komunikat przekroczono limit czasu i tu moje mytanie: W jaki sposób przyspieszyć program, jest jakiś szybszy algorytm na silnie ?