結果

問題 No.369 足し間違い
ユーザー hiro_metal_corehiro_metal_core
提出日時 2017-11-03 22:21:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 9,160 KB
最終ジャッジ日時 2023-08-14 16:50:43
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
7,764 KB
testcase_01 AC 12 ms
7,808 KB
testcase_02 AC 12 ms
7,808 KB
testcase_03 AC 11 ms
7,880 KB
testcase_04 AC 15 ms
9,072 KB
testcase_05 AC 12 ms
8,280 KB
testcase_06 AC 14 ms
9,064 KB
testcase_07 AC 15 ms
9,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = list(map(int, input().split()))

v = int(input())

sum = 0

for n in range(N):
    sum += A[n]

answer = sum - v

print(answer)
0