結果
問題 | No.2629 A replace B replace C |
ユーザー |
![]() |
提出日時 | 2024-02-16 21:28:00 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 82,684 KB |
実行使用メモリ | 75,208 KB |
最終ジャッジ日時 | 2024-09-28 19:43:41 |
合計ジャッジ時間 | 4,630 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 46 WA * 15 |
ソースコード
N = int(input())S = list(input())T = list(input())s = [S.count("A"), S.count("B"), S.count("C")]t = [T.count("A"), T.count("B"), T.count("C")]if s[1] == 0:if s == t:print("Yes")else:print("No")else:if s[1] == t[1] and s[0] >= t[0]:print("Yes")else:print("No")