結果

問題 No.2021 Not A but B
ユーザー helloprahellopra
提出日時 2022-09-03 19:31:01
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 191 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 260,740 KB
最終ジャッジ日時 2024-04-28 16:46:27
合計ジャッジ時間 4,225 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
60,904 KB
testcase_01 AC 34 ms
52,272 KB
testcase_02 AC 32 ms
52,932 KB
testcase_03 AC 34 ms
52,632 KB
testcase_04 AC 32 ms
53,112 KB
testcase_05 AC 33 ms
53,568 KB
testcase_06 AC 33 ms
53,312 KB
testcase_07 AC 33 ms
52,520 KB
testcase_08 TLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

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("".join(S))
    S[i],S[i+1] = a,b

print(len(ans_set))
0