
Search found 4 matches
- Wed Oct 25, 2006 8:04 am
- Forum: Volume 100 (10000-10099)
- Topic: 10006 - Carmichael Numbers
- Replies: 66
- Views: 29671
- Wed Oct 25, 2006 7:32 am
- Forum: Volume 100 (10000-10099)
- Topic: 10006 - Carmichael Numbers
- Replies: 66
- Views: 29671
help! I dont understand why I get TLE
My computer runs my code so quickly, and gets all of the answers right, but it still gets TLE. I have taken all the advice I could from the boards and even took into account the possibility of entering a value that is not an integer. I am getting pretty frustrated seeing TLE so much.
#include ...
#include ...
- Sun Oct 22, 2006 7:51 am
- Forum: Volume 101 (10100-10199)
- Topic: 10105 - Polynomial Coefficients
- Replies: 16
- Views: 6383
- Sat Oct 21, 2006 3:37 am
- Forum: Volume 101 (10100-10199)
- Topic: 10105 - Polynomial Coefficients
- Replies: 16
- Views: 6383
Compiler Error 10105 wat the heck
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
double fact(double n) {
if (n <= 1)
return (double)1;
return (n * fact(n - 1));
}
int main()
{
int k, n;
vector<int> output;
vector<int>::iterator outputIter;
while(cin >> n >> k)
//cin >> n ...
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
double fact(double n) {
if (n <= 1)
return (double)1;
return (n * fact(n - 1));
}
int main()
{
int k, n;
vector<int> output;
vector<int>::iterator outputIter;
while(cin >> n >> k)
//cin >> n ...