結果

問題 No.2920 Blood Type
ユーザー loop0919loop0919
提出日時 2024-06-14 00:29:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 53,644 KB
最終ジャッジ日時 2024-06-14 00:29:26
合計ジャッジ時間 3,552 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
52,864 KB
testcase_01 AC 40 ms
51,868 KB
testcase_02 AC 38 ms
52,548 KB
testcase_03 AC 38 ms
51,756 KB
testcase_04 AC 38 ms
52,536 KB
testcase_05 AC 38 ms
52,520 KB
testcase_06 AC 39 ms
52,624 KB
testcase_07 AC 38 ms
53,020 KB
testcase_08 AC 38 ms
53,492 KB
testcase_09 AC 39 ms
52,864 KB
testcase_10 AC 38 ms
52,632 KB
testcase_11 AC 38 ms
52,880 KB
testcase_12 AC 38 ms
52,468 KB
testcase_13 AC 38 ms
53,488 KB
testcase_14 AC 39 ms
52,268 KB
testcase_15 AC 40 ms
53,644 KB
testcase_16 AC 39 ms
52,316 KB
testcase_17 AC 39 ms
52,992 KB
testcase_18 AC 38 ms
52,080 KB
testcase_19 AC 39 ms
52,432 KB
testcase_20 AC 38 ms
52,564 KB
testcase_21 AC 39 ms
53,428 KB
testcase_22 AC 38 ms
52,560 KB
testcase_23 AC 37 ms
52,516 KB
testcase_24 AC 37 ms
53,096 KB
testcase_25 AC 38 ms
52,884 KB
testcase_26 AC 38 ms
53,608 KB
testcase_27 AC 39 ms
52,396 KB
testcase_28 AC 39 ms
52,244 KB
testcase_29 AC 38 ms
52,404 KB
testcase_30 AC 38 ms
53,080 KB
testcase_31 AC 38 ms
53,424 KB
testcase_32 AC 38 ms
52,948 KB
testcase_33 AC 38 ms
52,216 KB
testcase_34 AC 39 ms
52,068 KB
testcase_35 AC 39 ms
52,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
T = input()

P_A, P_B, P_AB, P_O = 0, 0, 0, 0

for s in S:
    for t in T:
        if 'A' in {s, t} and 'B' not in {s, t}:
            P_A += 25
        elif 'B' in {s, t} and 'A' not in {s, t}:
            P_B += 25
        elif 'A' in {s, t} and 'B' in {s, t}:
            P_AB += 25
        else:
            P_O += 25

print(P_A, P_B, P_AB, P_O)
0