結果
| 問題 |
No.3114 0→1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-19 14:02:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 123 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 71,592 KB |
| 最終ジャッジ日時 | 2025-04-19 14:02:24 |
| 合計ジャッジ時間 | 2,673 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 30 |
ソースコード
N = int(input()) S = list(input()) r=0 for i in range(len(S)-1): if S[i]=="0" and S[i+1]=="0": r+=1 S[i]="1" print(r)