結果
| 問題 | No.3654 Cup Ramen |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 13:52:23 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 104 ms / 2,000 ms |
| + 642µs | |
| コード長 | 593 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,728 KB |
| 実行使用メモリ | 81,408 KB |
| 最終ジャッジ日時 | 2026-08-30 13:52:29 |
| 合計ジャッジ時間 | 3,796 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
from itertools import permutations
from bisect import bisect_left, bisect_right
import random
import math
from collections import deque
from collections import Counter
from collections import defaultdict
inf = 1 << 60
def sgn(x):
if x > 0:
return 1
elif x == 0:
return 0
else:
return -1
def popC(x):
ans = 0
while x != 0:
ans += x % 2
x //= 2
return ans
def LI():
return list(map(int, input().split()))
def II():
return int(input())
def SI():
return input()
n, m = LI()
sm = sum(LI())
print(max(0, sm-m))