結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー same_hrsame_hr
提出日時 2017-06-29 17:46:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 988 ms / 3,000 ms
コード長 205 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 12,144 KB
最終ジャッジ日時 2023-08-26 17:13:29
合計ジャッジ時間 7,665 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,844 KB
testcase_01 AC 13 ms
7,888 KB
testcase_02 AC 14 ms
7,748 KB
testcase_03 AC 13 ms
7,804 KB
testcase_04 AC 14 ms
7,944 KB
testcase_05 AC 14 ms
7,864 KB
testcase_06 AC 16 ms
7,848 KB
testcase_07 AC 34 ms
8,648 KB
testcase_08 AC 123 ms
10,160 KB
testcase_09 AC 225 ms
12,124 KB
testcase_10 AC 833 ms
11,116 KB
testcase_11 AC 813 ms
11,392 KB
testcase_12 AC 825 ms
11,540 KB
testcase_13 AC 846 ms
11,524 KB
testcase_14 AC 882 ms
11,432 KB
testcase_15 AC 914 ms
11,668 KB
testcase_16 AC 988 ms
12,144 KB
testcase_17 AC 14 ms
7,824 KB
testcase_18 AC 14 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

i = 0
sum = 0
nums = []
howmany = input()

int_howmany = int(howmany)

while i < int_howmany:
    nums.append(int(input()))
    i = i + 1

for num in range(len(nums)):
    sum = sum + nums[num]

print(sum)
0