Various incomplete solutions

This commit is contained in:
FuryFire
2011-04-10 13:19:21 +02:00
parent 94dc7ec373
commit 53e3cf4358
15 changed files with 173 additions and 8 deletions

View File

@ -0,0 +1,13 @@
<?php
while($s=explode(' ',trim(fgets(STDIN)))) {
if($s[1]%5) {
echo $s[1];
} else {
$new = round($s[1]-$s[1]-0.5,2);
if($new)
echo $new;
else
echo $s[1];
}
}

View File

@ -0,0 +1,7 @@
<?php
echo fgets(STDIN);
while($s = fgets(STDIN)) {
if(trim($s) == '42')
die;
echo $s;
}