結果

問題 No.2629 A replace B replace C
ユーザー rlangevinrlangevin
提出日時 2024-02-16 21:28:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 74,872 KB
最終ジャッジ日時 2024-02-16 21:28:06
合計ジャッジ時間 6,180 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
74,872 KB
testcase_01 WA -
testcase_02 AC 46 ms
62,076 KB
testcase_03 AC 55 ms
69,020 KB
testcase_04 AC 40 ms
56,292 KB
testcase_05 AC 44 ms
59,884 KB
testcase_06 AC 44 ms
59,812 KB
testcase_07 WA -
testcase_08 AC 47 ms
62,504 KB
testcase_09 AC 50 ms
65,172 KB
testcase_10 WA -
testcase_11 AC 50 ms
65,136 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 48 ms
65,064 KB
testcase_15 AC 47 ms
62,848 KB
testcase_16 AC 44 ms
59,908 KB
testcase_17 AC 46 ms
62,752 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 49 ms
65,016 KB
testcase_22 AC 45 ms
61,992 KB
testcase_23 AC 50 ms
65,136 KB
testcase_24 AC 48 ms
65,028 KB
testcase_25 AC 47 ms
62,480 KB
testcase_26 AC 47 ms
62,312 KB
testcase_27 AC 44 ms
59,836 KB
testcase_28 AC 48 ms
65,040 KB
testcase_29 AC 46 ms
59,836 KB
testcase_30 AC 41 ms
56,980 KB
testcase_31 AC 50 ms
65,564 KB
testcase_32 AC 49 ms
65,456 KB
testcase_33 AC 54 ms
69,384 KB
testcase_34 AC 47 ms
62,776 KB
testcase_35 AC 50 ms
65,172 KB
testcase_36 AC 53 ms
68,708 KB
testcase_37 AC 52 ms
67,968 KB
testcase_38 AC 52 ms
67,932 KB
testcase_39 AC 49 ms
64,976 KB
testcase_40 AC 52 ms
65,600 KB
testcase_41 AC 45 ms
62,040 KB
testcase_42 AC 48 ms
62,612 KB
testcase_43 AC 48 ms
62,492 KB
testcase_44 AC 47 ms
62,788 KB
testcase_45 AC 50 ms
65,456 KB
testcase_46 AC 53 ms
68,592 KB
testcase_47 AC 48 ms
62,824 KB
testcase_48 AC 46 ms
62,240 KB
testcase_49 AC 45 ms
59,848 KB
testcase_50 AC 48 ms
64,968 KB
testcase_51 AC 46 ms
62,360 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 AC 46 ms
62,492 KB
testcase_58 WA -
testcase_59 AC 51 ms
65,432 KB
testcase_60 WA -
testcase_61 AC 40 ms
53,460 KB
testcase_62 AC 40 ms
53,460 KB
testcase_63 AC 37 ms
53,460 KB
testcase_64 AC 38 ms
53,460 KB
testcase_65 AC 37 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0