結果
| 問題 |
No.3233 順列判定
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-08-15 21:40:47 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 75 ms / 1,000 ms |
| コード長 | 158 bytes |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 82,656 KB |
| 実行使用メモリ | 75,124 KB |
| 最終ジャッジ日時 | 2025-08-15 21:42:03 |
| 合計ジャッジ時間 | 3,528 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
ソースコード
N, M = map(int, input().split())
s = set()
for i in range(1, N+1):
m = pow(i, M, N)
s.add(m)
if len(s) == N:
print('Yes')
else:
print('No')
norioc