結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー 163x bee.163x bee.
提出日時 2021-07-15 17:55:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 269 ms / 3,000 ms
コード長 122 bytes
コンパイル時間 749 ms
コンパイル使用メモリ 86,900 KB
実行使用メモリ 93,972 KB
最終ジャッジ日時 2023-09-18 01:42:37
合計ジャッジ時間 4,357 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,112 KB
testcase_01 AC 71 ms
71,208 KB
testcase_02 AC 71 ms
71,116 KB
testcase_03 AC 69 ms
70,956 KB
testcase_04 AC 70 ms
71,152 KB
testcase_05 AC 71 ms
71,224 KB
testcase_06 AC 82 ms
75,244 KB
testcase_07 AC 94 ms
76,812 KB
testcase_08 AC 119 ms
79,796 KB
testcase_09 AC 132 ms
80,588 KB
testcase_10 AC 239 ms
90,804 KB
testcase_11 AC 243 ms
90,908 KB
testcase_12 AC 248 ms
91,028 KB
testcase_13 AC 250 ms
91,156 KB
testcase_14 AC 246 ms
92,476 KB
testcase_15 AC 255 ms
93,660 KB
testcase_16 AC 269 ms
93,972 KB
testcase_17 AC 70 ms
70,984 KB
testcase_18 AC 71 ms
71,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
mylist = []
for i in range(N):
    A = int(input())
    if A:
        mylist.append(A)
print(sum(mylist))
0