結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ynishimuraynishimura
提出日時 2020-07-02 15:52:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 598 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 19,784 KB
最終ジャッジ日時 2023-10-13 03:23:36
合計ジャッジ時間 2,604 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 15 ms
7,848 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 16 ms
7,812 KB
testcase_04 AC 15 ms
7,780 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 15 ms
7,840 KB
testcase_07 AC 21 ms
9,124 KB
testcase_08 AC 39 ms
13,532 KB
testcase_09 AC 59 ms
19,784 KB
testcase_10 AC 128 ms
15,104 KB
testcase_11 AC 133 ms
15,284 KB
testcase_12 AC 135 ms
15,296 KB
testcase_13 AC 138 ms
15,520 KB
testcase_14 AC 141 ms
15,700 KB
testcase_15 AC 144 ms
15,072 KB
testcase_16 AC 158 ms
17,600 KB
testcase_17 AC 15 ms
7,860 KB
testcase_18 AC 15 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 標準入力から一行分を読み出し、文字列として格納する。
first = input()

# 読み込んだ文字列をスペースで分割する
split_first = first.split()

# それぞれをint型に変換する
A = int(split_first[0])  # forの数
# B = int(split_first[1])

# 慣れてくると この一行でよい
# A, B = map(int, input().split()) 

# 参考: リストを読む際はlist()で覆ってやらないといけない
L = list(map(int, input().split()))

# print(A, L)
#2行目を読み込む
# B = input()

# print(res, S)
num = 0
for i in L:
    num += i

print(num)
0