結果

問題 No.656 ゴルフ
ユーザー mondomondo
提出日時 2019-08-05 13:00:37
言語 PHP
(8.2.11)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 12,148 KB
実行使用メモリ 12,336 KB
最終ジャッジ日時 2023-09-25 17:12:22
合計ジャッジ時間 1,039 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

<?php
$score = str_split(trim(fgets(STDIN)));
$ans = 0;
foreach ($score as $value){
    if ($value == 0) {
        $ans = 10;
    }
$ans += $value;
}
echo $ans;
0