結果

問題 No.2537 多重含意
ユーザー hiro1729
提出日時 2023-08-17 14:52:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 266 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 20,692 KB
最終ジャッジ日時 2024-11-26 11:48:39
合計ジャッジ時間 3,517 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n,b,*a=map(int,open(0).read().split());s=set();p=pow(2,n,b)
for i in a:(i not in s or print(p))and(s.add(i),print((p-pow(2,n-len(s),b))%b))
0