/* Wed Nov 12 17:20:34 JST 2003 : Start */ /* Wed Nov 12 17:58:30 JST 2003 : Accepted */ #include #include #define EPSILON (1e-7) unsigned int number(int t, int c) { return ((unsigned int)floor(M_PI / asin((double)c / (double)(t-c)) + EPSILON)); } int main() { unsigned int t, c; while (1) { scanf("%d", &t); if (feof(stdin)) { break; } scanf("%d", &c); if (t < c) { printf("Coin cannot fit in tray.\n"); } else if (t < 2 * c) { printf("1 coin of size %u will fit the inner rim of a tray of size %u.\n", c, t); } else { printf("%u coins of size %u will fit the inner rim of a tray of size %u.\n", number(t, c), c, t); } } return 0; }