結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー pajannatpajannat
提出日時 2021-04-03 22:33:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 114,784 KB
最終ジャッジ日時 2023-08-26 17:56:59
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,272 KB
testcase_01 AC 74 ms
71,404 KB
testcase_02 AC 73 ms
71,140 KB
testcase_03 AC 73 ms
71,240 KB
testcase_04 AC 73 ms
71,280 KB
testcase_05 AC 76 ms
71,324 KB
testcase_06 AC 73 ms
71,408 KB
testcase_07 AC 78 ms
76,252 KB
testcase_08 AC 86 ms
80,620 KB
testcase_09 AC 91 ms
83,544 KB
testcase_10 AC 131 ms
114,612 KB
testcase_11 AC 132 ms
114,468 KB
testcase_12 AC 130 ms
114,676 KB
testcase_13 AC 133 ms
114,692 KB
testcase_14 AC 132 ms
114,784 KB
testcase_15 AC 134 ms
114,376 KB
testcase_16 AC 137 ms
111,292 KB
testcase_17 AC 74 ms
71,364 KB
testcase_18 AC 76 ms
71,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

# 入力文字列をint型に変換
first_int = int(first)

#2行目を読み込む
second = input()

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

# 合計値を定義
sum = 0

# 数値列を合計する
for i in range(first_int):
    sum += int(split_second[i])

# 標準出力に書き出す
print(sum)
0