結果
| 問題 |
No.1389 Clumsy Calculation
|
| コンテスト | |
| ユーザー |
mesame3993
|
| 提出日時 | 2021-10-30 03:24:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 2,000 ms |
| コード長 | 219 bytes |
| コンパイル時間 | 320 ms |
| コンパイル使用メモリ | 82,208 KB |
| 実行使用メモリ | 107,428 KB |
| 最終ジャッジ日時 | 2024-10-07 13:19:54 |
| 合計ジャッジ時間 | 3,517 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
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 and s[i]%2 == 0 and (t - s[i]//2)%(n-1)==0:
print(s[i] // 2)
exit()
mesame3993