結果

問題 No.1389 Clumsy Calculation
ユーザー mesame3993
提出日時 2021-10-30 03:23:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 176 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 107,452 KB
最終ジャッジ日時 2024-10-07 13:19:45
合計ジャッジ時間 4,372 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
s = list(map(int, input().split()))
t = sum(s)
for i in range(n):
  tmp = (t - s[i]//2) // (n-1)
  if tmp == x:
    print(s[i] // 2)
    exit()
0