結果

問題 No.1510 Simple Integral
ユーザー 👑 KazunKazun
提出日時 2021-05-14 23:28:27
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 265 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 66,876 KB
最終ジャッジ日時 2024-04-10 03:55:41
合計ジャッジ時間 4,323 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,636 KB
testcase_01 AC 36 ms
53,444 KB
testcase_02 AC 38 ms
52,600 KB
testcase_03 AC 36 ms
52,852 KB
testcase_04 AC 36 ms
52,988 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 AC 44 ms
63,508 KB
testcase_24 AC 45 ms
63,952 KB
testcase_25 AC 43 ms
63,520 KB
testcase_26 AC 44 ms
65,036 KB
testcase_27 AC 44 ms
65,304 KB
testcase_28 AC 45 ms
64,196 KB
testcase_29 AC 43 ms
63,952 KB
testcase_30 AC 45 ms
64,088 KB
testcase_31 AC 44 ms
63,456 KB
testcase_32 AC 45 ms
64,716 KB
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 RE -
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 RE -
testcase_45 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))

assert len(set(A))==N

X=0
Mod=998244353
for i in range(N):
    Y=A[i]
    for j in range(N):
        if i==j: continue

        Y*=A[i]**2-A[j]**2
        Y
    X+=pow(Y,Mod-2,Mod)

if N%2==0: X=Mod-X

print(X%Mod)
0