結果
問題 | No.559 swapAB列 |
ユーザー |
|
提出日時 | 2023-06-06 20:21:06 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 126 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 82,532 KB |
実行使用メモリ | 53,660 KB |
最終ジャッジ日時 | 2024-12-29 08:44:47 |
合計ジャッジ時間 | 1,183 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 3 WA * 4 |
ソースコード
S = input() count = 0 num_A = 0 for c in S: if c == 'A': num_A += 1 else: count += num_A print(count)