結果
問題 |
No.1169 Row and Column and Diagonal
|
ユーザー |
|
提出日時 | 2020-08-27 23:47:48 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 65,152 KB |
最終ジャッジ日時 | 2024-11-08 19:58:10 |
合計ジャッジ時間 | 4,862 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 13 |
ソースコード
N,X = map(int,input().split()) S = list(map(int,input().split())) assert(2<=N<=2*10**5) assert(0<=X<=10**9) for i in range(N): assert(0<=S[i]<=10**9) pre_A = [X-S[i] for i in range(N)] wrong_A = sum(pre_A) assert(-10**18<=wrong_A<=10**18) print(X-wrong_A)