結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ynishimura
提出日時 2020-07-02 15:52:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 200 ms / 2,000 ms
コード長 598 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 20,436 KB
最終ジャッジ日時 2024-09-15 01:03:47
合計ジャッジ時間 2,596 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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