結果

問題 No.1255 ハイレーツ・オブ・ボリビアン
ユーザー 👑 KazunKazun
提出日時 2020-08-15 04:21:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 2,082 ms
コンパイル使用メモリ 86,560 KB
実行使用メモリ 76,032 KB
最終ジャッジ日時 2023-09-10 14:18:10
合計ジャッジ時間 3,033 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def pi(L):
    X=[0]*(2*N)
    for i in range(2*N):
        if i%2:
            X[(i-1)//2+N]=L[i]
        else:
            X[i//2]=L[i]
    return X

N=int(input())
M=list(range(2*N))
L=list(range(2*N))

K=0
while K==0 or L!=M:
    L=pi(L)
    K+=1

print(K)
0