結果
| 問題 |
No.2021 Not A but B
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-31 12:58:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 132 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 82,728 KB |
| 実行使用メモリ | 62,092 KB |
| 最終ジャッジ日時 | 2024-07-20 22:38:05 |
| 合計ジャッジ時間 | 2,429 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 6 WA * 20 |
ソースコード
N = int(input())
S = input()
ans = 0
for i in range(len(S) - 1):
if S[i] == "A" or S[i + 1] == "A":
ans += 1
print(ans)