結果

問題 No.2021 Not A but B
ユーザー hellopra
提出日時 2022-09-03 19:28:18
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 189 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 967,120 KB
最終ジャッジ日時 2024-11-17 10:23:53
合計ジャッジ時間 71,444 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 MLE * 2
other AC * 1 TLE * 6 MLE * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = list(input())
ans_set = set()

for i in range(N-1):
    a,b = S[i],S[i+1]
    S[i],S[i+1] = "B","B"
    ans_set.add(tuple(S))
    S[i],S[i+1] = a,b

print(len(ans_set))
0