結果

問題 No.1820 NandShift
ユーザー ytftytft
提出日時 2022-02-14 18:28:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 76,468 KB
最終ジャッジ日時 2023-09-11 16:45:20
合計ジャッジ時間 5,238 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,216 KB
testcase_01 AC 78 ms
71,176 KB
testcase_02 AC 73 ms
71,148 KB
testcase_03 AC 73 ms
71,056 KB
testcase_04 AC 76 ms
71,172 KB
testcase_05 AC 75 ms
71,152 KB
testcase_06 AC 75 ms
71,232 KB
testcase_07 AC 83 ms
75,304 KB
testcase_08 AC 74 ms
71,044 KB
testcase_09 AC 78 ms
75,448 KB
testcase_10 AC 89 ms
76,468 KB
testcase_11 AC 72 ms
71,204 KB
testcase_12 AC 73 ms
71,320 KB
testcase_13 AC 76 ms
71,216 KB
testcase_14 AC 75 ms
71,296 KB
testcase_15 AC 75 ms
71,252 KB
testcase_16 AC 83 ms
76,340 KB
testcase_17 AC 71 ms
71,096 KB
testcase_18 AC 81 ms
76,352 KB
testcase_19 AC 82 ms
76,236 KB
testcase_20 AC 76 ms
71,120 KB
testcase_21 AC 74 ms
71,184 KB
testcase_22 AC 74 ms
70,916 KB
testcase_23 AC 73 ms
71,244 KB
testcase_24 AC 75 ms
71,024 KB
testcase_25 AC 79 ms
76,000 KB
testcase_26 AC 73 ms
71,300 KB
testcase_27 AC 74 ms
71,080 KB
testcase_28 AC 81 ms
76,124 KB
testcase_29 AC 72 ms
71,252 KB
testcase_30 AC 77 ms
74,884 KB
testcase_31 AC 77 ms
75,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
X=input()
print(3+M+X.count("1")*3)
print(2,1,0,1)
print(1,2,1)
print(2,1,1,2)
for i in range(M):
    if X[M-i-1]=="1":
        print(2,2,1,1)
        print(2,3,0,0)
        print(2,0,2,3)
    print(1,1,1)
0