結果

問題 No.143 豆
ユーザー aki1026aki1026
提出日時 2020-05-13 07:45:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 194 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 10,384 KB
最終ジャッジ日時 2023-09-30 17:50:23
合計ジャッジ時間 1,598 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
10,140 KB
testcase_01 AC 33 ms
10,380 KB
testcase_02 AC 32 ms
10,132 KB
testcase_03 AC 32 ms
10,156 KB
testcase_04 AC 31 ms
10,152 KB
testcase_05 AC 32 ms
10,284 KB
testcase_06 AC 32 ms
10,116 KB
testcase_07 AC 32 ms
10,268 KB
testcase_08 AC 32 ms
10,332 KB
testcase_09 AC 33 ms
10,152 KB
testcase_10 AC 32 ms
10,104 KB
testcase_11 AC 31 ms
10,108 KB
testcase_12 AC 32 ms
10,184 KB
testcase_13 AC 32 ms
10,332 KB
testcase_14 AC 31 ms
10,192 KB
testcase_15 AC 32 ms
10,356 KB
testcase_16 AC 33 ms
10,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import statistics
import math

K,N,F=map(int,input().split())
A=list(map(int,input().split()))
beans=K*N
sum_years=sum(A)

if sum_years<=beans:
    print(-sum_years+beans)
    exit()
print(-1)

0