結果

問題 No.1389 Clumsy Calculation
コンテスト
ユーザー hiragn
提出日時 2022-11-24 10:36:25
言語 Python3
(3.14.2 + numpy 2.4.0 + scipy 1.16.3)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 179 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 237 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 32,860 KB
最終ジャッジ日時 2024-09-25 10:15:16
合計ジャッジ時間 4,293 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def main():
    n, x = map(int, input().split())
    s = list(map(int, input().split()))
    ans = sum(s) - x * (n - 1)
    print(ans)


if __name__ == "__main__":
    main()
    
0