結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー EnoEno
提出日時 2021-06-05 16:12:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,141 ms / 3,000 ms
コード長 170 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 14,592 KB
最終ジャッジ日時 2024-05-01 10:24:02
合計ジャッジ時間 8,901 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 30 ms
10,496 KB
testcase_04 AC 31 ms
10,624 KB
testcase_05 AC 30 ms
10,496 KB
testcase_06 AC 32 ms
10,624 KB
testcase_07 AC 54 ms
11,136 KB
testcase_08 AC 149 ms
12,672 KB
testcase_09 AC 267 ms
14,592 KB
testcase_10 AC 934 ms
13,696 KB
testcase_11 AC 942 ms
13,440 KB
testcase_12 AC 986 ms
13,568 KB
testcase_13 AC 1,014 ms
13,696 KB
testcase_14 AC 1,016 ms
13,568 KB
testcase_15 AC 1,039 ms
13,568 KB
testcase_16 AC 1,141 ms
13,952 KB
testcase_17 AC 29 ms
10,496 KB
testcase_18 AC 30 ms
10,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mylist = []
n = int(input())
for i in range(1, n+1):
  val = int(input())
  if val:
    mylist.append(val)

# 入力した結果を表示

sumi = sum(mylist)
print(sumi)
0