結果

問題 No.1264 010
ユーザー titiatitia
提出日時 2020-10-23 22:22:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 691 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,372 KB
最終ジャッジ日時 2023-09-28 16:16:34
合計ジャッジ時間 2,666 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,852 KB
testcase_01 AC 16 ms
7,772 KB
testcase_02 AC 16 ms
7,844 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 17 ms
7,844 KB
testcase_07 AC 16 ms
7,816 KB
testcase_08 AC 17 ms
7,852 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=[1,0,1]+[1]*1000

for i in range(N):
    for j in range(N):
        if A[j]==1 and A[j+1]==0 and A[j+2]==1:
            break
    A[j:j+2]=[0,1,0]

A.reverse()
for a in A:
    print(a,end="")
0