結果
問題 |
No.672 最長AB列
|
ユーザー |
![]() |
提出日時 | 2018-12-02 12:01:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,484 KB |
最終ジャッジ日時 | 2024-06-28 14:40:21 |
合計ジャッジ時間 | 1,904 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 RE * 1 |
other | WA * 14 RE * 2 |
ソースコード
line = list(input()) l_dic = {} for i in line: if i in l_dic: l_dic[i] +=1 else: l_dic[i] =1 a = l_dic["A"] b = l_dic["B"] if a ==0 or b ==0: print(0) elif a > b: print(b) else: print(a)