結果
| 問題 | No.1389 Clumsy Calculation |
| コンテスト | |
| ユーザー |
mesame3993
|
| 提出日時 | 2021-10-30 03:24:25 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 55 ms / 2,000 ms |
| + 21µs | |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 82,276 KB |
| 実行使用メモリ | 111,568 KB |
| 最終ジャッジ日時 | 2026-10-07 01:37:07 |
| 合計ジャッジ時間 | 3,523 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
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