/**
 * Calculates the maximum number of butterflies that can fit on a given number of boards
 * considering a minimum spacing of epsilon millimeters between each butterfly.
 *
 * @param numBoards The total number of boards available
 * @param boardLength The length of each board in millimeters
 * @return The maximum number of butterflies that can fit on the given number of boards
 */
fun calculateNumButterflies(numBoards: Int, boardLength: Float): Int {

    val epsilon = 0.000001  // Minimum spacing (in millimeters) between each butterfly
    val butterflyLength = 19.5  // Length of each butterfly in millimeters

    // Calculate the total length occupied by the boards
    val totalBoardLength = numBoards * boardLength

    // Calculate the maximum number of butterflies that can fit on the boards
    val maxNumButterflies = (totalBoardLength / (butterflyLength + epsilon)).toInt()

    return maxNumButterflies
}
/**
 * Calculates the maximum number of butterflies that can fit on a given number of boards
 * considering a minimum spacing of epsilon millimeters between each butterfly.
 *
 * @param numBoards The total number of boards available
 * @param boardLength The length of each board in millimeters
 * @return The maximum number of butterflies that can fit on the given number of boards
 */
fun calculateNumButterflies(numBoards: Int, boardLength: Float): Int {
/**
 * Calculates the maximum number of butterflies that can fit on a given number of boards
 * considering a minimum spacing of epsilon millimeters between each butterfly.
 *
 * @param numBoards The total number of boards available
 * @param boardLength The length of each board in millimeters
 * @return The maximum number of butterflies that can fit on the given number of boards
 */
fun calculateNumButterflies(numBoards: Int, boardLength: Float): Int {

    val epsilon = 0.000001  // Minimum spacing (in millimeters) between each butterfly
    val butterflyLength = 19.5  // Length of each butterfly in millimeters

    // Calculate the total length occupied by the boards
    val totalBoardLength = numBoards * boardLength

    // Calculate the maximum number of butterflies that can fit on the boards
    val maxNumButterflies = (totalBoardLength / (butterflyLength + epsilon)).toInt()

    return maxNumButterflies
}