結果
| 問題 |
No.1820 NandShift
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-02-14 18:28:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 234 bytes |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 82,232 KB |
| 実行使用メモリ | 61,312 KB |
| 最終ジャッジ日時 | 2024-06-29 06:52:27 |
| 合計ジャッジ時間 | 2,387 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
ソースコード
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)
ytft