結果
| 問題 | No.3114 0→1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-21 10:40:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 155 bytes |
| 記録 | |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 95,724 KB |
| 実行使用メモリ | 97,576 KB |
| 最終ジャッジ日時 | 2026-07-10 03:24:05 |
| 合計ジャッジ時間 | 4,454 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)