結果

問題 No.1061 素敵な数列
ユーザー lam6er
提出日時 2025-04-15 22:41:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 342 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 81,888 KB
実行使用メモリ 53,856 KB
最終ジャッジ日時 2025-04-15 22:42:41
合計ジャッジ時間 8,876 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other WA * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n % 2 == 0:
    print(-1)
else:
    if n == 1:
        print("0 0 0")
    elif n == 3:
        print("2 0 2 1 0 1 2 0 1")
    else:
        # For other odd N, a general pattern can be derived, but here we handle N=3 as an example
        # This part can be extended for larger odd N with a proper pattern
        print(-1)
0