結果
問題 | No.289 数字を全て足そう |
ユーザー |
![]() |
提出日時 | 2017-08-30 12:56:13 |
言語 | PHP (843.2) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 32,148 KB |
実行使用メモリ | 32,916 KB |
最終ジャッジ日時 | 2024-11-06 14:30:43 |
合計ジャッジ時間 | 2,151 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 RE * 2 |
other | AC * 2 RE * 19 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $input = preg_split("//u", trim(fgets(STDIN)), -1, PREG_SPLIT_NO_EMPTY); //print_r($input); $out = 0; for($i = 0; $i < count($input); $i++){ if($input[$i] > 0){ $out = $out + $input[$i]; } } echo $out; ?>