結果
| 問題 |
No.1389 Clumsy Calculation
|
| コンテスト | |
| ユーザー |
paruf4
|
| 提出日時 | 2021-02-12 21:42:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 82,192 KB |
| 実行使用メモリ | 131,328 KB |
| 最終ジャッジ日時 | 2024-07-19 20:49:17 |
| 合計ジャッジ時間 | 4,030 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 5 |
ソースコード
n, x = map(int, input().split())
s = list(map(int, input().split()))
sm = sum(s)
a = []
for ss in s:
a.append(x-ss)
s = set(s)
b = []
sa = sum(a)
for aa in a:
b.append(sa-aa)
for bb in b:
if bb*2 in s:
print(bb)
exit(0)
paruf4