結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ynishimuraynishimura
提出日時 2020-07-02 16:11:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 909 ms / 3,000 ms
コード長 586 bytes
コンパイル時間 640 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-10-13 03:25:05
合計ジャッジ時間 7,918 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,888 KB
testcase_01 AC 15 ms
7,784 KB
testcase_02 AC 15 ms
7,824 KB
testcase_03 AC 15 ms
7,884 KB
testcase_04 AC 15 ms
7,884 KB
testcase_05 AC 16 ms
7,776 KB
testcase_06 AC 18 ms
7,784 KB
testcase_07 AC 35 ms
7,780 KB
testcase_08 AC 114 ms
7,824 KB
testcase_09 AC 204 ms
7,884 KB
testcase_10 AC 755 ms
7,824 KB
testcase_11 AC 773 ms
7,836 KB
testcase_12 AC 790 ms
7,872 KB
testcase_13 AC 819 ms
7,948 KB
testcase_14 AC 823 ms
7,828 KB
testcase_15 AC 846 ms
7,868 KB
testcase_16 AC 909 ms
7,824 KB
testcase_17 AC 16 ms
7,828 KB
testcase_18 AC 16 ms
7,804 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行目を読み込む
num = 0
for i in range(A):
    num += int(input())
print(num)
0