結果
問題 |
No.3114 0→1
|
ユーザー |
![]() |
提出日時 | 2025-04-19 23:42:42 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 138 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,548 KB |
実行使用メモリ | 62,184 KB |
最終ジャッジ日時 | 2025-04-19 23:42:45 |
合計ジャッジ時間 | 3,188 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | WA * 30 |
ソースコード
n = int(input()) s = input() ans = 0 for i in range(n - 1): if s[i] == "0" and s[i + 1] == "0": ans += 1 print(ans)