結果
| 問題 | No.559 swapAB列 |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-05-30 08:56:48 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 113 bytes |
| 記録 | |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 85,040 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-05-27 17:19:30 |
| 合計ジャッジ時間 | 1,354 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
S = input()
ans = 0
cnt = 0
for s in S:
if s == "B":
cnt += 1
else:
ans += cnt
print(ans)
rlangevin