結果

問題 No.656 ゴルフ
ユーザー ayaaya
提出日時 2019-08-02 11:51:18
言語 PHP
(8.2.11)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 18,600 KB
実行使用メモリ 18,888 KB
最終ジャッジ日時 2023-09-18 18:11:09
合計ジャッジ時間 787 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,788 KB
testcase_01 AC 16 ms
18,752 KB
testcase_02 AC 15 ms
18,548 KB
testcase_03 AC 16 ms
18,784 KB
testcase_04 AC 16 ms
18,744 KB
testcase_05 AC 16 ms
18,888 KB
testcase_06 AC 15 ms
18,800 KB
testcase_07 AC 15 ms
18,748 KB
testcase_08 AC 16 ms
18,692 KB
testcase_09 AC 15 ms
18,568 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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