結果
問題 |
No.3287 Golden Ring
|
ユーザー |
![]() |
提出日時 | 2025-10-18 01:07:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 433 ms |
コンパイル使用メモリ | 82,604 KB |
実行使用メモリ | 63,600 KB |
最終ジャッジ日時 | 2025-10-18 01:07:24 |
合計ジャッジ時間 | 3,526 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 14 |
ソースコード
N = int(input()) if N % 2 == 1: res = [] for n in range(N): res.append(n + 1) print(*res) else: res = [] for n in range(N): if n == N - 2: res.append(n + 2) elif n == N - 1: res.append(n) else: res.append(n + 1) print(*res)