結果
| 問題 |
No.3287 Golden Ring
|
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2025-10-03 21:33:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 172 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 82,420 KB |
| 実行使用メモリ | 66,408 KB |
| 最終ジャッジ日時 | 2025-10-03 21:34:00 |
| 合計ジャッジ時間 | 1,896 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 RE * 1 |
ソースコード
N=int(input())
a = [i+1 for i in range(N)]
if N%2 == 0:
a[-1],a[-2]=a[-2],a[-1]
s = [a[i]+a[i-1] for i in range(N)]
s = set(s)
assert len(s) == N
print("Yes")
print(*a)
nikoro256