Doğru anladıysam 16dk 25 saniye = 975 saniye yapar.
975 325'e bölünürse sonuç 3 yani 325 e bölerseniz dosyayı her parca 3sn olur
Birde şöyle bir sonuç buldum 1,625 / 185 / 3 = 2.92

18
●302
public static void Main(string[] args)
{
float toplamSure = float.Parse(Console.ReadLine());
float bolen = 0;
for (int i = 1; i < Convert.ToInt32(toplamSure); i++)
{
if (toplamSure / i < 3 && toplamSure / i >= 2.7f)
{
bolen = toplamSure / i;
break;
}
}
Console.WriteLine(bolen);
} <?php $dosyasuresi = 16.25; $ayarlanmakistenensure = 2.7; $a = floor($dosyasuresi / $ayarlanmakistenensure); $b = $ayarlanmakistenensure * $a; $c = $ayarlanmakistenensure -($dosyasuresi - $b); $d = ($dosyasuresi + $c) / $ayarlanmakistenensure; echo "Bu dosyaya $c süre ekleyerek $d eşit parçaya bölebilirsiniz."; ?>
<?php
$ilksure=$sure=16.25;
$sonuc=0.1;
while(!($sonuc>2.6 && $sonuc<2.99)){
for ($i = 1; $i <= 10000; $i++) {
$sonuc=$sure/$i;
if ($sonuc>2.6 && $sonuc<2.99){
echo $i;
echo " Sessizlik:". floatval($sure-$ilksure);
break;
}
}
$sure=$sure+0.01;
}
?>Örnekte süre 16.25 girdim sonuç 6 çıkacaktır, ancak süre: 10.25 girersek 4 çıkacaktır ancak 0.16sn sessizlik eklemek lazım. ...
time = float(input('Süreyi girin (34.924 vs. şeklinde): '))
i = 1
while True:
low = i * 2.7
high = i * 2.999
if time >= low and time <= high:
print('Bölünecek sayı:', i, 'Bölümler', round(time / i, 4), 'sn.')
break
next_low = (i + 1) * 2.7
if time >= high and time <= next_low:
print('Eklenecek süre:', round(next_low - time, 4))
print('Bölünecek sayı:', i + 1, 'Bölümler: ', round(next_low / (i + 1), 4), 'sn.')
break
i += 1Python kurulu değilse https://repl.it/languages/python3 adresinden deneyebilirsiniz.