結果

問題 No.1837 Same but Different
ユーザー LyricalMaestro
提出日時 2024-11-29 01:21:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 436 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,184 KB
実行使用メモリ 61,156 KB
最終ジャッジ日時 2024-11-29 01:21:29
合計ジャッジ時間 3,922 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/1837


def main():
    N = int(input())

    A = []
    for i in range(N):
        A.append(3 * i)
    B = []
    for i in range(N):
        B.append(3 * i + 1)
    
    n = N // 3
    for i in range(n):
        A[- i - 1] += 3

    m = N % 3
    A[-1] += m

    print(" ".join(map(str, A)))
    print(" ".join(map(str, B)))

                            








if __name__ == "__main__":
    main()
0