結果

問題 No.2374 ASKT Subsequences
ユーザー koki-masutanikoki-masutani
提出日時 2024-03-19 22:34:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 671 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 81,908 KB
最終ジャッジ日時 2024-03-19 22:34:39
合計ジャッジ時間 6,303 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
60,264 KB
testcase_01 AC 41 ms
53,460 KB
testcase_02 AC 38 ms
53,460 KB
testcase_03 AC 39 ms
53,460 KB
testcase_04 AC 47 ms
59,760 KB
testcase_05 WA -
testcase_06 AC 39 ms
53,460 KB
testcase_07 AC 53 ms
64,196 KB
testcase_08 WA -
testcase_09 AC 57 ms
64,200 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
ans = 0
for i in range(N - 3):
    for j in range(i + 1, N - 2):
        for k in range(j + 1, N - 1):
            for l in range(k + 1, N):
                if A[i] + 10 == A[k] and A[j] + 1 == A[l]:
                    ans += 1
print(ans)
0