結果

問題 No.656 ゴルフ
ユーザー dong_feng
提出日時 2018-04-19 23:50:32
言語 PHP
(843.2)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 31,288 KB
最終ジャッジ日時 2024-06-27 04:56:29
合計ジャッジ時間 1,114 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$scoreList = str_split(fgets(STDIN), 1);
$scoreList = array_diff($scoreList,array(PHP_EOL,"\n","\r"));
$scoreList = str_replace("0", "10", $scoreList);
//print_r($scoreList);
echo array_sum($scoreList);
0