This is an error 404
There are `0` results
preferences:
139.45 ms | 1399 KiB | 7 Q<?php
function power($s) {
return array_sum(array_map(function($e) {
return ord($e) - 64;
}, str_split($s)));
}
function battle($x, $y) {
$l = power($x);
$m = power($y);
echo ($l > $m) . " - " . $l . " - " . $m . "\n";
return ($l > $m) ? $x : ($l < $m) ? $y : "Tie!";
}
echo battle("FOUR", "FIVE");