結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー shiCanoko_oshiCanoko_o
提出日時 2019-05-14 17:41:27
言語 Perl
(5.38.2)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 5,276 KB
実行使用メモリ 56,900 KB
最終ジャッジ日時 2023-09-26 06:53:21
合計ジャッジ時間 2,899 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,496 KB
testcase_01 AC 2 ms
4,504 KB
testcase_02 AC 3 ms
4,476 KB
testcase_03 AC 3 ms
4,432 KB
testcase_04 AC 2 ms
4,664 KB
testcase_05 AC 2 ms
4,496 KB
testcase_06 AC 3 ms
4,604 KB
testcase_07 AC 6 ms
5,728 KB
testcase_08 AC 22 ms
10,416 KB
testcase_09 AC 37 ms
14,940 KB
testcase_10 AC 125 ms
46,552 KB
testcase_11 AC 127 ms
47,316 KB
testcase_12 AC 130 ms
48,416 KB
testcase_13 AC 133 ms
49,284 KB
testcase_14 AC 130 ms
50,336 KB
testcase_15 AC 137 ms
51,436 KB
testcase_16 AC 149 ms
56,900 KB
testcase_17 AC 3 ms
4,496 KB
testcase_18 AC 2 ms
4,552 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

my $total_number = <STDIN>;
chomp ($total_number);

my $number = <STDIN>;

my @numbers = split(/ /, $number);

my $ans = 0;
$ans += $_ for @numbers;

print "$ans\n";
0