結果

問題 No.656 ゴルフ
ユーザー mondomondo
提出日時 2019-08-05 13:04:25
言語 PHP
(8.2.11)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 12,060 KB
実行使用メモリ 12,292 KB
最終ジャッジ日時 2023-09-25 17:12:57
合計ジャッジ時間 1,016 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
12,204 KB
testcase_01 AC 8 ms
12,272 KB
testcase_02 AC 7 ms
12,252 KB
testcase_03 AC 7 ms
12,248 KB
testcase_04 AC 7 ms
12,292 KB
testcase_05 AC 8 ms
12,284 KB
testcase_06 AC 7 ms
12,276 KB
testcase_07 AC 7 ms
12,248 KB
testcase_08 AC 7 ms
12,180 KB
testcase_09 AC 7 ms
12,220 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$score = str_split(trim(fgets(STDIN)));
$newscore = array();
foreach ($score as $value){
    if ($value == 0) {
        $value = 10;
    }
$newscore[] = $value;
}
echo array_sum($newscore);
0