Search found 5 matches

by JWizard
Sun Aug 04, 2002 1:02 am
Forum: Volume 103 (10300-10399)
Topic: 10310 - Dog and Gopher
Replies: 47
Views: 17443

10310 - Dog and Gopher

I don't know why I keep getting wrong answer... works fine with all the data I tried.... [c]#include <stdio.h> #include <math.h> int main() { int n; double gx, gy, dx, dy; while(5 == scanf("%d %lf %lf %lf %lf", &n, &gx, &gy, &dx, &dy)) { int i, j, s = 0; for(i = 0 ; i < n ; i++) { double x, y, dg, d...
by JWizard
Mon Jul 01, 2002 9:57 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 31582

I just checked and I had submitted with the right problem number .....
just resubmitted it and it works now :)
Thanks for your help
by JWizard
Mon Jul 01, 2002 8:30 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 31582

Alright:

output for 1:

1 is not prime.

output for 2:

2 is prime.

output for 13:

13 is emirp.

thanks a lot for your help
by JWizard
Mon Jul 01, 2002 7:59 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 31582

Output: N=1-30: Prime: 2, 3, 5, 7, 11, 19, 23, 29 Not prime: 1, 4, 6, 8, 9, 10, 12, 14, 15, 16, 18, 20, 22, 24, 25,26, 27, 28, 30 Emirp: 13, 17 N=999970-1000000 Not Prime: 999970, 999971, 999972, 999973, 999974, 999975, 999976, 999977, 999978, 999980, 999981, 999982, 999984, 999985, 999986, 999987, ...
by JWizard
Mon Jul 01, 2002 4:24 pm
Forum: Volume 102 (10200-10299)
Topic: 10235 - Simply Emirp
Replies: 150
Views: 31582

Hi, I tried all the above test data as well as some of my own, but for some reason I keep getting WA... and I'm pretty sure that my output is well formatted.... any ideas ?

Go to advanced search