<?php
fscanf(STDIN, "%d", $NumberOfTestCases);

for ($i=0; $i<$NumberOfTestCases; $i++) {
    
    fscanf(STDIN, "%f", $FoodInKg);

    for ($i2=0; $FoodInKg > 1; $i2++){
        $FoodInKg /= 2;
    }
    echo "{$i2} dias\n";
}
?>

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: