結果
問題 |
No.3256 Permutation Equation
|
ユーザー |
![]() |
提出日時 | 2025-09-05 22:56:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 105,764 KB |
最終ジャッジ日時 | 2025-09-05 22:56:17 |
合計ジャッジ時間 | 11,004 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 25 |
ソースコード
def main(): n = int(input()) A = list(map(int, input().split())) B = [0] * n for i in range(n): B[i] = A[A[i]%n] for i in range(n): if A[i] != B[B[i]%n]: return [] return B ans = main() if ans: print("Yes") print(*ans) else: print("No")