結果
問題 |
No.3114 0→1
|
ユーザー |
|
提出日時 | 2025-04-19 14:34:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 122 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,784 KB |
実行使用メモリ | 84,368 KB |
最終ジャッジ日時 | 2025-04-19 14:34:55 |
合計ジャッジ時間 | 3,545 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 6 |
ソースコード
n=int(input()) s=[*input()] ans=0 for i in range(n): if '0'in s[i-2:i] and s[i]=='0': s[i]='1' ans+=1 print(ans)