結果

問題 No.559 swapAB列
ユーザー dangodango
提出日時 2023-06-06 20:21:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 126 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-08-28 10:48:09
合計ジャッジ時間 2,328 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 70 ms
71,440 KB
testcase_02 AC 72 ms
71,468 KB
testcase_03 AC 75 ms
71,136 KB
testcase_04 AC 72 ms
71,388 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 72 ms
71,292 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
count = 0
num_A = 0
for c in S:
    if c == 'A':
        num_A += 1
    else:
        count += num_A
print(count)
0