結果
問題 |
No.3267 PQ Straight
|
ユーザー |
![]() |
提出日時 | 2025-08-10 18:02:21 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 99 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 82,788 KB |
実行使用メモリ | 90,528 KB |
最終ジャッジ日時 | 2025-09-12 01:33:00 |
合計ジャッジ時間 | 3,676 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
N = int(input()) if N % 2 == 0: print("No") else: print("Yes") p = [(N+1)//2-i for i in range(1, (N+1)//2)] + [N+(N+1)//2-i for i in range((N+1)//2, N+1)] q = [2*i for i in range(1, (N+1)//2)] + [2*(i-(N+1)//2)+1 for i in range((N+1)//2, N+1)] print(*p) print(*q)