結果

問題 No.289 数字を全て足そう
ユーザー
提出日時 2016-01-15 00:14:16
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 144 bytes
コンパイル時間 3,561 ms
コンパイル使用メモリ 30,024 KB
実行使用メモリ 31,392 KB
最終ジャッジ日時 2024-04-16 21:00:39
合計ジャッジ時間 5,228 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
31,088 KB
testcase_01 AC 41 ms
31,008 KB
testcase_02 AC 40 ms
31,012 KB
testcase_03 AC 41 ms
30,800 KB
testcase_04 AC 41 ms
31,092 KB
testcase_05 AC 42 ms
31,040 KB
testcase_06 AC 41 ms
31,164 KB
testcase_07 AC 42 ms
31,156 KB
testcase_08 AC 42 ms
30,960 KB
testcase_09 AC 41 ms
30,996 KB
testcase_10 AC 41 ms
30,952 KB
testcase_11 AC 41 ms
31,392 KB
testcase_12 AC 42 ms
31,168 KB
testcase_13 AC 41 ms
31,036 KB
testcase_14 AC 42 ms
31,328 KB
testcase_15 AC 41 ms
31,048 KB
testcase_16 AC 41 ms
31,212 KB
testcase_17 AC 41 ms
31,308 KB
testcase_18 AC 42 ms
31,248 KB
testcase_19 AC 41 ms
31,240 KB
testcase_20 AC 41 ms
31,184 KB
testcase_21 AC 42 ms
31,284 KB
testcase_22 AC 41 ms
31,296 KB
testcase_23 AC 42 ms
30,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

$in = trim(fgets(STDIN));
$preg = preg_replace('/[^0-9]/','', $in);

//print_r($preg);

$str = str_split($preg);

echo array_sum($str);

0