結果
| 問題 | No.3233 順列判定 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-08-15 21:55:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 1,000 ms |
| + 974µs | |
| コード長 | 113 bytes |
| 記録 | |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 97,920 KB |
| 最終ジャッジ日時 | 2026-07-14 02:31:30 |
| 合計ジャッジ時間 | 4,787 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 40 |
ソースコード
N, M = map(int, input().split())
print("Yes" if len(set(pow(i, M, N) for i in range(1, N + 1))) == N else "No")