結果

問題 No.2374 ASKT Subsequences
ユーザー 👑 p-adicp-adic
提出日時 2023-07-08 10:42:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 469 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 120,276 KB
最終ジャッジ日時 2023-09-29 12:09:29
合計ジャッジ時間 14,229 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 324 ms
106,732 KB
testcase_01 AC 317 ms
108,672 KB
testcase_02 AC 312 ms
103,532 KB
testcase_03 AC 314 ms
106,468 KB
testcase_04 AC 328 ms
108,340 KB
testcase_05 AC 314 ms
108,364 KB
testcase_06 AC 315 ms
105,728 KB
testcase_07 AC 336 ms
107,388 KB
testcase_08 AC 327 ms
107,360 KB
testcase_09 AC 336 ms
109,852 KB
testcase_10 AC 336 ms
107,808 KB
testcase_11 AC 363 ms
109,668 KB
testcase_12 WA -
testcase_13 AC 347 ms
107,264 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 388 ms
112,372 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 385 ms
109,408 KB
testcase_26 WA -
testcase_27 AC 433 ms
113,360 KB
testcase_28 WA -
testcase_29 AC 466 ms
120,276 KB
testcase_30 AC 533 ms
115,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,R=input,range
N=I()
A=list(map(int,I().split()))
c=0
L=R(2001)
for k in L:
	D=[[0]*4 for a in R(4001)]
	for a in A:D[a]=[D[a][0]+1,D[a][1]+D[a-k-10][0],D[a][2]+D[a+k][1],D[a][3]+D[a-k-1][2]]
	c+=sum(D[a][3]for a in L)
print(c)
0