結果

問題 No.1978 Permutation Repetition
ユーザー shino16
提出日時 2022-06-03 20:50:05
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 81,976 KB
実行使用メモリ 52,608 KB
最終ジャッジ日時 2024-09-21 05:44:35
合計ジャッジ時間 3,231 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

# 制約チェック

MOD = 1000000007

N, M = map(int, input().split())
A = [int(s) for s in input().split()]

assert 1 <= N <= 10 ** 3
assert 1 <= M <= 10 ** 9
assert all(1 <= a <= N for a in A)
assert len(set(A)) == N
0