Search found 4 matches

by flehns
Wed Oct 25, 2006 8:04 am
Forum: Volume 100 (10000-10099)
Topic: 10006 - Carmichael Numbers
Replies: 66
Views: 29671

Can someone give me a hint as to how to precalculate. I tried to precalculate by running through all the numbers from 2 to 65000 and putting it into an array if it was a carmichael number, but this wound up taking sooo much time. :evil:
by flehns
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 ...
by flehns
Sun Oct 22, 2006 7:51 am
Forum: Volume 101 (10100-10199)
Topic: 10105 - Polynomial Coefficients
Replies: 16
Views: 6383

Thanks for your help; it got accepted!! :D Unfortunately, it still has a presentation error, which makes no sense...but I'll take it.
by flehns
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 ...

Go to advanced search