結果

問題 No.1264 010
ユーザー titiatitia
提出日時 2020-10-23 22:25:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 63 ms / 1,000 ms
コード長 209 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-09-28 16:24:39
合計ジャッジ時間 2,046 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,796 KB
testcase_01 AC 17 ms
7,832 KB
testcase_02 AC 17 ms
7,828 KB
testcase_03 AC 19 ms
7,788 KB
testcase_04 AC 28 ms
7,816 KB
testcase_05 AC 45 ms
7,796 KB
testcase_06 AC 17 ms
7,796 KB
testcase_07 AC 17 ms
7,824 KB
testcase_08 AC 17 ms
7,944 KB
testcase_09 AC 63 ms
7,876 KB
testcase_10 AC 62 ms
7,864 KB
testcase_11 AC 63 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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+3]=[0,1,0]

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