結果

問題 No.2537 多重含意
ユーザー ニックネームニックネーム
提出日時 2023-11-10 23:19:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 187 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 21,740 KB
最終ジャッジ日時 2023-11-10 23:19:43
合計ジャッジ時間 2,658 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 27 ms
9,984 KB
testcase_02 AC 28 ms
9,984 KB
testcase_03 AC 28 ms
9,984 KB
testcase_04 AC 27 ms
9,984 KB
testcase_05 RE -
testcase_06 AC 28 ms
9,984 KB
testcase_07 RE -
testcase_08 WA -
testcase_09 RE -
testcase_10 AC 27 ms
9,984 KB
testcase_11 RE -
testcase_12 AC 27 ms
9,984 KB
testcase_13 AC 28 ms
9,984 KB
testcase_14 RE -
testcase_15 WA -
testcase_16 RE -
testcase_17 WA -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 WA -
testcase_22 WA -
testcase_23 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,b = map(int,input().split())
a = list(map(int,input().split()))
s = set(); c = n
for v in a:
    if v in s: c = -1
    else: c -= 1; s.add(v)
    print((pow(2,n,b)-pow(2,c,b)*(c>=0))%b)
0