結果
問題 | No.1389 Clumsy Calculation |
ユーザー |
![]() |
提出日時 | 2021-02-12 23:48:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 100 ms / 2,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 105,856 KB |
最終ジャッジ日時 | 2024-07-20 01:45:15 |
合計ジャッジ時間 | 3,887 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
import sysinput = sys.stdin.readlineN, X = map(int, input().split())S = list(map(int, input().split()))su = sum(S)for Si in S:if Si%2==0:t = su-Si+Si//2if t%(N-1)==0 and t//(N-1)==X:print(Si//2)exit()