結果

問題 No.656 ゴルフ
ユーザー papinianuspapinianus
提出日時 2018-05-14 17:36:55
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 903 ms
コンパイル使用メモリ 11,944 KB
実行使用メモリ 12,340 KB
最終ジャッジ日時 2023-09-10 20:40:28
合計ジャッジ時間 1,906 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
echo array_sum(array_map(function(string $c): int{ return ($c === '0') ? 10 : strval($c); }, str_split(trim(fgets(STDIN)))));
echo PHP_EOL;
0