This commit is contained in:
부모
eef5ee370d
커밋
2bda002259
@ -8,6 +8,8 @@ class Program {
|
||||
'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1};
|
||||
|
||||
int $matches;
|
||||
string $roman;
|
||||
int $value;
|
||||
foreach($lookup as $roman => $value) {
|
||||
$matches = (int) ($n / $value);
|
||||
$result += str_repeat($roman, $matches);
|
||||
|
불러오는 중...
x
Reference in New Issue
Block a user