Search found 5 matches
- Sun Aug 04, 2002 1:02 am
- Forum: Volume 103 (10300-10399)
- Topic: 10310 - Dog and Gopher
- Replies: 47
- Views: 18630
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 <...
- Mon Jul 01, 2002 9:57 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 35136
- Mon Jul 01, 2002 8:30 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 35136
- Mon Jul 01, 2002 7:59 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 35136
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, ...
- Mon Jul 01, 2002 4:24 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10235 - Simply Emirp
- Replies: 150
- Views: 35136