結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー michirumichiru
提出日時 2019-10-21 11:23:40
言語 PHP
(8.2.11)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 1,452 ms
コンパイル使用メモリ 11,968 KB
実行使用メモリ 22,164 KB
最終ジャッジ日時 2023-09-15 14:55:39
合計ジャッジ時間 2,277 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,228 KB
testcase_01 AC 7 ms
12,284 KB
testcase_02 AC 7 ms
12,160 KB
testcase_03 AC 7 ms
12,224 KB
testcase_04 AC 7 ms
12,172 KB
testcase_05 AC 7 ms
12,192 KB
testcase_06 AC 7 ms
12,196 KB
testcase_07 AC 8 ms
12,192 KB
testcase_08 AC 12 ms
15,832 KB
testcase_09 AC 15 ms
17,828 KB
testcase_10 AC 31 ms
22,052 KB
testcase_11 AC 32 ms
22,084 KB
testcase_12 AC 32 ms
22,088 KB
testcase_13 AC 32 ms
22,160 KB
testcase_14 AC 33 ms
22,120 KB
testcase_15 AC 33 ms
22,164 KB
testcase_16 AC 36 ms
22,088 KB
testcase_17 AC 7 ms
12,252 KB
testcase_18 AC 7 ms
12,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
// Your code here!
$N = trim(fgets(STDIN));
$A = explode(" ", trim(fgets(STDIN)));

$total = 0;
foreach ($A as $num) {
    $total += $num;
}

echo $total;

?>
0