結果
問題 | No.559 swapAB列 |
ユーザー |
|
提出日時 | 2017-08-25 22:29:33 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 175 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 15:59:14 |
合計ジャッジ時間 | 693 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
S = raw_input() ans = 0 for i in xrange(len(S)): if S[i] == 'A': continue for j in xrange(i+1, len(S)): if S[j] == 'A': ans += 1 print ans