結果
| 問題 | 
                            No.1820 NandShift
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ytft
                         | 
                    
| 提出日時 | 2022-02-14 12:48:41 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 212 bytes | 
| コンパイル時間 | 123 ms | 
| コンパイル使用メモリ | 82,136 KB | 
| 実行使用メモリ | 62,784 KB | 
| 最終ジャッジ日時 | 2024-06-29 06:10:28 | 
| 合計ジャッジ時間 | 2,647 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 2 | 
| other | WA * 30 | 
ソースコード
N,M=map(int,input().split())
X=input()
print(2,1,N+1,N+2)
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)
            
            
            
        
            
ytft