結果

問題 No.143 豆
ユーザー kjnhokjnho
提出日時 2017-02-24 20:21:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 7,904 KB
最終ジャッジ日時 2023-08-30 23:07:14
合計ジャッジ時間 1,549 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
7,720 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 16 ms
7,748 KB
testcase_06 AC 15 ms
7,840 KB
testcase_07 AC 15 ms
7,816 KB
testcase_08 AC 16 ms
7,832 KB
testcase_09 WA -
testcase_10 AC 16 ms
7,724 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    K,N,F = map(int, input().split())
    A = sum(map(int, input().split()))

    if A > K*N:
        print(-1)
    else:
        print(A)

if __name__ == "__main__":  # {{{
    try:
        import test
        test.test()
    except:
        main()  # }}}

0