結果
| 問題 | No.559 swapAB列 |
| コンテスト | |
| ユーザー |
cormoran
|
| 提出日時 | 2017-08-25 22:28:42 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 2,000 ms |
| + 89µs | |
| コード長 | 115 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-18 15:09:47 |
| 合計ジャッジ時間 | 1,688 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
S = input()
ans, b = 0, 0
for c in S:
if c == 'B':
b += 1
if c == 'A':
ans += b
print(ans)
cormoran