結果
| 問題 |
No.3114 0→1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-21 10:40:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 155 bytes |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 82,484 KB |
| 実行使用メモリ | 84,052 KB |
| 最終ジャッジ日時 | 2025-04-21 10:40:42 |
| 合計ジャッジ時間 | 3,800 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 30 |
ソースコード
N=int(input())
S=list(map(int, input()))
ans=0
p=0
for i in S:
if i == 0:
p += 1
if p == 2:
ans += 1
p = 0
print(ans)